@nfdi4plants/arctrl 3.0.0-beta.9 → 3.0.0

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 (290) hide show
  1. package/README.md +30 -3
  2. package/dist/ts/index.d.ts +54 -16
  3. package/dist/ts/index.d.ts.map +1 -1
  4. package/dist/ts/index.js +56 -18
  5. package/dist/ts/ts/ARC.d.ts +26 -9
  6. package/dist/ts/ts/ARC.d.ts.map +1 -1
  7. package/dist/ts/ts/ARC.js +148 -63
  8. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +62 -0
  9. package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -0
  10. package/dist/ts/ts/CWL/CWLProcessingUnit.js +250 -0
  11. package/dist/ts/ts/CWL/CWLTypes.d.ts +148 -0
  12. package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -0
  13. package/dist/ts/ts/CWL/CWLTypes.js +384 -0
  14. package/dist/ts/ts/CWL/Decode.d.ts +210 -0
  15. package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
  16. package/dist/ts/ts/CWL/Decode.js +2617 -0
  17. package/dist/ts/ts/CWL/Encode.d.ts +96 -0
  18. package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
  19. package/dist/ts/ts/CWL/Encode.js +1509 -0
  20. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +50 -0
  21. package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -0
  22. package/dist/ts/ts/CWL/ExpressionToolDescription.js +152 -0
  23. package/dist/ts/ts/CWL/HashHelpers.d.ts +9 -0
  24. package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -0
  25. package/dist/ts/ts/CWL/HashHelpers.js +35 -0
  26. package/dist/ts/ts/CWL/Inputs.d.ts +31 -0
  27. package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -0
  28. package/dist/ts/ts/CWL/Inputs.js +86 -0
  29. package/dist/ts/ts/CWL/OperationDescription.d.ts +46 -0
  30. package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -0
  31. package/dist/ts/ts/CWL/OperationDescription.js +133 -0
  32. package/dist/ts/ts/CWL/Outputs.d.ts +44 -0
  33. package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -0
  34. package/dist/ts/ts/CWL/Outputs.js +143 -0
  35. package/dist/ts/ts/CWL/ParameterReference.d.ts +23 -0
  36. package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -0
  37. package/dist/ts/ts/CWL/ParameterReference.js +60 -0
  38. package/dist/ts/ts/CWL/Requirements.d.ts +206 -0
  39. package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -0
  40. package/dist/ts/ts/CWL/Requirements.js +384 -0
  41. package/dist/ts/ts/CWL/ToolDescription.d.ts +50 -0
  42. package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -0
  43. package/dist/ts/ts/CWL/ToolDescription.js +152 -0
  44. package/dist/ts/ts/CWL/WorkflowDescription.d.ts +50 -0
  45. package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -0
  46. package/dist/ts/ts/CWL/WorkflowDescription.js +142 -0
  47. package/dist/ts/ts/CWL/WorkflowSteps.d.ts +160 -0
  48. package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -0
  49. package/dist/ts/ts/CWL/WorkflowSteps.js +317 -0
  50. package/dist/ts/ts/CWLRunResolver.d.ts +45 -0
  51. package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -0
  52. package/dist/ts/ts/CWLRunResolver.js +181 -0
  53. package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
  54. package/dist/ts/ts/Contract/ARC.js +27 -9
  55. package/dist/ts/ts/Contract/ArcRun.d.ts +6 -0
  56. package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
  57. package/dist/ts/ts/Contract/ArcRun.js +131 -4
  58. package/dist/ts/ts/Contract/ArcWorkflow.d.ts +3 -0
  59. package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
  60. package/dist/ts/ts/Contract/ArcWorkflow.js +70 -4
  61. package/dist/ts/ts/Contract/Datamap.d.ts +25 -25
  62. package/dist/ts/ts/Contract/Datamap.js +34 -34
  63. package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
  64. package/dist/ts/ts/ContractIO/ContractIO.js +3 -1
  65. package/dist/ts/ts/Conversion/Assay.d.ts +13 -0
  66. package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -0
  67. package/dist/ts/ts/Conversion/Assay.js +69 -0
  68. package/dist/ts/ts/Conversion/Basic.d.ts +105 -0
  69. package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -0
  70. package/dist/ts/ts/Conversion/Basic.js +452 -0
  71. package/dist/ts/ts/Conversion/ColumnIndex.d.ts +11 -0
  72. package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -0
  73. package/dist/ts/ts/Conversion/ColumnIndex.js +71 -0
  74. package/dist/ts/ts/Conversion/Datamap.d.ts +11 -0
  75. package/dist/ts/ts/Conversion/Datamap.d.ts.map +1 -0
  76. package/dist/ts/ts/Conversion/Datamap.js +21 -0
  77. package/dist/ts/ts/Conversion/DateTime.d.ts +4 -0
  78. package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -0
  79. package/dist/ts/ts/Conversion/DateTime.js +23 -0
  80. package/dist/ts/ts/Conversion/Investigation.d.ts +12 -0
  81. package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -0
  82. package/dist/ts/ts/Conversion/Investigation.js +79 -0
  83. package/dist/ts/ts/Conversion/Person.d.ts +16 -0
  84. package/dist/ts/ts/Conversion/Person.d.ts.map +1 -0
  85. package/dist/ts/ts/Conversion/Person.js +100 -0
  86. package/dist/ts/ts/Conversion/Process.d.ts +84 -0
  87. package/dist/ts/ts/Conversion/Process.d.ts.map +1 -0
  88. package/dist/ts/ts/Conversion/Process.js +455 -0
  89. package/dist/ts/ts/Conversion/Run.d.ts +35 -0
  90. package/dist/ts/ts/Conversion/Run.d.ts.map +1 -0
  91. package/dist/ts/ts/Conversion/Run.js +254 -0
  92. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts +16 -0
  93. package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -0
  94. package/dist/ts/ts/Conversion/ScholarlyArticle.js +116 -0
  95. package/dist/ts/ts/Conversion/Study.d.ts +12 -0
  96. package/dist/ts/ts/Conversion/Study.d.ts.map +1 -0
  97. package/dist/ts/ts/Conversion/Study.js +51 -0
  98. package/dist/ts/ts/Conversion/Table.d.ts +45 -0
  99. package/dist/ts/ts/Conversion/Table.d.ts.map +1 -0
  100. package/dist/ts/ts/Conversion/Table.js +203 -0
  101. package/dist/ts/ts/Conversion/Workflow.d.ts +91 -0
  102. package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -0
  103. package/dist/ts/ts/Conversion/Workflow.js +455 -0
  104. package/dist/ts/ts/Conversion.d.ts +25 -276
  105. package/dist/ts/ts/Conversion.d.ts.map +1 -1
  106. package/dist/ts/ts/Conversion.js +64 -1477
  107. package/dist/ts/ts/Core/ArcTypes.d.ts +69 -59
  108. package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
  109. package/dist/ts/ts/Core/ArcTypes.js +222 -142
  110. package/dist/ts/ts/Core/{DataMap.d.ts → Datamap.d.ts} +24 -24
  111. package/dist/ts/ts/Core/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
  112. package/dist/ts/ts/Core/{DataMap.js → Datamap.js} +36 -36
  113. package/dist/ts/ts/Core/Helper/Identifier.d.ts +24 -0
  114. package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
  115. package/dist/ts/ts/Core/Helper/Identifier.js +35 -2
  116. package/dist/ts/ts/Core/Table/ArcTable.d.ts +8 -8
  117. package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
  118. package/dist/ts/ts/Core/Table/ArcTable.js +20 -20
  119. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +4 -4
  120. package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
  121. package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -27
  122. package/dist/ts/ts/FileSystem/Path.d.ts +22 -0
  123. package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
  124. package/dist/ts/ts/FileSystem/Path.js +173 -3
  125. package/dist/ts/ts/Json/Assay.js +5 -5
  126. package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts.map +1 -1
  127. package/dist/ts/ts/Json/{DataMap/DataMap.d.ts → Datamap/Datamap.d.ts} +6 -6
  128. package/dist/ts/ts/Json/{DataMap/DataMap.d.ts.map → Datamap/Datamap.d.ts.map} +1 -1
  129. package/dist/ts/ts/Json/{DataMap/DataMap.js → Datamap/Datamap.js} +2 -2
  130. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts.map +1 -1
  131. package/dist/ts/ts/Json/ROCrate/LDContext.js +21 -11
  132. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -0
  133. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts.map +1 -1
  134. package/dist/ts/ts/Json/ROCrate/LDNode.js +18 -7
  135. package/dist/ts/ts/Json/Run.js +5 -5
  136. package/dist/ts/ts/Json/Study.js +5 -5
  137. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
  138. package/dist/ts/ts/Json/Workflow.js +10 -11
  139. package/dist/ts/ts/Json.d.ts +3 -5
  140. package/dist/ts/ts/Json.d.ts.map +1 -1
  141. package/dist/ts/ts/Json.js +4 -10
  142. package/dist/ts/ts/JsonIO/Datamap.d.ts +4 -4
  143. package/dist/ts/ts/JsonIO/Datamap.js +6 -6
  144. package/dist/ts/ts/JsonIO/Investigation.d.ts +0 -6
  145. package/dist/ts/ts/JsonIO/Investigation.d.ts.map +1 -1
  146. package/dist/ts/ts/JsonIO/Investigation.js +2 -21
  147. package/dist/ts/ts/License.js +1 -1
  148. package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
  149. package/dist/ts/ts/ROCrate/LDContext.js +35 -31
  150. package/dist/ts/ts/ROCrate/LDObject.d.ts +2 -2
  151. package/dist/ts/ts/ROCrate/LDObject.js +2 -2
  152. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts.map +1 -1
  153. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +63 -0
  154. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -0
  155. package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +361 -0
  156. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts +39 -0
  157. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts.map +1 -0
  158. package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +219 -0
  159. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts +43 -0
  160. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts.map +1 -0
  161. package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +224 -0
  162. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts.map +1 -1
  163. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.js +1 -1
  164. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.d.ts +34 -22
  165. package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -0
  166. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.js +59 -2
  167. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts.map +1 -1
  168. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.d.ts +10 -4
  169. package/dist/ts/ts/ROCrate/LDTypes/File.d.ts.map +1 -0
  170. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.js +34 -1
  171. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts +59 -0
  172. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts.map +1 -0
  173. package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +344 -0
  174. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.d.ts +2 -0
  175. package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts.map +1 -0
  176. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.js +31 -5
  177. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.d.ts +6 -2
  178. package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts.map +1 -0
  179. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.js +66 -15
  180. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts.map +1 -1
  181. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts.map +1 -1
  182. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts.map +1 -1
  183. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.d.ts +35 -11
  184. package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -0
  185. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.js +191 -1
  186. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts.map +1 -1
  187. package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts.map +1 -1
  188. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts +46 -0
  189. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts.map +1 -0
  190. package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +247 -0
  191. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts +12 -0
  192. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts.map +1 -0
  193. package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +40 -0
  194. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts +11 -0
  195. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts.map +1 -0
  196. package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +46 -0
  197. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts +2 -2
  198. package/dist/ts/ts/ROCrate/ROCrateContext.d.ts.map +1 -1
  199. package/dist/ts/ts/ROCrate/ROCrateContext.js +6 -6
  200. package/dist/ts/ts/ROCrateIO.d.ts +7 -3
  201. package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
  202. package/dist/ts/ts/ROCrateIO.js +82 -13
  203. package/dist/ts/ts/Spreadsheet/ArcAssay.js +3 -3
  204. package/dist/ts/ts/Spreadsheet/ArcRun.js +2 -2
  205. package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
  206. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +2 -2
  207. package/dist/ts/ts/Spreadsheet/Datamap.d.ts +8 -0
  208. package/dist/ts/ts/Spreadsheet/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
  209. package/dist/ts/ts/Spreadsheet/{DataMap.js → Datamap.js} +9 -9
  210. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts → DatamapTable/DatamapColumn.d.ts} +1 -1
  211. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts.map → DatamapTable/DatamapColumn.d.ts.map} +1 -1
  212. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.js → DatamapTable/DatamapColumn.js} +1 -1
  213. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts → DatamapTable/DatamapHeader.d.ts} +1 -1
  214. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts.map → DatamapTable/DatamapHeader.d.ts.map} +1 -1
  215. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts → DatamapTable/DatamapTable.d.ts} +5 -5
  216. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts.map → DatamapTable/DatamapTable.d.ts.map} +1 -1
  217. package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.js → DatamapTable/DatamapTable.js} +6 -6
  218. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +1 -1
  219. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
  220. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +4 -4
  221. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +36 -0
  222. package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -0
  223. package/dist/ts/ts/WorkflowGraph/Adapters.js +94 -0
  224. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts +37 -0
  225. package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts.map +1 -0
  226. package/dist/ts/ts/WorkflowGraph/BuildOptions.js +35 -0
  227. package/dist/ts/ts/WorkflowGraph/Builder.d.ts +160 -0
  228. package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -0
  229. package/dist/ts/ts/WorkflowGraph/Builder.js +556 -0
  230. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +182 -0
  231. package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -0
  232. package/dist/ts/ts/WorkflowGraph/GraphTypes.js +281 -0
  233. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +27 -0
  234. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -0
  235. package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +49 -0
  236. package/dist/ts/ts/Xlsx.d.ts +5 -5
  237. package/dist/ts/ts/Xlsx.js +1 -1
  238. package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
  239. package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
  240. package/dist/ts/ts/Yaml/ValidationPackage.js +5 -5
  241. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
  242. package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
  243. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -5
  244. package/dist/ts/ts/Yaml.d.ts +24 -0
  245. package/dist/ts/ts/Yaml.d.ts.map +1 -0
  246. package/dist/ts/ts/Yaml.js +56 -0
  247. package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynObj.fs.js +109 -0
  248. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Encode.fs.js +1 -1
  249. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/FlowToBlock.fs.js +954 -0
  250. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Interop/JsInterop.fs.js +10 -0
  251. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Persil.fs.js +1 -1
  252. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Reader.fs.js +208 -152
  253. package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Regex.fs.js +15 -0
  254. package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/RegexActivePatterns.fs.js +14 -10
  255. package/package.json +1 -1
  256. package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +0 -1
  257. package/dist/ts/ts/ROCrate/Generic/File.d.ts.map +0 -1
  258. package/dist/ts/ts/ROCrate/Generic/LabProcess.d.ts.map +0 -1
  259. package/dist/ts/ts/ROCrate/Generic/LabProtocol.d.ts.map +0 -1
  260. package/dist/ts/ts/ROCrate/Generic/PropertyValue.d.ts.map +0 -1
  261. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +0 -8
  262. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +0 -10
  263. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +0 -11
  264. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts +0 -0
  265. /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.js +0 -0
  266. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts +0 -0
  267. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.js +0 -0
  268. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts +0 -0
  269. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts +0 -0
  270. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.js +0 -0
  271. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts +0 -0
  272. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.js +0 -0
  273. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts +0 -0
  274. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.js +0 -0
  275. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts +0 -0
  276. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.js +0 -0
  277. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts +0 -0
  278. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.js +0 -0
  279. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts +0 -0
  280. /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.js +0 -0
  281. /package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.js → DatamapTable/DatamapHeader.js} +0 -0
  282. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/DynamicObj.fs.js +0 -0
  283. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/FableJS.fs.js +0 -0
  284. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/HashCodes.fs.js +0 -0
  285. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/PropertyHelper.fs.js +0 -0
  286. /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/ReflectionUtils.fs.js +0 -0
  287. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Decode.fs.js +0 -0
  288. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Preprocessing.fs.js +0 -0
  289. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Writer.fs.js +0 -0
  290. /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/YAMLiciousTypes.fs.js +0 -0
