@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.5

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 (398) hide show
  1. package/README.md +2 -0
  2. package/dist/ts/index.js +63 -0
  3. package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
  4. package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
  5. package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
  6. package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
  7. package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
  8. package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
  9. package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
  10. package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
  11. package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
  12. package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
  13. package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
  14. package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
  15. package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
  16. package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
  17. package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
  18. package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
  19. package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
  20. package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
  21. package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
  22. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
  23. package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
  24. package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
  25. package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
  26. package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
  27. package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
  28. package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
  29. package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
  30. package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
  31. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
  32. package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
  33. package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
  34. package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
  35. package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
  36. package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
  37. package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
  38. package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
  39. package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
  40. package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
  41. package/dist/ts/ts/ARC.js +914 -0
  42. package/dist/ts/ts/Contract/ARC.js +52 -0
  43. package/dist/ts/ts/Contract/ArcAssay.js +80 -0
  44. package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
  45. package/dist/ts/ts/Contract/ArcRun.js +76 -0
  46. package/dist/ts/ts/Contract/ArcStudy.js +76 -0
  47. package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
  48. package/dist/ts/ts/Contract/Contract.js +45 -0
  49. package/dist/ts/ts/Contract/Datamap.js +221 -0
  50. package/dist/ts/ts/Contract/Git.js +57 -0
  51. package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
  52. package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
  53. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
  54. package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
  55. package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
  56. package/dist/ts/ts/Conversion.js +1247 -0
  57. package/dist/ts/ts/Core/ArcTypes.js +3393 -0
  58. package/dist/ts/ts/Core/Comment.js +91 -0
  59. package/dist/ts/ts/Core/CommentList.js +27 -0
  60. package/dist/ts/ts/Core/Conversion.js +923 -0
  61. package/dist/ts/ts/Core/Data.js +179 -0
  62. package/dist/ts/ts/Core/DataContext.js +108 -0
  63. package/dist/ts/ts/Core/DataFile.js +50 -0
  64. package/dist/ts/ts/Core/DataMap.js +53 -0
  65. package/dist/ts/ts/Core/Helper/Collections.js +323 -0
  66. package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
  67. package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
  68. package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
  69. package/dist/ts/ts/Core/Helper/Regex.js +296 -0
  70. package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
  71. package/dist/ts/ts/Core/Helper/Url.js +32 -0
  72. package/dist/ts/ts/Core/IdentifierSetters.d.ts +3 -1
  73. package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
  74. package/dist/ts/ts/Core/IdentifierSetters.js +11 -0
  75. package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
  76. package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
  77. package/dist/ts/ts/Core/Person.js +183 -0
  78. package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
  79. package/dist/ts/ts/Core/Process/Component.js +121 -0
  80. package/dist/ts/ts/Core/Process/Factor.js +104 -0
  81. package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
  82. package/dist/ts/ts/Core/Process/Material.js +49 -0
  83. package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
  84. package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
  85. package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
  86. package/dist/ts/ts/Core/Process/Process.js +136 -0
  87. package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
  88. package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
  89. package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
  90. package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
  91. package/dist/ts/ts/Core/Process/Protocol.js +54 -0
  92. package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
  93. package/dist/ts/ts/Core/Process/Sample.js +44 -0
  94. package/dist/ts/ts/Core/Process/Source.js +38 -0
  95. package/dist/ts/ts/Core/Publication.js +108 -0
  96. package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
  97. package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
  98. package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
  99. package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
  100. package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
  101. package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
  102. package/dist/ts/ts/Core/Template.js +180 -0
  103. package/dist/ts/ts/Core/Templates.js +75 -0
  104. package/dist/ts/ts/Core/URI.js +8 -0
  105. package/dist/ts/ts/Core/Value.js +194 -0
  106. package/dist/ts/ts/CrossAsync.js +20 -0
  107. package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
  108. package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
  109. package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
  110. package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
  111. package/dist/ts/ts/FileSystem/Path.js +36 -0
  112. package/dist/ts/ts/Json/Assay.d.ts +2 -2
  113. package/dist/ts/ts/Json/Assay.js +221 -0
  114. package/dist/ts/ts/Json/Comment.d.ts +1 -1
  115. package/dist/ts/ts/Json/Comment.js +112 -0
  116. package/dist/ts/ts/Json/Data.d.ts +1 -1
  117. package/dist/ts/ts/Json/Data.js +138 -0
  118. package/dist/ts/ts/Json/DataFile.d.ts +1 -1
  119. package/dist/ts/ts/Json/DataFile.js +55 -0
  120. package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
  121. package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
  122. package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
  123. package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
  124. package/dist/ts/ts/Json/Decode.d.ts +2 -2
  125. package/dist/ts/ts/Json/Decode.js +209 -0
  126. package/dist/ts/ts/Json/Encode.d.ts +1 -1
  127. package/dist/ts/ts/Json/Encode.js +65 -0
  128. package/dist/ts/ts/Json/IDTable.d.ts +1 -1
  129. package/dist/ts/ts/Json/IDTable.js +28 -0
  130. package/dist/ts/ts/Json/Investigation.d.ts +1 -1
  131. package/dist/ts/ts/Json/Investigation.js +229 -0
  132. package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
  133. package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
  134. package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
  135. package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
  136. package/dist/ts/ts/Json/Person.d.ts +1 -1
  137. package/dist/ts/ts/Json/Person.js +316 -0
  138. package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
  139. package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
  140. package/dist/ts/ts/Json/Process/Component.d.ts +6 -4
  141. package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
  142. package/dist/ts/ts/Json/Process/Component.js +58 -0
  143. package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
  144. package/dist/ts/ts/Json/Process/Factor.js +53 -0
  145. package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
  146. package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
  147. package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
  148. package/dist/ts/ts/Json/Process/Material.js +112 -0
  149. package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
  150. package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
  151. package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
  152. package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
  153. package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
  154. package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
  155. package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
  156. package/dist/ts/ts/Json/Process/Process.js +103 -0
  157. package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
  158. package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
  159. package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
  160. package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
  161. package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
  162. package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
  163. package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
  164. package/dist/ts/ts/Json/Process/Protocol.js +166 -0
  165. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +5 -3
  166. package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
  167. package/dist/ts/ts/Json/Process/ProtocolParameter.js +52 -0
  168. package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
  169. package/dist/ts/ts/Json/Process/Sample.js +165 -0
  170. package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
  171. package/dist/ts/ts/Json/Process/Source.js +133 -0
  172. package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
  173. package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
  174. package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
  175. package/dist/ts/ts/Json/Process/Value.js +41 -0
  176. package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
  177. package/dist/ts/ts/Json/PropertyValue.js +280 -0
  178. package/dist/ts/ts/Json/Publication.d.ts +1 -1
  179. package/dist/ts/ts/Json/Publication.js +123 -0
  180. package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
  181. package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
  182. package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
  183. package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
  184. package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
  185. package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
  186. package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
  187. package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
  188. package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
  189. package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
  190. package/dist/ts/ts/Json/Run.d.ts +11 -0
  191. package/dist/ts/ts/Json/Run.d.ts.map +1 -0
  192. package/dist/ts/ts/Json/Run.js +76 -0
  193. package/dist/ts/ts/Json/StringTable.d.ts +1 -1
  194. package/dist/ts/ts/Json/StringTable.js +66 -0
  195. package/dist/ts/ts/Json/Study.d.ts +1 -1
  196. package/dist/ts/ts/Json/Study.js +326 -0
  197. package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
  198. package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
  199. package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
  200. package/dist/ts/ts/Json/Table/CellTable.js +53 -0
  201. package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
  202. package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
  203. package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
  204. package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
  205. package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
  206. package/dist/ts/ts/Json/Table/IOType.js +15 -0
  207. package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
  208. package/dist/ts/ts/Json/Table/OATable.js +50 -0
  209. package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
  210. package/dist/ts/ts/Json/Table/Templates.js +15 -0
  211. package/dist/ts/ts/Json/Workflow.d.ts +11 -0
  212. package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
  213. package/dist/ts/ts/Json/Workflow.js +93 -0
  214. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
  215. package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
  216. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
  217. package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
  218. package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
  219. package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
  220. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
  221. package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
  222. package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
  223. package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
  224. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
  225. package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
  226. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
  227. package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
  228. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
  229. package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
  230. package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
  231. package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
  232. package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
  233. package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
  234. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
  235. package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
  236. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
  237. package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
  238. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
  239. package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
  240. package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
  241. package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
  242. package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
  243. package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
  244. package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
  245. package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
  246. package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
  247. package/dist/ts/ts/Json.d.ts +21 -1
  248. package/dist/ts/ts/Json.d.ts.map +1 -1
  249. package/dist/ts/ts/Json.js +211 -0
  250. package/dist/ts/ts/JsonIO/Assay.js +77 -0
  251. package/dist/ts/ts/JsonIO/Investigation.js +77 -0
  252. package/dist/ts/ts/JsonIO/LDObject.js +77 -0
  253. package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
  254. package/dist/ts/ts/JsonIO/Run.d.ts +10 -0
  255. package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
  256. package/dist/ts/ts/JsonIO/Run.js +44 -0
  257. package/dist/ts/ts/JsonIO/Study.js +77 -0
  258. package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
  259. package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
  260. package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
  261. package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
  262. package/dist/ts/ts/JsonIO/Workflow.d.ts +10 -0
  263. package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
  264. package/dist/ts/ts/JsonIO/Workflow.js +44 -0
  265. package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
  266. package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
  267. package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
  268. package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
  269. package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
  270. package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
  271. package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
  272. package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
  273. package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
  274. package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
  275. package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
  276. package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
  277. package/dist/ts/ts/ROCrate/Helper.js +7 -0
  278. package/dist/ts/ts/ROCrate/LDContext.js +288 -0
  279. package/dist/ts/ts/ROCrate/LDObject.js +855 -0
  280. package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
  281. package/dist/ts/ts/ROCrateIO.d.ts +1 -1
  282. package/dist/ts/ts/ROCrateIO.js +58 -0
  283. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
  284. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
  285. package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
  286. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
  287. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
  288. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
  289. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
  290. package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
  291. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
  292. package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
  293. package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
  294. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
  295. package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
  296. package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
  297. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
  298. package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
  299. package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
  300. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
  301. package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
  302. package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
  303. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
  304. package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
  305. package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
  306. package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
  307. package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
  308. package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
  309. package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
  310. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
  311. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
  312. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
  313. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
  314. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
  315. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
  316. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
  317. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
  318. package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
  319. package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
  320. package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
  321. package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
  322. package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
  323. package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
  324. package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
  325. package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
  326. package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
  327. package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
  328. package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
  329. package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
  330. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
  331. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
  332. package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
  333. package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
  334. package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
  335. package/dist/ts/ts/Template.Web.js +22 -0
  336. package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
  337. package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
  338. package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
  339. package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
  340. package/dist/ts/ts/Xlsx.d.ts +22 -2
  341. package/dist/ts/ts/Xlsx.d.ts.map +1 -1
  342. package/dist/ts/ts/Xlsx.js +131 -0
  343. package/dist/ts/ts/Yaml/Encode.js +8 -0
  344. package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
  345. package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
  346. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
  347. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
  348. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
  349. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
  350. package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
  351. package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
  352. package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
  353. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
  354. package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
  355. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
  356. package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
  357. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
  358. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
  359. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
  360. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
  361. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
  362. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
  363. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
  364. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
  365. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
  366. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
  367. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
  368. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
  369. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
  370. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
  371. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
  372. package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
  373. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
  374. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
  375. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
  376. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
  377. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
  378. package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
  379. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
  380. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
  381. package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
  382. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
  383. package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
  384. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
  385. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
  386. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
  387. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
  388. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
  389. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
  390. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
  391. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
  392. package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
  393. package/package.json +10 -7
  394. package/dist/ts/__vite-browser-external-2447137e.js +0 -4
  395. package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
  396. package/dist/ts/arctrl.cjs.js +0 -5691
  397. package/dist/ts/arctrl.es.js +0 -35562
  398. package/dist/ts/arctrl.umd.js +0 -5691
@@ -0,0 +1,257 @@
1
+ import { unwrap, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { LDNode } from '../LDObject.js';
3
+ import { LDDefinedTerm } from './DefinedTerm.js';
4
+ import { LDComment } from './Comment.js';
5
+ import { append, toList, delay, singleton as singleton$1, empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
6
+ import { clean } from '../Helper.js';
7
+ import { join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
8
+ import { append as append$1, singleton, isEmpty } from '../../../node_modules/@fable-org/fable-library-js/List.js';
9
+ import { createMissingIdentifier } from '../../Core/Helper/Identifier.js';
10
+
11
+ class LDLabProtocol {
12
+ constructor() {
13
+ }
14
+ static get schemaType() {
15
+ return "https://bioschemas.org/LabProtocol";
16
+ }
17
+ static get description() {
18
+ return "http://schema.org/description";
19
+ }
20
+ static get intendedUse() {
21
+ return "https://bioschemas.org/intendedUse";
22
+ }
23
+ static get name() {
24
+ return "http://schema.org/name";
25
+ }
26
+ static get comment() {
27
+ return "http://schema.org/comment";
28
+ }
29
+ static get computationalTool() {
30
+ return "https://bioschemas.org/computationalTool";
31
+ }
32
+ static get labEquipment() {
33
+ return "https://bioschemas.org/labEquipment";
34
+ }
35
+ static get reagent() {
36
+ return "https://bioschemas.org/reagent";
37
+ }
38
+ static get url() {
39
+ return "http://schema.org/url";
40
+ }
41
+ static get version() {
42
+ return "http://schema.org/version";
43
+ }
44
+ static tryGetDescriptionAsString(lp, context) {
45
+ const matchValue = lp.TryGetPropertyAsSingleton(LDLabProtocol.description, unwrap(context));
46
+ let matchResult, d;
47
+ if (matchValue != null) {
48
+ if (typeof value(matchValue) === "string") {
49
+ matchResult = 0;
50
+ d = value(matchValue);
51
+ } else {
52
+ matchResult = 1;
53
+ }
54
+ } else {
55
+ matchResult = 1;
56
+ }
57
+ switch (matchResult) {
58
+ case 0:
59
+ return d;
60
+ default:
61
+ return void 0;
62
+ }
63
+ }
64
+ static setDescriptionAsString(lp, description, context) {
65
+ return lp.SetProperty(LDLabProtocol.description, description, unwrap(context));
66
+ }
67
+ static tryGetIntendedUseAsString(lp, context) {
68
+ const matchValue = lp.TryGetPropertyAsSingleton(LDLabProtocol.intendedUse, unwrap(context));
69
+ let matchResult, iu;
70
+ if (matchValue != null) {
71
+ if (typeof value(matchValue) === "string") {
72
+ matchResult = 0;
73
+ iu = value(matchValue);
74
+ } else {
75
+ matchResult = 1;
76
+ }
77
+ } else {
78
+ matchResult = 1;
79
+ }
80
+ switch (matchResult) {
81
+ case 0:
82
+ return iu;
83
+ default:
84
+ return void 0;
85
+ }
86
+ }
87
+ static setIntendedUseAsString(lp, intendedUse, context) {
88
+ return lp.SetProperty(LDLabProtocol.intendedUse, intendedUse, unwrap(context));
89
+ }
90
+ static tryGetIntendedUseAsDefinedTerm(lp, graph, context) {
91
+ let ldObject;
92
+ const matchValue = lp.TryGetPropertyAsSingleNode(LDLabProtocol.intendedUse, unwrap(graph), unwrap(context));
93
+ let matchResult, iu_1;
94
+ if (matchValue != null) {
95
+ if (ldObject = value(matchValue), LDDefinedTerm.validate(ldObject, unwrap(context))) {
96
+ matchResult = 0;
97
+ iu_1 = value(matchValue);
98
+ } else {
99
+ matchResult = 1;
100
+ }
101
+ } else {
102
+ matchResult = 1;
103
+ }
104
+ switch (matchResult) {
105
+ case 0:
106
+ return iu_1;
107
+ default:
108
+ return void 0;
109
+ }
110
+ }
111
+ static setIntendedUseAsDefinedTerm(lp, intendedUse, context) {
112
+ return lp.SetProperty(LDLabProtocol.intendedUse, intendedUse, unwrap(context));
113
+ }
114
+ static tryGetNameAsString(lp, context) {
115
+ const matchValue = lp.TryGetPropertyAsSingleton(LDLabProtocol.name, unwrap(context));
116
+ let matchResult, n;
117
+ if (matchValue != null) {
118
+ if (typeof value(matchValue) === "string") {
119
+ matchResult = 0;
120
+ n = value(matchValue);
121
+ } else {
122
+ matchResult = 1;
123
+ }
124
+ } else {
125
+ matchResult = 1;
126
+ }
127
+ switch (matchResult) {
128
+ case 0:
129
+ return n;
130
+ default:
131
+ return void 0;
132
+ }
133
+ }
134
+ static getNameAsString(lp, context) {
135
+ const matchValue = lp.TryGetPropertyAsSingleton(LDLabProtocol.name, unwrap(context));
136
+ let matchResult, n;
137
+ if (matchValue != null) {
138
+ if (typeof value(matchValue) === "string") {
139
+ matchResult = 0;
140
+ n = value(matchValue);
141
+ } else {
142
+ matchResult = 1;
143
+ }
144
+ } else {
145
+ matchResult = 1;
146
+ }
147
+ switch (matchResult) {
148
+ case 0:
149
+ return n;
150
+ default:
151
+ throw new Error(`Could not access property \`name\` of object with @id \`${lp.Id}\``);
152
+ }
153
+ }
154
+ static setNameAsString(lp, name, context) {
155
+ return lp.SetProperty(LDLabProtocol.name, name, unwrap(context));
156
+ }
157
+ static getComments(lp, graph, context) {
158
+ return lp.GetPropertyNodes(LDLabProtocol.comment, (ldObject, context_1) => LDComment.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
159
+ }
160
+ static setComments(lp, comments, context) {
161
+ return lp.SetProperty(LDLabProtocol.comment, comments, unwrap(context));
162
+ }
163
+ static getComputationalTools(lp, graph, context) {
164
+ return lp.GetPropertyNodes(LDLabProtocol.computationalTool, void 0, unwrap(graph), unwrap(context));
165
+ }
166
+ static setComputationalTools(lp, computationalTools, context) {
167
+ return lp.SetProperty(LDLabProtocol.computationalTool, computationalTools, unwrap(context));
168
+ }
169
+ static getLabEquipments(lp, graph, context) {
170
+ return lp.GetPropertyNodes(LDLabProtocol.labEquipment, void 0, unwrap(graph), unwrap(context));
171
+ }
172
+ static setLabEquipments(lp, labEquipments, context) {
173
+ return lp.SetProperty(LDLabProtocol.labEquipment, labEquipments, unwrap(context));
174
+ }
175
+ static getReagents(lp, graph, context) {
176
+ return lp.GetPropertyNodes(LDLabProtocol.reagent, void 0, unwrap(graph), unwrap(context));
177
+ }
178
+ static setReagents(lp, reagents, context) {
179
+ return lp.SetProperty(LDLabProtocol.reagent, reagents, unwrap(context));
180
+ }
181
+ static getComponents(lp, graph, context) {
182
+ let collection;
183
+ let source_3;
184
+ const source_1 = LDLabProtocol.getLabEquipments(lp, unwrap(graph), unwrap(context));
185
+ source_3 = append(LDLabProtocol.getReagents(lp, unwrap(graph), unwrap(context)), source_1);
186
+ collection = append(LDLabProtocol.getComputationalTools(lp, unwrap(graph), unwrap(context)), source_3);
187
+ return Array.from(collection);
188
+ }
189
+ static tryGetUrl(lp, context) {
190
+ const matchValue = lp.TryGetPropertyAsSingleton(LDLabProtocol.url, unwrap(context));
191
+ let matchResult, u;
192
+ if (matchValue != null) {
193
+ if (typeof value(matchValue) === "string") {
194
+ matchResult = 0;
195
+ u = value(matchValue);
196
+ } else {
197
+ matchResult = 1;
198
+ }
199
+ } else {
200
+ matchResult = 1;
201
+ }
202
+ switch (matchResult) {
203
+ case 0:
204
+ return u;
205
+ default:
206
+ return void 0;
207
+ }
208
+ }
209
+ static setUrl(lp, url, context) {
210
+ return lp.SetProperty(LDLabProtocol.url, url, unwrap(context));
211
+ }
212
+ static tryGetVersionAsString(lp, context) {
213
+ const matchValue = lp.TryGetPropertyAsSingleton(LDLabProtocol.version, unwrap(context));
214
+ let matchResult, v;
215
+ if (matchValue != null) {
216
+ if (typeof value(matchValue) === "string") {
217
+ matchResult = 0;
218
+ v = value(matchValue);
219
+ } else {
220
+ matchResult = 1;
221
+ }
222
+ } else {
223
+ matchResult = 1;
224
+ }
225
+ switch (matchResult) {
226
+ case 0:
227
+ return v;
228
+ default:
229
+ return void 0;
230
+ }
231
+ }
232
+ static setVersionAsString(lp, version, context) {
233
+ return lp.SetProperty(LDLabProtocol.version, version, unwrap(context));
234
+ }
235
+ static validate(lp, context) {
236
+ return lp.HasType(LDLabProtocol.schemaType, unwrap(context));
237
+ }
238
+ static genId(name, processName, assayName, studyName) {
239
+ let vals;
240
+ return clean(join("_", append$1(singleton("#Protocol"), (vals = toList(delay(() => append(name != null ? singleton$1(value(name)) : empty(), delay(() => append(processName != null ? singleton$1(value(processName)) : empty(), delay(() => append(assayName != null ? singleton$1(value(assayName)) : empty(), delay(() => studyName != null ? singleton$1(value(studyName)) : empty())))))))), isEmpty(vals) ? singleton(createMissingIdentifier()) : vals))));
241
+ }
242
+ static create(id, name, description, intendedUse, comments, computationalTools, labEquipments, reagents, url, version, context) {
243
+ const lp = new LDNode(id, [LDLabProtocol.schemaType], void 0, unwrap(context));
244
+ lp.SetOptionalProperty(LDLabProtocol.name, name, unwrap(context));
245
+ lp.SetOptionalProperty(LDLabProtocol.description, description, unwrap(context));
246
+ lp.SetOptionalProperty(LDLabProtocol.intendedUse, intendedUse, unwrap(context));
247
+ lp.SetOptionalProperty(LDLabProtocol.comment, comments, unwrap(context));
248
+ lp.SetOptionalProperty(LDLabProtocol.computationalTool, computationalTools, unwrap(context));
249
+ lp.SetOptionalProperty(LDLabProtocol.labEquipment, labEquipments, unwrap(context));
250
+ lp.SetOptionalProperty(LDLabProtocol.reagent, reagents, unwrap(context));
251
+ lp.SetOptionalProperty(LDLabProtocol.url, url, unwrap(context));
252
+ lp.SetOptionalProperty(LDLabProtocol.version, version, unwrap(context));
253
+ return lp;
254
+ }
255
+ }
256
+
257
+ export { LDLabProtocol };
@@ -0,0 +1,63 @@
1
+ import { unwrap, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { LDNode } from '../LDObject.js';
3
+ import { clean } from '../Helper.js';
4
+
5
+ class LDOrganization {
6
+ constructor() {
7
+ }
8
+ static get schemaType() {
9
+ return "http://schema.org/Organization";
10
+ }
11
+ static get name() {
12
+ return "http://schema.org/name";
13
+ }
14
+ static tryGetNameAsString(o, context) {
15
+ const matchValue = o.TryGetPropertyAsSingleton(LDOrganization.name, unwrap(context));
16
+ let matchResult, n;
17
+ if (matchValue != null) {
18
+ if (typeof value(matchValue) === "string") {
19
+ matchResult = 0;
20
+ n = value(matchValue);
21
+ } else {
22
+ matchResult = 1;
23
+ }
24
+ } else {
25
+ matchResult = 1;
26
+ }
27
+ switch (matchResult) {
28
+ case 0:
29
+ return n;
30
+ default:
31
+ return void 0;
32
+ }
33
+ }
34
+ static getNameAsString(o, context) {
35
+ const matchValue = o.TryGetPropertyAsSingleton(LDOrganization.name, unwrap(context));
36
+ if (matchValue != null) {
37
+ if (typeof value(matchValue) === "string") {
38
+ const n = value(matchValue);
39
+ return n;
40
+ } else {
41
+ throw new Error(`Property of \`name\` of object with @id \`${o.Id}\` was not a string`);
42
+ }
43
+ } else {
44
+ throw new Error(`Could not access property \`name\` of object with @id \`${o.Id}\``);
45
+ }
46
+ }
47
+ static setNameAsString(o, n, context) {
48
+ return o.SetProperty(LDOrganization.name, n, unwrap(context));
49
+ }
50
+ static genID(name) {
51
+ return clean(`#Organization_${name}`);
52
+ }
53
+ static validate(o, context) {
54
+ return o.HasType(LDOrganization.schemaType, unwrap(context)) && o.HasProperty(LDOrganization.name, unwrap(context));
55
+ }
56
+ static create(name, id, context) {
57
+ const o = new LDNode(id == null ? LDOrganization.genID(name) : value(id), [LDOrganization.schemaType], void 0, unwrap(context));
58
+ o.SetProperty(LDOrganization.name, name, unwrap(context));
59
+ return o;
60
+ }
61
+ }
62
+
63
+ export { LDOrganization };
@@ -0,0 +1,377 @@
1
+ import { unwrap, value, some, map, bind } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
2
+ import { LDNode, LDRef } from '../LDObject.js';
3
+ import { LDOrganization } from './Organization.js';
4
+ import { LDDefinedTerm } from './DefinedTerm.js';
5
+ import { LDPostalAddress } from './PostalAddress.js';
6
+ import { ResizeArray_map } from '../../Core/Helper/Collections.js';
7
+ import { clean } from '../Helper.js';
8
+ import { tryGetOrcidURL } from '../../Core/Helper/ORCID.js';
9
+
10
+ class LDPerson {
11
+ constructor() {
12
+ }
13
+ static get schemaType() {
14
+ return "http://schema.org/Person";
15
+ }
16
+ static get givenName() {
17
+ return "http://schema.org/givenName";
18
+ }
19
+ static get affiliation() {
20
+ return "http://schema.org/affiliation";
21
+ }
22
+ static get email() {
23
+ return "http://schema.org/email";
24
+ }
25
+ static get familyName() {
26
+ return "http://schema.org/familyName";
27
+ }
28
+ static get identifier() {
29
+ return "http://schema.org/identifier";
30
+ }
31
+ static get jobTitle() {
32
+ return "http://schema.org/jobTitle";
33
+ }
34
+ static get additionalName() {
35
+ return "http://schema.org/additionalName";
36
+ }
37
+ static get address() {
38
+ return "http://schema.org/address";
39
+ }
40
+ static get disambiguatingDescription() {
41
+ return "http://schema.org/disambiguatingDescription";
42
+ }
43
+ static get faxNumber() {
44
+ return "http://schema.org/faxNumber";
45
+ }
46
+ static get telephone() {
47
+ return "http://schema.org/telephone";
48
+ }
49
+ static tryGetGivenNameAsString(p, context) {
50
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.givenName, unwrap(context));
51
+ let matchResult, n;
52
+ if (matchValue != null) {
53
+ if (typeof value(matchValue) === "string") {
54
+ matchResult = 0;
55
+ n = value(matchValue);
56
+ } else {
57
+ matchResult = 1;
58
+ }
59
+ } else {
60
+ matchResult = 1;
61
+ }
62
+ switch (matchResult) {
63
+ case 0:
64
+ return n;
65
+ default:
66
+ return void 0;
67
+ }
68
+ }
69
+ static getGivenNameAsString(p, context) {
70
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.givenName, unwrap(context));
71
+ if (matchValue != null) {
72
+ if (typeof value(matchValue) === "string") {
73
+ const n = value(matchValue);
74
+ return n;
75
+ } else {
76
+ throw new Error(`Property of \`givenName\` of object with @id \`${p.Id}\` was not a string`);
77
+ }
78
+ } else {
79
+ throw new Error(`Could not access property \`givenName\` of object with @id \`${p.Id}\``);
80
+ }
81
+ }
82
+ static setGivenNameAsString(p, n, context) {
83
+ return p.SetProperty(LDPerson.givenName, n, unwrap(context));
84
+ }
85
+ static tryGetAffiliation(p, graph, context) {
86
+ let n;
87
+ const matchValue = p.TryGetPropertyAsSingleNode(LDPerson.affiliation, unwrap(graph), unwrap(context));
88
+ let matchResult, n_1;
89
+ if (matchValue != null) {
90
+ if (n = value(matchValue), LDOrganization.validate(n, unwrap(context))) {
91
+ matchResult = 0;
92
+ n_1 = value(matchValue);
93
+ } else {
94
+ matchResult = 1;
95
+ }
96
+ } else {
97
+ matchResult = 1;
98
+ }
99
+ switch (matchResult) {
100
+ case 0:
101
+ return n_1;
102
+ default:
103
+ return void 0;
104
+ }
105
+ }
106
+ static setAffiliation(p, a, context) {
107
+ return p.SetProperty(LDPerson.affiliation, a, unwrap(context));
108
+ }
109
+ static tryGetEmailAsString(p, context) {
110
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.email, unwrap(context));
111
+ let matchResult, e;
112
+ if (matchValue != null) {
113
+ if (typeof value(matchValue) === "string") {
114
+ matchResult = 0;
115
+ e = value(matchValue);
116
+ } else {
117
+ matchResult = 1;
118
+ }
119
+ } else {
120
+ matchResult = 1;
121
+ }
122
+ switch (matchResult) {
123
+ case 0:
124
+ return e;
125
+ default:
126
+ return void 0;
127
+ }
128
+ }
129
+ static setEmailAsString(p, e, context) {
130
+ return p.SetProperty(LDPerson.email, e, unwrap(context));
131
+ }
132
+ static tryGetFamilyNameAsString(p, context) {
133
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.familyName, unwrap(context));
134
+ let matchResult, n;
135
+ if (matchValue != null) {
136
+ if (typeof value(matchValue) === "string") {
137
+ matchResult = 0;
138
+ n = value(matchValue);
139
+ } else {
140
+ matchResult = 1;
141
+ }
142
+ } else {
143
+ matchResult = 1;
144
+ }
145
+ switch (matchResult) {
146
+ case 0:
147
+ return n;
148
+ default:
149
+ return void 0;
150
+ }
151
+ }
152
+ static getFamilyNameAsString(p, context) {
153
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.familyName, unwrap(context));
154
+ if (matchValue != null) {
155
+ if (typeof value(matchValue) === "string") {
156
+ const n = value(matchValue);
157
+ return n;
158
+ } else {
159
+ throw new Error(`Property of \`familyName\` of object with @id \`${p.Id}\` was not a string`);
160
+ }
161
+ } else {
162
+ throw new Error(`Could not access property \`familyName\` of object with @id \`${p.Id}\``);
163
+ }
164
+ }
165
+ static setFamilyNameAsString(p, n, context) {
166
+ return p.SetProperty(LDPerson.familyName, n, unwrap(context));
167
+ }
168
+ static tryGetIdentifier(p, context) {
169
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.identifier, unwrap(context));
170
+ let matchResult, i;
171
+ if (matchValue != null) {
172
+ if (value(matchValue) instanceof LDNode) {
173
+ matchResult = 0;
174
+ i = value(matchValue);
175
+ } else {
176
+ matchResult = 1;
177
+ }
178
+ } else {
179
+ matchResult = 1;
180
+ }
181
+ switch (matchResult) {
182
+ case 0:
183
+ return i;
184
+ default:
185
+ return void 0;
186
+ }
187
+ }
188
+ static setIdentifier(p, i, context) {
189
+ return p.SetProperty(LDPerson.identifier, i, unwrap(context));
190
+ }
191
+ static getJobTitlesAsDefinedTerm(p, graph, context) {
192
+ return p.GetPropertyNodes(LDPerson.jobTitle, (ldObject, context_1) => LDDefinedTerm.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
193
+ }
194
+ static setJobTitleAsDefinedTerm(p, j, context) {
195
+ return p.SetProperty(LDPerson.jobTitle, j, unwrap(context));
196
+ }
197
+ static tryGetAdditionalNameAsString(p, context) {
198
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.additionalName, unwrap(context));
199
+ let matchResult, n;
200
+ if (matchValue != null) {
201
+ if (typeof value(matchValue) === "string") {
202
+ matchResult = 0;
203
+ n = value(matchValue);
204
+ } else {
205
+ matchResult = 1;
206
+ }
207
+ } else {
208
+ matchResult = 1;
209
+ }
210
+ switch (matchResult) {
211
+ case 0:
212
+ return n;
213
+ default:
214
+ return void 0;
215
+ }
216
+ }
217
+ static setAdditionalNameAsString(p, n, context) {
218
+ return p.SetProperty(LDPerson.additionalName, n, unwrap(context));
219
+ }
220
+ static tryGetAddress(p, graph, context) {
221
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.address, unwrap(context));
222
+ let matchResult, r_1, a, s;
223
+ if (matchValue != null) {
224
+ if (value(matchValue) instanceof LDRef) {
225
+ if (value(matchValue), graph != null) {
226
+ matchResult = 0;
227
+ r_1 = value(matchValue);
228
+ } else {
229
+ matchResult = 3;
230
+ }
231
+ } else if (value(matchValue) instanceof LDNode) {
232
+ matchResult = 1;
233
+ a = value(matchValue);
234
+ } else if (typeof value(matchValue) === "string") {
235
+ matchResult = 2;
236
+ s = value(matchValue);
237
+ } else {
238
+ matchResult = 3;
239
+ }
240
+ } else {
241
+ matchResult = 3;
242
+ }
243
+ switch (matchResult) {
244
+ case 0:
245
+ return map((value) => value, value(graph).TryGetNode(r_1.Id));
246
+ case 1:
247
+ return some(a);
248
+ case 2:
249
+ return some(s);
250
+ default:
251
+ return void 0;
252
+ }
253
+ }
254
+ static tryGetAddressAsPostalAddress(p, graph, context) {
255
+ let n;
256
+ const matchValue = p.TryGetPropertyAsSingleNode(LDPerson.address, unwrap(graph), unwrap(context));
257
+ let matchResult, n_1;
258
+ if (matchValue != null) {
259
+ if (n = value(matchValue), LDPostalAddress.validate(n, unwrap(context))) {
260
+ matchResult = 0;
261
+ n_1 = value(matchValue);
262
+ } else {
263
+ matchResult = 1;
264
+ }
265
+ } else {
266
+ matchResult = 1;
267
+ }
268
+ switch (matchResult) {
269
+ case 0:
270
+ return n_1;
271
+ default:
272
+ return void 0;
273
+ }
274
+ }
275
+ static tryGetAddressAsString(p, context) {
276
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.address, unwrap(context));
277
+ let matchResult, a;
278
+ if (matchValue != null) {
279
+ if (typeof value(matchValue) === "string") {
280
+ matchResult = 0;
281
+ a = value(matchValue);
282
+ } else {
283
+ matchResult = 1;
284
+ }
285
+ } else {
286
+ matchResult = 1;
287
+ }
288
+ switch (matchResult) {
289
+ case 0:
290
+ return a;
291
+ default:
292
+ return void 0;
293
+ }
294
+ }
295
+ static setAddressAsPostalAddress(p, a, context) {
296
+ return p.SetProperty(LDPerson.address, a, unwrap(context));
297
+ }
298
+ static setAddressAsString(p, a, context) {
299
+ return p.SetProperty(LDPerson.address, a, unwrap(context));
300
+ }
301
+ static getDisambiguatingDescriptionsAsString(p, context) {
302
+ return ResizeArray_map((v) => v, p.GetPropertyValues(LDPerson.disambiguatingDescription, (value, context_1) => typeof value === "string", unwrap(context)));
303
+ }
304
+ static setDisambiguatingDescriptionsAsString(p, d, context) {
305
+ return p.SetProperty(LDPerson.disambiguatingDescription, d, unwrap(context));
306
+ }
307
+ static tryGetFaxNumberAsString(p, context) {
308
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.faxNumber, unwrap(context));
309
+ let matchResult, f;
310
+ if (matchValue != null) {
311
+ if (typeof value(matchValue) === "string") {
312
+ matchResult = 0;
313
+ f = value(matchValue);
314
+ } else {
315
+ matchResult = 1;
316
+ }
317
+ } else {
318
+ matchResult = 1;
319
+ }
320
+ switch (matchResult) {
321
+ case 0:
322
+ return f;
323
+ default:
324
+ return void 0;
325
+ }
326
+ }
327
+ static setFaxNumberAsString(p, f, context) {
328
+ return p.SetProperty(LDPerson.faxNumber, f, unwrap(context));
329
+ }
330
+ static tryGetTelephoneAsString(p, context) {
331
+ const matchValue = p.TryGetPropertyAsSingleton(LDPerson.telephone, unwrap(context));
332
+ let matchResult, t;
333
+ if (matchValue != null) {
334
+ if (typeof value(matchValue) === "string") {
335
+ matchResult = 0;
336
+ t = value(matchValue);
337
+ } else {
338
+ matchResult = 1;
339
+ }
340
+ } else {
341
+ matchResult = 1;
342
+ }
343
+ switch (matchResult) {
344
+ case 0:
345
+ return t;
346
+ default:
347
+ return void 0;
348
+ }
349
+ }
350
+ static setTelephoneAsString(p, t, context) {
351
+ return p.SetProperty(LDPerson.telephone, t, unwrap(context));
352
+ }
353
+ static genId(givenName, orcid, familyName) {
354
+ let matchValue;
355
+ return clean((matchValue = bind(tryGetOrcidURL, orcid), matchValue == null ? familyName == null ? `#Person_${givenName}` : `#Person_${givenName}_${value(familyName)}` : value(matchValue)));
356
+ }
357
+ static validate(p, context) {
358
+ return p.HasType(LDPerson.schemaType, unwrap(context)) && p.HasProperty(LDPerson.givenName, unwrap(context));
359
+ }
360
+ static create(givenName, orcid, id, affiliation, email, familyName, identifier, jobTitles, additionalName, address, disambiguatingDescriptions, faxNumber, telephone, context) {
361
+ const person = new LDNode(id == null ? LDPerson.genId(givenName, unwrap(orcid), unwrap(familyName)) : value(id), [LDPerson.schemaType], void 0, unwrap(context));
362
+ person.SetProperty(LDPerson.givenName, givenName, unwrap(context));
363
+ person.SetOptionalProperty(LDPerson.affiliation, affiliation, unwrap(context));
364
+ person.SetOptionalProperty(LDPerson.email, email, unwrap(context));
365
+ person.SetOptionalProperty(LDPerson.familyName, familyName, unwrap(context));
366
+ person.SetOptionalProperty(LDPerson.identifier, identifier, unwrap(context));
367
+ person.SetOptionalProperty(LDPerson.jobTitle, jobTitles, unwrap(context));
368
+ person.SetOptionalProperty(LDPerson.additionalName, additionalName, unwrap(context));
369
+ person.SetOptionalProperty(LDPerson.address, address, unwrap(context));
370
+ person.SetOptionalProperty(LDPerson.disambiguatingDescription, disambiguatingDescriptions, unwrap(context));
371
+ person.SetOptionalProperty(LDPerson.faxNumber, faxNumber, unwrap(context));
372
+ person.SetOptionalProperty(LDPerson.telephone, telephone, unwrap(context));
373
+ return person;
374
+ }
375
+ }
376
+
377
+ export { LDPerson };