@@ -1,7 +1,7 @@
1
1
  import { defaultArg, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
2
2
  import { tryFind, item, tryPick, head, tail, map, equalsWith, choose, append as append$1 } from '../../node_modules/@fable-org/fable-library-js/Array.js';
3
3
  import { split, combineMany } from './Path.js';
4
- import { toArray, delay, append, singleton } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
4
+ import { toArray, delay, append, singleton, empty as empty$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
5
5
  import { Array_groupBy, Array_distinct } from '../../node_modules/@fable-org/fable-library-js/Seq2.js';
6
6
  import { stringHash, arrayHash, curry2 } from '../../node_modules/@fable-org/fable-library-js/Util.js';
7
7
  import { cons, toArray as toArray$1, reverse, empty } from '../../node_modules/@fable-org/fable-library-js/List.js';
@@ -272,53 +272,46 @@ class FileSystemTree extends Union {
272
272
  static createEmptyFolder(name) {
273
273
  return FileSystemTree.createFolder(name, [FileSystemTree.createGitKeepFile()]);
274
274
  }
275
- static createAssayFolder(assayName, hasDataMap) {
276
- const hasDataMap_1 = defaultArg(hasDataMap, false);
275
+ static createAssayFolder(assayName, hasDatamap) {
276
+ const hasDatamap_1 = defaultArg(hasDatamap, false);
277
277
  const dataset = FileSystemTree.createEmptyFolder("dataset");
278
278
  const protocols = FileSystemTree.createEmptyFolder("protocols");
279
279
  const readme = FileSystemTree.createReadmeFile();
280
280
  const assayFile = FileSystemTree.createFile("isa.assay.xlsx");
281
- if (hasDataMap_1) {
282
- const dataMapFile = FileSystemTree.createFile("isa.datamap.xlsx");
283
- return FileSystemTree.createFolder(assayName, [dataset, protocols, assayFile, readme, dataMapFile]);
281
+ if (hasDatamap_1) {
282
+ const datamapFile = FileSystemTree.createFile("isa.datamap.xlsx");
283
+ return FileSystemTree.createFolder(assayName, [dataset, protocols, assayFile, readme, datamapFile]);
284
284
  } else {
285
285
  return FileSystemTree.createFolder(assayName, [dataset, protocols, assayFile, readme]);
286
286
  }
287
287
  }
288
- static createStudyFolder(studyName, hasDataMap) {
289
- const hasDataMap_1 = defaultArg(hasDataMap, false);
288
+ static createStudyFolder(studyName, hasDatamap) {
289
+ const hasDatamap_1 = defaultArg(hasDatamap, false);
290
290
  const resources = FileSystemTree.createEmptyFolder("resources");
291
291
  const protocols = FileSystemTree.createEmptyFolder("protocols");
292
292
  const readme = FileSystemTree.createReadmeFile();
293
293
  const studyFile = FileSystemTree.createFile("isa.study.xlsx");
294
- if (hasDataMap_1) {
295
- const dataMapFile = FileSystemTree.createFile("isa.datamap.xlsx");
296
- return FileSystemTree.createFolder(studyName, [resources, protocols, studyFile, readme, dataMapFile]);
294
+ if (hasDatamap_1) {
295
+ const datamapFile = FileSystemTree.createFile("isa.datamap.xlsx");
296
+ return FileSystemTree.createFolder(studyName, [resources, protocols, studyFile, readme, datamapFile]);
297
297
  } else {
298
298
  return FileSystemTree.createFolder(studyName, [resources, protocols, studyFile, readme]);
299
299
  }
300
300
  }
301
- static createWorkflowFolder(workflowName, hasDataMap) {
302
- const hasDataMap_1 = defaultArg(hasDataMap, false);
301
+ static createWorkflowFolder(workflowName, hasCWL, hasDatamap) {
302
+ const hasDatamap_1 = defaultArg(hasDatamap, false);
303
+ const hasCWL_1 = defaultArg(hasCWL, false);
303
304
  const readme = FileSystemTree.createReadmeFile();
304
305
  const workflowFile = FileSystemTree.createFile("isa.workflow.xlsx");
305
- if (hasDataMap_1) {
306
- const dataMapFile = FileSystemTree.createFile("isa.datamap.xlsx");
307
- return FileSystemTree.createFolder(workflowName, [workflowFile, readme, dataMapFile]);
308
- } else {
309
- return FileSystemTree.createFolder(workflowName, [workflowFile, readme]);
310
- }
306
+ return FileSystemTree.createFolder(workflowName, toArray(delay(() => append(singleton(workflowFile), delay(() => append(singleton(readme), delay(() => append(hasCWL_1 ? singleton(FileSystemTree.createFile("workflow.cwl")) : empty$1(), delay(() => hasDatamap_1 ? singleton(FileSystemTree.createFile("isa.datamap.xlsx")) : empty$1())))))))));
311
307
  }
312
- static createRunFolder(runName, hasDataMap) {
313
- const hasDataMap_1 = defaultArg(hasDataMap, false);
308
+ static createRunFolder(runName, hasCWL, hasYML, hasDatamap) {
309
+ const hasDatamap_1 = defaultArg(hasDatamap, false);
310
+ const hasCWL_1 = defaultArg(hasCWL, false);
311
+ const hasYML_1 = defaultArg(hasYML, false);
314
312
  const readme = FileSystemTree.createReadmeFile();
315
313
  const runFile = FileSystemTree.createFile("isa.run.xlsx");
316
- if (hasDataMap_1) {
317
- const dataMapFile = FileSystemTree.createFile("isa.datamap.xlsx");
318
- return FileSystemTree.createFolder(runName, [runFile, readme, dataMapFile]);
319
- } else {
320
- return FileSystemTree.createFolder(runName, [runFile, readme]);
321
- }
314
+ return FileSystemTree.createFolder(runName, toArray(delay(() => append(singleton(runFile), delay(() => append(singleton(readme), delay(() => append(hasCWL_1 ? singleton(FileSystemTree.createFile("run.cwl")) : empty$1(), delay(() => append(hasYML_1 ? singleton(FileSystemTree.createFile("run.yml")) : empty$1(), delay(() => hasDatamap_1 ? singleton(FileSystemTree.createFile("isa.datamap.xlsx")) : empty$1())))))))))));
322
315
  }
323
316
  static createInvestigationFile() {
324
317
  return FileSystemTree.createFile("isa.investigation.xlsx");
@@ -1,9 +1,31 @@
1
1
  import { FSharpList } from '@fable-org/fable-library-js/List.js';
2
+ import { Option } from '@fable-org/fable-library-js/Option.js';
2
3
  export declare const seperators: string[];
3
4
  export declare const alternativeLICENSEFileNames: FSharpList<string>;
4
5
  export declare function split(path: string): string[];
6
+ export declare function hasLeadingSeparator(path: string): boolean;
7
+ export declare function isUncPath(path: string): boolean;
8
+ export declare function tryGetDrivePrefix(path: string): Option<string>;
9
+ export declare function splitWithPrefix(path: string): [Option<string>, string[]];
10
+ export declare function normalizeRootPrefix(prefix: string): string;
11
+ export declare function buildPathFromPrefixAndSegments(prefixOpt: Option<string>, segments: string[]): string;
5
12
  export declare function combine(path1: string, path2: string): string;
6
13
  export declare function combineMany(paths: string[]): string;
14
+ /**
15
+ * Normalize path segments by removing "." and resolving ".." where possible.
16
+ */
17
+ export declare function normalizeSegments(segments: string[]): string[];
18
+ /**
19
+ * Normalize a path by resolving "." and ".." segments.
20
+ * Note: If normalization yields no segments, the trimmed original path is returned
21
+ * to preserve relative markers used by existing callers (e.g. "." or "./").
22
+ */
23
+ export declare function normalize(path: string): string;
24
+ export declare function normalizePathKey(path: string): string;
25
+ /**
26
+ * Resolve a path (possibly relative) against the directory of a file path.
27
+ */
28
+ export declare function resolvePathFromFile(filePath: string, path: string): string;
7
29
  export declare function getFileName(path: string): string;
8
30
  /**
9
31
  * Checks if `path` points to a file with the name `fileName`
@@ -1 +1 @@
1
- {"version":3,"file":"Path.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/FileSystem/Path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,qCAAqC,CAAC;AAK1E,eAAO,MAAM,UAAU,EAAE,MAAM,EAAgB,CAAC;AAEhD,eAAO,MAAM,2BAA2B,EAAE,UAAU,CAAC,MAAM,CAAyD,CAAC;AAErH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAU5C;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAYnD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE9D"}
1
+ {"version":3,"file":"Path.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/FileSystem/Path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAW,MAAM,qCAAqC,CAAC;AAG1E,OAAO,EAAS,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAItE,eAAO,MAAM,UAAU,EAAE,MAAM,EAAgB,CAAC;AAEhD,eAAO,MAAM,2BAA2B,EAAE,UAAU,CAAC,MAAM,CAAyD,CAAC;AAErH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAU5C;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAYzD;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO/C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAO9D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAiBxE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAU1D;AAED,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAwDpG;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAYnD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAoB9D;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgB9C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAcrD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAuB1E;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,qBAAqB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE9D"}
@@ -1,6 +1,8 @@
1
1
  import { ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
2
- import { split as split$1, trimEnd, trimStart, join, trim } from '../../node_modules/@fable-org/fable-library-js/String.js';
3
- import { mapIndexed, last } from '../../node_modules/@fable-org/fable-library-js/Array.js';
2
+ import { split as split$1, substring, join, trimEnd, trimStart, trim } from '../../node_modules/@fable-org/fable-library-js/String.js';
3
+ import { isLetter } from '../../node_modules/@fable-org/fable-library-js/Char.js';
4
+ import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
5
+ import { mapIndexed, item, append, last } from '../../node_modules/@fable-org/fable-library-js/Array.js';
4
6
 
5
7
  const seperators = ["/", "\\"];
6
8
  const alternativeLICENSEFileNames = ofArray(["LICENSE.txt", "LICENSE.md", "LICENSE.rst"]);
@@ -14,6 +16,107 @@ function split(path) {
14
16
  }
15
17
  });
16
18
  }
19
+ function hasLeadingSeparator(path) {
20
+ if (path.length > 0) {
21
+ if (path[0] === "/") {
22
+ return true;
23
+ } else {
24
+ return path[0] === "\\";
25
+ }
26
+ } else {
27
+ return false;
28
+ }
29
+ }
30
+ function isUncPath(path) {
31
+ if (path.startsWith("//")) {
32
+ return true;
33
+ } else {
34
+ return path.startsWith("\\\\");
35
+ }
36
+ }
37
+ function tryGetDrivePrefix(path) {
38
+ if (path.length > 2 && isLetter(path[0]) && path[1] === ":" && (path[2] === "/" ? true : path[2] === "\\")) {
39
+ return substring(path, 0, 2);
40
+ } else {
41
+ return void 0;
42
+ }
43
+ }
44
+ function splitWithPrefix(path) {
45
+ const trimmed = path.trim();
46
+ const matchValue = tryGetDrivePrefix(trimmed);
47
+ if (matchValue == null) {
48
+ if (isUncPath(trimmed)) {
49
+ return ["//", split(trimmed)];
50
+ } else if (hasLeadingSeparator(trimmed)) {
51
+ return ["/", split(trimmed)];
52
+ } else {
53
+ return [void 0, split(trimmed)];
54
+ }
55
+ } else {
56
+ return [value(matchValue), split(substring(trimmed, 2))];
57
+ }
58
+ }
59
+ function normalizeRootPrefix(prefix) {
60
+ if (prefix === "//") {
61
+ return "//";
62
+ } else if (prefix.endsWith(":")) {
63
+ return `${prefix}/`;
64
+ } else {
65
+ return "/";
66
+ }
67
+ }
68
+ function buildPathFromPrefixAndSegments(prefixOpt, segments) {
69
+ let prefix_1, prefix_2;
70
+ if (segments.length === 0) {
71
+ if (prefixOpt == null) {
72
+ return "";
73
+ } else {
74
+ return normalizeRootPrefix(value(prefixOpt));
75
+ }
76
+ } else {
77
+ const combined = join("/", segments);
78
+ let matchResult, prefix_3, prefix_4;
79
+ if (prefixOpt == null) {
80
+ matchResult = 4;
81
+ } else {
82
+ switch (value(prefixOpt)) {
83
+ case "//": {
84
+ matchResult = 0;
85
+ break;
86
+ }
87
+ case "/": {
88
+ if (prefix_1 = value(prefixOpt), prefix_1.endsWith(":")) {
89
+ matchResult = 1;
90
+ prefix_3 = value(prefixOpt);
91
+ } else {
92
+ matchResult = 2;
93
+ }
94
+ break;
95
+ }
96
+ default:
97
+ if (prefix_2 = value(prefixOpt), prefix_2.endsWith(":")) {
98
+ matchResult = 1;
99
+ prefix_3 = value(prefixOpt);
100
+ } else {
101
+ matchResult = 3;
102
+ prefix_4 = value(prefixOpt);
103
+ }
104
+ }
105
+ }
106
+ switch (matchResult) {
107
+ case 0:
108
+ return `//${combined}`;
109
+ case 1:
110
+ return `${prefix_3}/${combined}`;
111
+ case 2:
112
+ return `/${combined}`;
113
+ case 3:
114
+ return `${prefix_4}/${combined}`;
115
+ default:
116
+ return combined;
117
+ }
118
+ }
119
+ }
17
120
  function combine(path1, path2) {
18
121
  return trimEnd(path1, ...seperators) + "/" + trimStart(path2, ...seperators);
19
122
  }
@@ -28,6 +131,73 @@ function combineMany(paths) {
28
131
  }
29
132
  }, paths));
30
133
  }
134
+ function normalizeSegments(segments) {
135
+ const resolved = [];
136
+ for (let idx = 0; idx <= segments.length - 1; idx++) {
137
+ const rawSegment = item(idx, segments);
138
+ const segment = rawSegment.trim();
139
+ if (segment === "" ? true : segment === ".") {
140
+ } else if (segment === "..") {
141
+ if (resolved.length > 0 && resolved[resolved.length - 1] !== "..") {
142
+ resolved.splice(resolved.length - 1, 1);
143
+ } else {
144
+ void resolved.push(segment);
145
+ }
146
+ } else {
147
+ void resolved.push(segment);
148
+ }
149
+ }
150
+ return resolved.slice();
151
+ }
152
+ function normalize(path) {
153
+ const trimmedPath = path.trim();
154
+ const patternInput = splitWithPrefix(trimmedPath);
155
+ const prefixOpt = patternInput[0];
156
+ const normalizedSegments = normalizeSegments(patternInput[1]);
157
+ if (normalizedSegments.length === 0) {
158
+ if (prefixOpt == null) {
159
+ return trimmedPath;
160
+ } else {
161
+ return normalizeRootPrefix(value(prefixOpt));
162
+ }
163
+ } else {
164
+ return buildPathFromPrefixAndSegments(prefixOpt, normalizedSegments);
165
+ }
166
+ }
167
+ function normalizePathKey(path) {
168
+ const normalized = normalize(path);
169
+ if (normalized === "") {
170
+ return path.trim();
171
+ } else {
172
+ const trimmedLeadingSeparators = trimStart(normalized, ...seperators);
173
+ if (trimmedLeadingSeparators === "") {
174
+ return normalized;
175
+ } else {
176
+ return trimmedLeadingSeparators;
177
+ }
178
+ }
179
+ }
180
+ function resolvePathFromFile(filePath, path) {
181
+ const trimmedPath = path.trim();
182
+ const patternInput = splitWithPrefix(trimmedPath);
183
+ if (patternInput[0] != null) {
184
+ return normalize(trimmedPath);
185
+ } else {
186
+ const patternInput_1 = splitWithPrefix(filePath);
187
+ const filePrefixOpt = patternInput_1[0];
188
+ const filePathSegments = patternInput_1[1];
189
+ const resolvedSegments = normalizeSegments(append(filePathSegments.length <= 1 ? [] : filePathSegments.slice(0, filePathSegments.length - 2 + 1), patternInput[1]));
190
+ if (resolvedSegments.length === 0) {
191
+ if (filePrefixOpt == null) {
192
+ return trimmedPath;
193
+ } else {
194
+ return normalizeRootPrefix(value(filePrefixOpt));
195
+ }
196
+ } else {
197
+ return buildPathFromPrefixAndSegments(filePrefixOpt, resolvedSegments);
198
+ }
199
+ }
200
+ }
31
201
  function getFileName(path) {
32
202
  return last(split(path));
33
203
  }
@@ -47,4 +217,4 @@ function getRunFolderPath(runIdentifier) {
47
217
  return combine("runs", runIdentifier);
48
218
  }
49
219
 
50
- export { alternativeLICENSEFileNames, combine, combineMany, getAssayFolderPath, getFileName, getRunFolderPath, getStudyFolderPath, getWorkflowFolderPath, isFile, seperators, split };
220
+ export { alternativeLICENSEFileNames, buildPathFromPrefixAndSegments, combine, combineMany, getAssayFolderPath, getFileName, getRunFolderPath, getStudyFolderPath, getWorkflowFolderPath, hasLeadingSeparator, isFile, isUncPath, normalize, normalizePathKey, normalizeRootPrefix, normalizeSegments, resolvePathFromFile, seperators, split, splitWithPrefix, tryGetDrivePrefix };
@@ -2,7 +2,7 @@ import { choose, ofArray, singleton, empty } from '../../node_modules/@fable-org
2
2
  import { map, unwrap, defaultArg, value, bind } from '../../node_modules/@fable-org/fable-library-js/Option.js';
3
3
  import { tryInclude, tryIncludeSeq, tryIncludeList } from './Encode.js';
4
4
  import { OntologyAnnotation_encoder, OntologyAnnotation_decoder, OntologyAnnotation_ROCrate_encoderPropertyValue, OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_ROCrate_decoderPropertyValue, OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from './OntologyAnnotation.js';
5
- import { encoder as encoder$1, decoder as decoder$2, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$2 } from './DataMap/DataMap.js';
5
+ import { encoder as encoder$1, decoder as decoder$2, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$2 } from './Datamap/Datamap.js';
6
6
  import { encoder as encoder$2, decoder as decoder$1, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$1 } from './Table/ArcTable.js';
7
7
  import { encoder as encoder$3, decoder as decoder$3, ROCrate_encoder as ROCrate_encoder$1, ROCrate_decoder as ROCrate_decoder$2 } from './Person.js';
8
8
  import { encoder as encoder$4, decoder as decoder$4, ROCrate_encoder as ROCrate_encoder$4, ROCrate_decoder as ROCrate_decoder$3, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$2 } from './Comment.js';
@@ -38,7 +38,7 @@ function encoder(assay) {
38
38
  Encode(helpers_2) {
39
39
  return helpers_2.encodeString(value_3);
40
40
  }
41
- }), assay.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, assay.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, assay.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, assay.TechnologyPlatform), tryInclude("DataMap", encoder$1, assay.DataMap), tryIncludeSeq("Tables", encoder$2, assay.Tables), tryIncludeSeq("Performers", encoder$3, assay.Performers), tryIncludeSeq("Comments", encoder$4, assay.Comments)]));
41
+ }), assay.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, assay.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, assay.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, assay.TechnologyPlatform), tryInclude("Datamap", encoder$1, assay.Datamap), tryIncludeSeq("Tables", encoder$2, assay.Tables), tryIncludeSeq("Performers", encoder$3, assay.Performers), tryIncludeSeq("Comments", encoder$4, assay.Comments)]));
42
42
  return {
43
43
  Encode(helpers_3) {
44
44
  const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
@@ -48,7 +48,7 @@ function encoder(assay) {
48
48
  }
49
49
  const decoder = object((get$) => {
50
50
  let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9;
51
- return ArcAssay.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(decoder$1), objectArg_6 = get$.Optional, objectArg_6.Field("Tables", arg_13))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("DataMap", decoder$2))), unwrap((arg_17 = resizeArray(decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("Performers", arg_17))), unwrap((arg_19 = resizeArray(decoder$4), objectArg_9 = get$.Optional, objectArg_9.Field("Comments", arg_19))));
51
+ return ArcAssay.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(decoder$1), objectArg_6 = get$.Optional, objectArg_6.Field("Tables", arg_13))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("Datamap", decoder$2))), unwrap((arg_17 = resizeArray(decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("Performers", arg_17))), unwrap((arg_19 = resizeArray(decoder$4), objectArg_9 = get$.Optional, objectArg_9.Field("Comments", arg_19))));
52
52
  });
53
53
  function encoderCompressed(stringTable, oaTable, cellTable, assay) {
54
54
  let value;
@@ -64,7 +64,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, assay) {
64
64
  Encode(helpers_2) {
65
65
  return helpers_2.encodeString(value_3);
66
66
  }
67
- }), assay.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, assay.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, assay.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, assay.TechnologyPlatform), tryIncludeSeq("Tables", (table) => encoderCompressed$1(stringTable, oaTable, cellTable, table), assay.Tables), tryInclude("DataMap", (dm) => encoderCompressed$2(stringTable, oaTable, cellTable, dm), assay.DataMap), tryIncludeSeq("Performers", encoder$3, assay.Performers), tryIncludeSeq("Comments", encoder$4, assay.Comments)]));
67
+ }), assay.Description), tryInclude("MeasurementType", OntologyAnnotation_encoder, assay.MeasurementType), tryInclude("TechnologyType", OntologyAnnotation_encoder, assay.TechnologyType), tryInclude("TechnologyPlatform", OntologyAnnotation_encoder, assay.TechnologyPlatform), tryIncludeSeq("Tables", (table) => encoderCompressed$1(stringTable, oaTable, cellTable, table), assay.Tables), tryInclude("Datamap", (dm) => encoderCompressed$2(stringTable, oaTable, cellTable, dm), assay.Datamap), tryIncludeSeq("Performers", encoder$3, assay.Performers), tryIncludeSeq("Comments", encoder$4, assay.Comments)]));
68
68
  return {
69
69
  Encode(helpers_3) {
70
70
  const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
@@ -75,7 +75,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, assay) {
75
75
  function decoderCompressed(stringTable, oaTable, cellTable) {
76
76
  return object((get$) => {
77
77
  let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9;
78
- return ArcAssay.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_6 = get$.Optional, objectArg_6.Field("Tables", arg_13))), unwrap((arg_15 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_7 = get$.Optional, objectArg_7.Field("DataMap", arg_15))), unwrap((arg_17 = resizeArray(decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("Performers", arg_17))), unwrap((arg_19 = resizeArray(decoder$4), objectArg_9 = get$.Optional, objectArg_9.Field("Comments", arg_19))));
78
+ return ArcAssay.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_6 = get$.Optional, objectArg_6.Field("Tables", arg_13))), unwrap((arg_15 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_7 = get$.Optional, objectArg_7.Field("Datamap", arg_15))), unwrap((arg_17 = resizeArray(decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("Performers", arg_17))), unwrap((arg_19 = resizeArray(decoder$4), objectArg_9 = get$.Optional, objectArg_9.Field("Comments", arg_19))));
79
79
  });
80
80
  }
81
81
  function ROCrate_genID(a) {
@@ -1 +1 @@
1
- {"version":3,"file":"DataContext.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/DataMap/DataContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,uDAAuD,CAAC;AAKjH,OAAO,EAA+B,WAAW,EAAwK,MAAM,2BAA2B,CAAC;AAK3P,wBAAgB,OAAO,CAAC,EAAE,EAAE,WAAW,GAAG,UAAU,CAoBnD;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAMzC,CAAC"}
1
+ {"version":3,"file":"DataContext.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/Datamap/DataContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,uDAAuD,CAAC;AAKjH,OAAO,EAA+B,WAAW,EAAwK,MAAM,2BAA2B,CAAC;AAK3P,wBAAgB,OAAO,CAAC,EAAE,EAAE,WAAW,GAAG,UAAU,CAoBnD;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAMzC,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import { Decoder$1, IEncodable } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
2
- import { DataMap } from '../../Core/DataMap.js';
2
+ import { Datamap } from '../../Core/Datamap.js';
3
3
  import { IMap } from '@fable-org/fable-library-js/Util.js';
4
4
  import { int32 } from '@fable-org/fable-library-js/Int32.js';
5
5
  import { OntologyAnnotation } from '../../Core/OntologyAnnotation.js';
6
6
  import { CompositeCell_$union } from '../../Core/Table/CompositeCell.js';
7
- export declare function encoder(dm: DataMap): IEncodable;
8
- export declare const decoder: Decoder$1<DataMap>;
9
- export declare function encoderCompressed(stringTable: IMap<string, int32>, oaTable: IMap<OntologyAnnotation, int32>, cellTable: IMap<CompositeCell_$union, int32>, dm: DataMap): IEncodable;
10
- export declare function decoderCompressed(stringTable: string[], oaTable: OntologyAnnotation[], cellTable: CompositeCell_$union[]): Decoder$1<DataMap>;
11
- //# sourceMappingURL=DataMap.d.ts.map
7
+ export declare function encoder(dm: Datamap): IEncodable;
8
+ export declare const decoder: Decoder$1<Datamap>;
9
+ export declare function encoderCompressed(stringTable: IMap<string, int32>, oaTable: IMap<OntologyAnnotation, int32>, cellTable: IMap<CompositeCell_$union, int32>, dm: Datamap): IEncodable;
10
+ export declare function decoderCompressed(stringTable: string[], oaTable: OntologyAnnotation[], cellTable: CompositeCell_$union[]): Decoder$1<Datamap>;
11
+ //# sourceMappingURL=Datamap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataMap.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/DataMap/DataMap.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,uDAAuD,CAAC;AACjH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,wBAAgB,OAAO,CAAC,EAAE,EAAE,OAAO,GAAG,UAAU,CAQ/C;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,OAAO,CAGrC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,OAAO,GAAG,UAAU,CAEnL;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,CAE7I"}
1
+ {"version":3,"file":"Datamap.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/Datamap/Datamap.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAqB,UAAU,EAAE,MAAM,uDAAuD,CAAC;AACjH,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,wBAAgB,OAAO,CAAC,EAAE,EAAE,OAAO,GAAG,UAAU,CAQ/C;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,OAAO,CAGrC,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,OAAO,GAAG,UAAU,CAEnL;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,CAE7I"}
@@ -1,7 +1,7 @@
1
1
  import { seq } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
2
2
  import { map } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
3
3
  import { encoder as encoder$1, decoder as decoder$1 } from './DataContext.js';
4
- import { DataMap } from '../../Core/DataMap.js';
4
+ import { Datamap } from '../../Core/Datamap.js';
5
5
  import { object, resizeArray } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
6
6
 
7
7
  function encoder(dm) {
@@ -15,7 +15,7 @@ function encoder(dm) {
15
15
  }
16
16
  const decoder = object((get$) => {
17
17
  let arg_1, objectArg;
18
- return new DataMap((arg_1 = resizeArray(decoder$1), objectArg = get$.Required, objectArg.Field("dataContexts", arg_1)));
18
+ return new Datamap((arg_1 = resizeArray(decoder$1), objectArg = get$.Required, objectArg.Field("dataContexts", arg_1)));
19
19
  });
20
20
  function encoderCompressed(stringTable, oaTable, cellTable, dm) {
21
21
  return encoder(dm);
@@ -1 +1 @@
1
- {"version":3,"file":"LDContext.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/ROCrate/LDContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkH,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAC9M,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAWvD,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,SAAS,CA4CxC,CAAC;AAEF,wBAAgB,OAAO,CAAC,OAAO,EAAE,SAAS,GAAG,UAAU,CAgEtD"}
1
+ {"version":3,"file":"LDContext.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/ROCrate/LDContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkH,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAC9M,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAWvD,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,SAAS,CA4CxC,CAAC;AAEF,wBAAgB,OAAO,CAAC,OAAO,EAAE,SAAS,GAAG,UAAU,CA0EtD"}
@@ -4,7 +4,7 @@ import { Getters$2_$ctor_Z4BE6C149, string, Getters$2__get_Errors, resizeArray }
4
4
  import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
5
5
  import { isEmpty, length, head } from '../../../node_modules/@fable-org/fable-library-js/List.js';
6
6
  import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
7
- import { initV1_2DRAFT, initV1_1 } from '../../ROCrate/ROCrateContext.js';
7
+ import { initV1_2, initV1_1 } from '../../ROCrate/ROCrateContext.js';
8
8
  import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
9
9
  import { map, append, toList, delay, singleton, empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
10
10
  import { seq } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
@@ -40,7 +40,7 @@ const decoder = {
40
40
  }
41
41
  } else if (helpers.isString(value)) {
42
42
  const s = helpers.asString(value);
43
- return s === "https://w3id.org/ro/crate/1.2-DRAFT/context" ? FSharpResult$2_Ok(initV1_2DRAFT()) : s === "https://w3id.org/ro/crate/1.1/context" ? FSharpResult$2_Ok(initV1_1()) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an object", value)]);
43
+ return (s === "https://w3id.org/ro/crate/1.2-DRAFT/context" ? true : s === "https://w3id.org/ro/crate/1.2/context") ? FSharpResult$2_Ok(initV1_2()) : s === "https://w3id.org/ro/crate/1.1/context" ? FSharpResult$2_Ok(initV1_1()) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("an object", value)]);
44
44
  } else if (helpers.isArray(value)) {
45
45
  const matchValue_1 = resizeArray(this$).Decode(helpers, value);
46
46
  return matchValue_1.tag === /* Error */
@@ -63,15 +63,19 @@ function encoder(ctx_mut) {
63
63
  matchResult = 0;
64
64
  break;
65
65
  }
66
- case "https://w3id.org/ro/crate/1.1/context": {
66
+ case "https://w3id.org/ro/crate/1.2/context": {
67
67
  matchResult = 1;
68
68
  break;
69
69
  }
70
- default:
70
+ case "https://w3id.org/ro/crate/1.1/context": {
71
71
  matchResult = 2;
72
+ break;
73
+ }
74
+ default:
75
+ matchResult = 3;
72
76
  }
73
77
  } else {
74
- matchResult = 2;
78
+ matchResult = 3;
75
79
  }
76
80
  switch (matchResult) {
77
81
  case 0:
@@ -83,20 +87,26 @@ function encoder(ctx_mut) {
83
87
  case 1:
84
88
  return {
85
89
  Encode(helpers_1) {
86
- return helpers_1.encodeString("https://w3id.org/ro/crate/1.1/context");
90
+ return helpers_1.encodeString("https://w3id.org/ro/crate/1.2/context");
91
+ }
92
+ };
93
+ case 2:
94
+ return {
95
+ Encode(helpers_2) {
96
+ return helpers_2.encodeString("https://w3id.org/ro/crate/1.1/context");
87
97
  }
88
98
  };
89
99
  default: {
90
100
  let mappings;
91
101
  const values = map((kv) => [kv[0], {
92
- Encode(helpers_2) {
93
- return helpers_2.encodeString(kv[1]);
102
+ Encode(helpers_3) {
103
+ return helpers_3.encodeString(kv[1]);
94
104
  }
95
105
  }], ctx.Mappings);
96
106
  mappings = {
97
- Encode(helpers_3) {
98
- const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_3)], values);
99
- return helpers_3.encodeObject(arg);
107
+ Encode(helpers_4) {
108
+ const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_4)], values);
109
+ return helpers_4.encodeObject(arg);
100
110
  }
101
111
  };
102
112
  if (ctx.BaseContexts.length === 0) {
@@ -2,6 +2,7 @@ import { Decoder$1, IEncodable } from '../../fable_modules/Thoth.Json.Core.0.7.0
2
2
  import { LDNode } from '../../ROCrate/LDObject.js';
3
3
  export declare function genericEncoder(obj: any): IEncodable;
4
4
  export declare function encoder(obj: LDNode): IEncodable;
5
+ export declare const nullDecoder: Decoder$1<void>;
5
6
  /**
6
7
  * Returns a decoder
7
8
  *
@@ -1 +1 @@
1
- {"version":3,"file":"LDNode.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/ROCrate/LDNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+F,SAAS,EAAE,UAAU,EAAqB,MAAM,uDAAuD,CAAC;AAG9M,OAAO,EAAE,MAAM,EAAkB,MAAM,2BAA2B,CAAC;AAgBnE,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,UAAU,CA+DnD;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CA6B/C;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,CA0FhE;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,MAAM,CAAuE,CAAC;AAE9G,eAAO,MAAM,cAAc,EAAE,SAAS,CAAC,GAAG,CAAqB,CAAC"}
1
+ {"version":3,"file":"LDNode.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Json/ROCrate/LDNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,SAAS,EAAuE,UAAU,EAAqB,MAAM,uDAAuD,CAAC;AAG9M,OAAO,EAAE,MAAM,EAAkB,MAAM,2BAA2B,CAAC;AAgBnE,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,UAAU,CA+DnD;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CA6B/C;AAED,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,IAAI,CAIvC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,CAgGhE;AAED,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC,MAAM,CAAuE,CAAC;AAE9G,eAAO,MAAM,cAAc,EAAE,SAAS,CAAC,GAAG,CAAqB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ErrorReason$1_BadOneOf, ErrorReason$1_BadPrimitive } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
1
+ import { ErrorReason$1_BadPrimitive, ErrorReason$1_BadOneOf } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
2
2
  import { dateTime, resizeArrayOrSingleton } from '../Encode.js';
3
3
  import { LDValue, LDRef, LDNode } from '../../ROCrate/LDObject.js';
4
4
  import { encoder as encoder$1, decoder as decoder$2 } from './LDValue.js';
@@ -8,10 +8,10 @@ import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
8
8
  import { toList, delay, map, enumerateFromFunctions, append, singleton, empty, collect } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
9
9
  import { encoder as encoder$3, decoder as decoder$1 } from './LDContext.js';
10
10
  import { value, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
11
- import { Getters$2_$ctor_Z4BE6C149, string, Getters$2__get_Errors, map as map$1, oneOf, int, decimal } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
11
+ import { FSharpResult$2_Ok, FSharpResult$2_Error } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
12
+ import { Getters$2_$ctor_Z4BE6C149, string, Getters$2__get_Errors, map as map$1, oneOf, int, decimal, bool } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
12
13
  import { Decode_resizeArrayOrSingleton, Helpers_prependPath } from '../Decode.js';
13
14
  import { isEmpty, length, head, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
14
- import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
15
15
  import { fold } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
16
16
 
17
17
  function genericEncoder(obj) {
@@ -98,11 +98,16 @@ function encoder(obj) {
98
98
  }
99
99
  };
100
100
  }
101
+ const nullDecoder = {
102
+ Decode(helpers, value) {
103
+ return helpers.isNullValue(value) ? FSharpResult$2_Ok(void 0) : FSharpResult$2_Error(["", ErrorReason$1_BadPrimitive("null", value)]);
104
+ }
105
+ };
101
106
  function getDecoder(expectObject) {
102
107
  const decode = (expectObject_1) => {
103
108
  const decodeObject = {
104
109
  Decode(helpers, value$1) {
105
- let arg_7, objectArg_3, arg_9, objectArg_4;
110
+ let arg_7, objectArg_3;
106
111
  if (helpers.isObject(value$1)) {
107
112
  const getters = Getters$2_$ctor_Z4BE6C149(helpers, value$1);
108
113
  const properties = helpers.getProperties(value$1);
@@ -124,7 +129,13 @@ function getDecoder(expectObject) {
124
129
  while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
125
130
  const property = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
126
131
  if (property !== "@id" && property !== "@type" && property !== "@context") {
127
- o.SetProperty(property, (arg_9 = decode(false), objectArg_4 = get$.Required, objectArg_4.Field(property, arg_9)));
132
+ let r;
133
+ const arg_9 = decode(false);
134
+ const objectArg_4 = get$.Required;
135
+ r = objectArg_4.Field(property, arg_9);
136
+ if (!equals(r, defaultOf())) {
137
+ o.SetProperty(property, r);
138
+ }
128
139
  }
129
140
  }
130
141
  } finally {
@@ -179,7 +190,7 @@ function getDecoder(expectObject) {
179
190
  if (expectObject_1) {
180
191
  return map$1((value_4) => value_4, decodeObject);
181
192
  } else {
182
- return oneOf(ofArray([map$1((value_5) => value_5, decoder$2), map$1((value_6) => value_6, decodeObject), map$1((value_7) => value_7, decoder$3), map$1((value_8) => value_8, resizeArray), map$1((value_9) => value_9, string), map$1((value_10) => value_10, int), map$1((value_11) => value_11, decimal)]));
193
+ return oneOf(ofArray([map$1((value_5) => value_5, decoder$2), map$1((value_6) => value_6, decodeObject), map$1((value_7) => value_7, decoder$3), map$1((value_8) => value_8, resizeArray), map$1((value_9) => value_9, string), map$1((value_10) => value_10, int), map$1((value_11) => value_11, decimal), map$1((value_12) => value_12, bool), map$1(() => void 0, nullDecoder)]));
183
194
  }
184
195
  };
185
196
  return decode(expectObject);
@@ -187,4 +198,4 @@ function getDecoder(expectObject) {
187
198
  const decoder = map$1((value) => value, getDecoder(true));
188
199
  const genericDecoder = getDecoder(false);
189
200
 
190
- export { decoder, encoder, genericDecoder, genericEncoder, getDecoder };
201
+ export { decoder, encoder, genericDecoder, genericEncoder, getDecoder, nullDecoder };