@nfdi4plants/arctrl 1.1.0 → 2.0.0-alpha.1

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 (377) hide show
  1. package/ARC.js +53 -35
  2. package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
  3. package/Contract/ArcAssay.js +102 -0
  4. package/Contract/ArcInvestigation.js +78 -0
  5. package/Contract/ArcStudy.js +102 -0
  6. package/Contract/Contract.js +3 -3
  7. package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
  8. package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
  9. package/Core/Comment.js +97 -0
  10. package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
  11. package/Core/Conversion.js +1056 -0
  12. package/Core/Helper/Collections.js +318 -0
  13. package/Core/Helper/HashCodes.js +39 -0
  14. package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
  15. package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
  16. package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
  17. package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
  18. package/Core/OntologyAnnotation.js +186 -0
  19. package/Core/OntologySourceReference.js +92 -0
  20. package/Core/Person.js +194 -0
  21. package/Core/Process/ColumnIndex.js +248 -0
  22. package/Core/Process/Component.js +188 -0
  23. package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
  24. package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
  25. package/Core/Process/Factor.js +109 -0
  26. package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
  27. package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
  28. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
  29. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
  30. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
  31. package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
  32. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
  33. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
  34. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
  35. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
  36. package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
  37. package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
  38. package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
  39. package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
  40. package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +24 -31
  41. package/Core/Publication.js +116 -0
  42. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +49 -155
  43. package/Core/Table/ArcTableAux.js +532 -0
  44. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
  45. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
  46. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +9 -8
  47. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
  48. package/{Templates → Core}/Template.js +16 -17
  49. package/Core/Templates.js +84 -0
  50. package/FileSystem/Commit.js +2 -2
  51. package/FileSystem/FileSystem.js +4 -4
  52. package/FileSystem/FileSystemTree.js +46 -8
  53. package/FileSystem/Path.js +10 -2
  54. package/Json/ARC.js +25 -0
  55. package/Json/Assay.js +202 -0
  56. package/Json/Comment.js +130 -0
  57. package/Json/ConverterOptions.js +18 -0
  58. package/Json/Decode.js +128 -0
  59. package/Json/Encode.js +45 -0
  60. package/Json/Investigation.js +220 -0
  61. package/Json/OntologyAnnotation.js +169 -0
  62. package/Json/OntologySourceReference.js +122 -0
  63. package/Json/Person.js +250 -0
  64. package/Json/Process/AssayMaterials.js +22 -0
  65. package/Json/Process/Component.js +79 -0
  66. package/Json/Process/Data.js +102 -0
  67. package/Json/Process/DataFile.js +81 -0
  68. package/Json/Process/Factor.js +48 -0
  69. package/Json/Process/FactorValue.js +53 -0
  70. package/Json/Process/Material.js +107 -0
  71. package/Json/Process/MaterialAttribute.js +45 -0
  72. package/Json/Process/MaterialAttributeValue.js +70 -0
  73. package/Json/Process/MaterialType.js +60 -0
  74. package/Json/Process/Process.js +107 -0
  75. package/Json/Process/ProcessInput.js +59 -0
  76. package/Json/Process/ProcessOutput.js +71 -0
  77. package/Json/Process/ProcessParameterValue.js +69 -0
  78. package/Json/Process/ProcessSequence.js +53 -0
  79. package/Json/Process/PropertyValue.js +82 -0
  80. package/Json/Process/Protocol.js +147 -0
  81. package/Json/Process/ProtocolParameter.js +45 -0
  82. package/Json/Process/Sample.js +134 -0
  83. package/Json/Process/Source.js +101 -0
  84. package/Json/Process/StudyMaterials.js +24 -0
  85. package/Json/Process/Value.js +42 -0
  86. package/Json/Publication.js +142 -0
  87. package/Json/StringTable.js +44 -0
  88. package/Json/Study.js +306 -0
  89. package/Json/Table/ArcTable.js +223 -0
  90. package/Json/Table/CellTable.js +40 -0
  91. package/Json/Table/CompositeCell.js +65 -0
  92. package/Json/Table/CompositeHeader.js +57 -0
  93. package/Json/Table/Compression.js +38 -0
  94. package/Json/Table/IOType.js +37 -0
  95. package/Json/Table/OATable.js +40 -0
  96. package/Json/Table/Templates.js +107 -0
  97. package/Json/context/rocrate/isa_assay_context.js +32 -0
  98. package/Json/context/rocrate/isa_comment_context.js +23 -0
  99. package/Json/context/rocrate/isa_component_context.js +24 -0
  100. package/Json/context/rocrate/isa_data_context.js +25 -0
  101. package/Json/context/rocrate/isa_factor_context.js +25 -0
  102. package/Json/context/rocrate/isa_factor_value_context.js +23 -0
  103. package/Json/context/rocrate/isa_investigation_context.js +33 -0
  104. package/Json/context/rocrate/isa_material_attribute_context.js +23 -0
  105. package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
  106. package/Json/context/rocrate/isa_material_context.js +26 -0
  107. package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
  108. package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
  109. package/Json/context/rocrate/isa_organization_context.js +22 -0
  110. package/Json/context/rocrate/isa_person_context.js +33 -0
  111. package/Json/context/rocrate/isa_process_context.js +29 -0
  112. package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
  113. package/Json/context/rocrate/isa_protocol_context.js +28 -0
  114. package/Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
  115. package/Json/context/rocrate/isa_publication_context.js +25 -0
  116. package/Json/context/rocrate/isa_sample_context.js +24 -0
  117. package/Json/context/rocrate/isa_source_context.js +25 -0
  118. package/Json/context/rocrate/isa_study_context.js +40 -0
  119. package/Json/context/rocrate/property_value_context.js +4 -0
  120. package/Json/context/rocrate/rocrate_context.js +23 -0
  121. package/Json.js +193 -0
  122. package/README.md +50 -12
  123. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
  124. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
  125. package/Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
  126. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
  127. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
  128. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
  129. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
  130. package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +8 -8
  131. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
  132. package/Spreadsheet/Metadata/Comment.js +71 -0
  133. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
  134. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
  135. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
  136. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
  137. package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
  138. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
  139. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
  140. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
  141. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +34 -28
  142. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
  143. package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
  144. package/Template.Web.js +27 -0
  145. package/WebRequest/WebRequest.Node.js +15 -0
  146. package/WebRequest/WebRequest.js +10 -29
  147. package/Xlsx.js +85 -0
  148. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
  149. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
  150. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  151. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  152. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
  153. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
  154. package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
  155. package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
  156. package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
  157. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
  158. package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
  159. package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
  160. package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
  161. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
  162. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
  163. package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
  164. package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
  165. package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
  166. package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
  167. package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
  168. package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
  169. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
  170. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
  171. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
  172. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
  173. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
  174. package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
  175. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
  176. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
  177. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
  178. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
  179. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
  180. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
  181. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
  182. package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
  183. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
  184. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
  185. package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  186. package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
  187. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
  188. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
  189. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
  190. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
  191. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
  192. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  193. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
  194. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  195. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
  196. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.d.ts +4 -1
  197. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.js +124 -86
  198. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
  199. package/fable_modules/fable-library-js.4.16.0/CHANGELOG.md +47 -0
  200. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -17
  201. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.js +0 -43
  202. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
  203. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
  204. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.js +340 -42
  205. package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.d.ts +12 -0
  206. package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.js +27 -0
  207. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.js +3 -3
  208. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.js +3 -3
  209. package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
  210. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
  211. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.js +2 -1
  212. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.js +2 -1
  213. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.js +7 -7
  214. package/fable_modules/fable-library-js.4.16.0/Result.d.ts +37 -0
  215. package/fable_modules/fable-library-js.4.16.0/Result.js +165 -0
  216. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.js +2 -2
  217. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.d.ts +1 -0
  218. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.js +8 -5
  219. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +15 -7
  220. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +46 -36
  221. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.d.ts +9 -1
  222. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.js +60 -8
  223. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
  224. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.js +2 -13
  225. package/fable_modules/fable-library-js.4.16.0/big.d.ts +338 -0
  226. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/package.json +4 -3
  227. package/fable_modules/project_cracked.json +1 -1
  228. package/index.js +14 -12
  229. package/package.json +1 -1
  230. package/Contracts/Contracts.ArcTypes.js +0 -268
  231. package/FileSystemTree.js +0 -51
  232. package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
  233. package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
  234. package/ISA/ISA/Builder/Types.js +0 -243
  235. package/ISA/ISA/Fable.js +0 -123
  236. package/ISA/ISA/Helper.js +0 -503
  237. package/ISA/ISA/JsonTypes/Assay.js +0 -620
  238. package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
  239. package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
  240. package/ISA/ISA/JsonTypes/Comment.js +0 -58
  241. package/ISA/ISA/JsonTypes/Component.js +0 -165
  242. package/ISA/ISA/JsonTypes/Factor.js +0 -128
  243. package/ISA/ISA/JsonTypes/Investigation.js +0 -204
  244. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
  245. package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
  246. package/ISA/ISA/JsonTypes/Person.js +0 -137
  247. package/ISA/ISA/JsonTypes/Publication.js +0 -105
  248. package/ISA/ISA/JsonTypes/Study.js +0 -942
  249. package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
  250. package/ISA/ISA/UIHelper.js +0 -19
  251. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -282
  252. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -93
  253. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -170
  254. package/ISA/ISA.Json/ArcTypes/ArcTable.js +0 -178
  255. package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -46
  256. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -77
  257. package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +0 -82
  258. package/ISA/ISA.Json/ArcTypes/IOType.js +0 -35
  259. package/ISA/ISA.Json/ArcTypes/OATable.js +0 -48
  260. package/ISA/ISA.Json/Assay.js +0 -105
  261. package/ISA/ISA.Json/Comment.js +0 -84
  262. package/ISA/ISA.Json/ConverterOptions.js +0 -33
  263. package/ISA/ISA.Json/Data.js +0 -271
  264. package/ISA/ISA.Json/Decode.js +0 -46
  265. package/ISA/ISA.Json/Factor.js +0 -194
  266. package/ISA/ISA.Json/GEncode.js +0 -15
  267. package/ISA/ISA.Json/Investigation.js +0 -114
  268. package/ISA/ISA.Json/Material.js +0 -233
  269. package/ISA/ISA.Json/Ontology.js +0 -223
  270. package/ISA/ISA.Json/Person.js +0 -204
  271. package/ISA/ISA.Json/Process.js +0 -291
  272. package/ISA/ISA.Json/Protocol.js +0 -242
  273. package/ISA/ISA.Json/Publication.js +0 -92
  274. package/ISA/ISA.Json/StringTable.js +0 -43
  275. package/ISA/ISA.Json/Study.js +0 -212
  276. package/ISA/ISA.Json/Validation/Fable.js +0 -69
  277. package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
  278. package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
  279. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +0 -59
  280. package/ISA/ISA.Spreadsheet/Metadata/Comment.js +0 -60
  281. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
  282. package/Path.js +0 -10
  283. package/Templates/Template.Json.js +0 -83
  284. package/Templates/Template.Web.js +0 -27
  285. package/Templates/Templates.js +0 -82
  286. package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
  287. package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
  288. package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
  289. package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
  290. package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
  291. package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
  292. package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
  293. package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
  294. package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
  295. package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
  296. package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
  297. package/fable_modules/fable-library.4.5.0/MapUtil.d.ts +0 -10
  298. /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
  299. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
  300. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.js +0 -0
  301. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
  302. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
  303. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
  304. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
  305. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
  306. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
  307. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
  308. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
  309. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.js +0 -0
  310. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
  311. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
  312. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
  313. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
  314. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
  315. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
  316. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
  317. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
  318. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.js +0 -0
  319. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
  320. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
  321. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
  322. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.js +0 -0
  323. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
  324. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
  325. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
  326. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
  327. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
  328. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.js +0 -0
  329. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
  330. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.js +0 -0
  331. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
  332. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.js +0 -0
  333. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
  334. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
  335. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.js +0 -0
  336. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
  337. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
  338. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
  339. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
  340. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
  341. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
  342. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.js +0 -0
  343. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
  344. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
  345. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
  346. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.js +0 -0
  347. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
  348. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.js +0 -0
  349. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/README.md +0 -0
  350. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
  351. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
  352. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.js +0 -0
  353. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
  354. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
  355. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
  356. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
  357. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
  358. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.js +0 -0
  359. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
  360. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
  361. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
  362. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
  363. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
  364. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
  365. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
  366. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
  367. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
  368. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
  369. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.js +0 -0
  370. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
  371. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.js +0 -0
  372. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
  373. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
  374. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
  375. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.js +0 -0
  376. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
  377. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
@@ -1,242 +0,0 @@
1
- import { value as value_19 } from "../../fable_modules/fable-library.4.5.0/Option.js";
2
- import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
3
- import { toString, nil, object as object_18 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
4
- import { choose } from "../../fable_modules/fable-library.4.5.0/List.js";
5
- import { uncurry2, equals } from "../../fable_modules/fable-library.4.5.0/Util.js";
6
- import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
7
- import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
8
- import { tryInclude } from "./GEncode.js";
9
- import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
10
- import { list as list_1, string, object as object_19 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
11
- import { fromJsonString, uri } from "./Decode.js";
12
- import { ProtocolParameter } from "../ISA/JsonTypes/ProtocolParameter.js";
13
- import { replace } from "../../fable_modules/fable-library.4.5.0/String.js";
14
- import { Result_Map } from "../../fable_modules/fable-library.4.5.0/Choice.js";
15
- import { Component, Component_decomposeName_Z721C83C5 } from "../ISA/JsonTypes/Component.js";
16
- import { decoder as decoder_3, encoder } from "./Comment.js";
17
- import { Protocol } from "../ISA/JsonTypes/Protocol.js";
18
-
19
- export function ProtocolParameter_genID(pp) {
20
- const matchValue = pp.ID;
21
- if (matchValue == null) {
22
- const matchValue_1 = pp.ParameterName;
23
- let matchResult, n_1;
24
- if (matchValue_1 != null) {
25
- if (!(matchValue_1.ID == null)) {
26
- matchResult = 0;
27
- n_1 = matchValue_1;
28
- }
29
- else {
30
- matchResult = 1;
31
- }
32
- }
33
- else {
34
- matchResult = 1;
35
- }
36
- switch (matchResult) {
37
- case 0:
38
- return "#Param_" + value_19(n_1.ID);
39
- default:
40
- return "#EmptyProtocolParameter";
41
- }
42
- }
43
- else {
44
- return URIModule_toString(matchValue);
45
- }
46
- }
47
-
48
- export function ProtocolParameter_encoder(options, oa) {
49
- return object_18(choose((tupledArg) => {
50
- const v = tupledArg[1];
51
- if (equals(v, nil)) {
52
- return void 0;
53
- }
54
- else {
55
- return [tupledArg[0], v];
56
- }
57
- }, toList(delay(() => {
58
- let value, s;
59
- return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = ProtocolParameter_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
60
- let s_1;
61
- const value_3 = value_2;
62
- return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
63
- }, oa["ID"])), delay(() => {
64
- let value_5, s_2;
65
- return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "ProtocolParameter", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => singleton(tryInclude("parameterName", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa["ParameterName"]))));
66
- }));
67
- }))));
68
- }
69
-
70
- export function ProtocolParameter_decoder(options) {
71
- return (path) => ((v) => object_19((get$) => {
72
- let objectArg, arg_3, objectArg_1;
73
- return new ProtocolParameter((objectArg = get$.Optional, objectArg.Field("@id", uri)), (arg_3 = OntologyAnnotation_decoder(options), (objectArg_1 = get$.Optional, objectArg_1.Field("parameterName", uncurry2(arg_3)))));
74
- }, path, v));
75
- }
76
-
77
- export function ProtocolParameter_fromJsonString(s) {
78
- return fromJsonString(uncurry2(ProtocolParameter_decoder(ConverterOptions_$ctor())), s);
79
- }
80
-
81
- export function ProtocolParameter_toString(p) {
82
- return toString(2, ProtocolParameter_encoder(ConverterOptions_$ctor(), p));
83
- }
84
-
85
- /**
86
- * exports in json-ld format
87
- */
88
- export function ProtocolParameter_toStringLD(p) {
89
- let returnVal;
90
- return toString(2, ProtocolParameter_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), p));
91
- }
92
-
93
- export function Component_genID(c) {
94
- const matchValue = c.ComponentName;
95
- if (matchValue == null) {
96
- return "#EmptyComponent";
97
- }
98
- else {
99
- return "#Component_" + replace(matchValue, " ", "_");
100
- }
101
- }
102
-
103
- export function Component_encoder(options, oa) {
104
- return object_18(choose((tupledArg) => {
105
- const v = tupledArg[1];
106
- if (equals(v, nil)) {
107
- return void 0;
108
- }
109
- else {
110
- return [tupledArg[0], v];
111
- }
112
- }, toList(delay(() => {
113
- let value, s;
114
- return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = Component_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : empty(), delay(() => {
115
- let value_2, s_1;
116
- return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_2 = "Component", (typeof value_2 === "string") ? ((s_1 = value_2, s_1)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("componentName", (value_4) => {
117
- let s_2;
118
- const value_5 = value_4;
119
- return (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil;
120
- }, oa["ComponentName"])), delay(() => singleton(tryInclude("componentType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa["ComponentType"]))))));
121
- }));
122
- }))));
123
- }
124
-
125
- export function Component_decoder(options, s, json) {
126
- return Result_Map((c) => {
127
- let patternInput;
128
- const matchValue = c.ComponentName;
129
- if (matchValue == null) {
130
- patternInput = [void 0, void 0];
131
- }
132
- else {
133
- const tupledArg = Component_decomposeName_Z721C83C5(matchValue);
134
- patternInput = [tupledArg[0], tupledArg[1]];
135
- }
136
- return new Component(c.ComponentName, patternInput[0], patternInput[1], c.ComponentType);
137
- }, object_19((get$) => {
138
- let objectArg, arg_3, objectArg_1;
139
- return new Component((objectArg = get$.Optional, objectArg.Field("componentName", uri)), void 0, void 0, (arg_3 = OntologyAnnotation_decoder(options), (objectArg_1 = get$.Optional, objectArg_1.Field("componentType", uncurry2(arg_3)))));
140
- }, s, json));
141
- }
142
-
143
- export function Component_fromJsonString(s) {
144
- let options;
145
- return fromJsonString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Component_decoder(options, s_1, json)))), s);
146
- }
147
-
148
- export function Component_toJsonString(p) {
149
- return toString(2, Component_encoder(ConverterOptions_$ctor(), p));
150
- }
151
-
152
- /**
153
- * exports in json-ld format
154
- */
155
- export function Component_toStringLD(p) {
156
- let returnVal;
157
- return toString(2, Component_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), p));
158
- }
159
-
160
- export function Protocol_genID(p) {
161
- const matchValue = p.ID;
162
- if (matchValue == null) {
163
- const matchValue_1 = p.Uri;
164
- if (matchValue_1 == null) {
165
- const matchValue_2 = p.Name;
166
- if (matchValue_2 == null) {
167
- return "#EmptyProtocol";
168
- }
169
- else {
170
- return "#Protocol_" + replace(matchValue_2, " ", "_");
171
- }
172
- }
173
- else {
174
- return matchValue_1;
175
- }
176
- }
177
- else {
178
- return URIModule_toString(matchValue);
179
- }
180
- }
181
-
182
- export function Protocol_encoder(options, oa) {
183
- return object_18(choose((tupledArg) => {
184
- const v = tupledArg[1];
185
- if (equals(v, nil)) {
186
- return void 0;
187
- }
188
- else {
189
- return [tupledArg[0], v];
190
- }
191
- }, toList(delay(() => {
192
- let value, s;
193
- return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = Protocol_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
194
- let s_1;
195
- const value_3 = value_2;
196
- return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
197
- }, oa["ID"])), delay(() => {
198
- let value_5, s_2;
199
- return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Protocol", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("name", (value_7) => {
200
- let s_3;
201
- const value_8 = value_7;
202
- return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
203
- }, oa["Name"])), delay(() => append(singleton(tryInclude("protocolType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa["ProtocolType"])), delay(() => append(singleton(tryInclude("description", (value_10) => {
204
- let s_4;
205
- const value_11 = value_10;
206
- return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
207
- }, oa["Description"])), delay(() => append(singleton(tryInclude("uri", (value_13) => {
208
- let s_5;
209
- const value_14 = value_13;
210
- return (typeof value_14 === "string") ? ((s_5 = value_14, s_5)) : nil;
211
- }, oa["Uri"])), delay(() => append(singleton(tryInclude("version", (value_16) => {
212
- let s_6;
213
- const value_17 = value_16;
214
- return (typeof value_17 === "string") ? ((s_6 = value_17, s_6)) : nil;
215
- }, oa["Version"])), delay(() => append(singleton(tryInclude("parameters", (oa_2) => ProtocolParameter_encoder(options, oa_2), oa["Parameters"])), delay(() => append(singleton(tryInclude("components", (oa_3) => Component_encoder(options, oa_3), oa["Components"])), delay(() => singleton(tryInclude("comments", (comment) => encoder(options, comment), oa["Comments"]))))))))))))))))));
216
- }));
217
- }))));
218
- }
219
-
220
- export function Protocol_decoder(options) {
221
- return (path_6) => ((v) => object_19((get$) => {
222
- let objectArg, objectArg_1, arg_5, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, decoder, objectArg_6, objectArg_7, arg_17, decoder_2, objectArg_8;
223
- return new Protocol((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = OntologyAnnotation_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("protocolType", uncurry2(arg_5)))), (objectArg_3 = get$.Optional, objectArg_3.Field("description", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("uri", uri)), (objectArg_5 = get$.Optional, objectArg_5.Field("version", string)), (arg_13 = ((decoder = ProtocolParameter_decoder(options), (path_3) => ((value_3) => list_1(uncurry2(decoder), path_3, value_3)))), (objectArg_6 = get$.Optional, objectArg_6.Field("parameters", uncurry2(arg_13)))), (objectArg_7 = get$.Optional, objectArg_7.Field("components", (path_4, value_4) => list_1((s_2, json_2) => Component_decoder(options, s_2, json_2), path_4, value_4))), (arg_17 = ((decoder_2 = decoder_3(options), (path_5) => ((value_5) => list_1(uncurry2(decoder_2), path_5, value_5)))), (objectArg_8 = get$.Optional, objectArg_8.Field("comments", uncurry2(arg_17)))));
224
- }, path_6, v));
225
- }
226
-
227
- export function Protocol_fromJsonString(s) {
228
- return fromJsonString(uncurry2(Protocol_decoder(ConverterOptions_$ctor())), s);
229
- }
230
-
231
- export function Protocol_toJsonString(p) {
232
- return toString(2, Protocol_encoder(ConverterOptions_$ctor(), p));
233
- }
234
-
235
- /**
236
- * exports in json-ld format
237
- */
238
- export function Protocol_toStringLD(p) {
239
- let returnVal;
240
- return toString(2, Protocol_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), p));
241
- }
242
-
@@ -1,92 +0,0 @@
1
- import { replace } from "../../fable_modules/fable-library.4.5.0/String.js";
2
- import { toString, nil, object as object_12 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
3
- import { choose } from "../../fable_modules/fable-library.4.5.0/List.js";
4
- import { uncurry2, equals } from "../../fable_modules/fable-library.4.5.0/Util.js";
5
- import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
6
- import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
7
- import { tryInclude } from "./GEncode.js";
8
- import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
9
- import { decoder as decoder_2, encoder as encoder_1 } from "./Comment.js";
10
- import { array, string, object as object_13 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
11
- import { fromJsonString as fromJsonString_1, uri } from "./Decode.js";
12
- import { Publication } from "../ISA/JsonTypes/Publication.js";
13
-
14
- export function genID(p) {
15
- const matchValue = p.DOI;
16
- if (matchValue == null) {
17
- const matchValue_1 = p.PubMedID;
18
- if (matchValue_1 == null) {
19
- const matchValue_2 = p.Title;
20
- if (matchValue_2 == null) {
21
- return "#EmptyPublication";
22
- }
23
- else {
24
- return "#Pub_" + replace(matchValue_2, " ", "_");
25
- }
26
- }
27
- else {
28
- return matchValue_1;
29
- }
30
- }
31
- else {
32
- return matchValue;
33
- }
34
- }
35
-
36
- export function encoder(options, oa) {
37
- return object_12(choose((tupledArg) => {
38
- const v = tupledArg[1];
39
- if (equals(v, nil)) {
40
- return void 0;
41
- }
42
- else {
43
- return [tupledArg[0], v];
44
- }
45
- }, toList(delay(() => {
46
- let value, s;
47
- return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : empty(), delay(() => {
48
- let value_2, s_1;
49
- return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_2 = "Publication", (typeof value_2 === "string") ? ((s_1 = value_2, s_1)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("pubMedID", (value_4) => {
50
- let s_2;
51
- const value_5 = value_4;
52
- return (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil;
53
- }, oa["PubMedID"])), delay(() => append(singleton(tryInclude("doi", (value_7) => {
54
- let s_3;
55
- const value_8 = value_7;
56
- return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
57
- }, oa["DOI"])), delay(() => append(singleton(tryInclude("authorList", (value_10) => {
58
- let s_4;
59
- const value_11 = value_10;
60
- return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
61
- }, oa["Authors"])), delay(() => append(singleton(tryInclude("title", (value_13) => {
62
- let s_5;
63
- const value_14 = value_13;
64
- return (typeof value_14 === "string") ? ((s_5 = value_14, s_5)) : nil;
65
- }, oa["Title"])), delay(() => append(singleton(tryInclude("status", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa["Status"])), delay(() => singleton(tryInclude("comments", (comment) => encoder_1(options, comment), oa["Comments"]))))))))))))));
66
- }));
67
- }))));
68
- }
69
-
70
- export function decoder(options) {
71
- return (path_4) => ((v) => object_13((get$) => {
72
- let objectArg, objectArg_1, objectArg_2, objectArg_3, arg_9, objectArg_4, arg_11, decoder_1, objectArg_5;
73
- return new Publication((objectArg = get$.Optional, objectArg.Field("pubMedID", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("doi", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("authorList", string)), (objectArg_3 = get$.Optional, objectArg_3.Field("title", string)), (arg_9 = OntologyAnnotation_decoder(options), (objectArg_4 = get$.Optional, objectArg_4.Field("status", uncurry2(arg_9)))), (arg_11 = ((decoder_1 = decoder_2(options), (path_3) => ((value_3) => array(uncurry2(decoder_1), path_3, value_3)))), (objectArg_5 = get$.Optional, objectArg_5.Field("comments", uncurry2(arg_11)))));
74
- }, path_4, v));
75
- }
76
-
77
- export function fromJsonString(s) {
78
- return fromJsonString_1(uncurry2(decoder(ConverterOptions_$ctor())), s);
79
- }
80
-
81
- export function toJsonString(p) {
82
- return toString(2, encoder(ConverterOptions_$ctor(), p));
83
- }
84
-
85
- /**
86
- * exports in json-ld format
87
- */
88
- export function toStringLD(p) {
89
- let returnVal;
90
- return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), p));
91
- }
92
-
@@ -1,43 +0,0 @@
1
- import { sortBy, map, toArray } from "../../fable_modules/fable-library.4.5.0/Seq.js";
2
- import { comparePrimitives } from "../../fable_modules/fable-library.4.5.0/Util.js";
3
- import { map as map_1 } from "../../fable_modules/fable-library.4.5.0/Array.js";
4
- import { int, string, array as array_1 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
5
- import { Dict_tryFind } from "../ISA/Helper.js";
6
- import { addToDict } from "../../fable_modules/fable-library.4.5.0/MapUtil.js";
7
- import { FSharpResult$2 } from "../../fable_modules/fable-library.4.5.0/Choice.js";
8
-
9
- export function StringTable_arrayFromMap(otm) {
10
- return toArray(map((kv_1) => kv_1[0], sortBy((kv) => kv[1], otm, {
11
- Compare: comparePrimitives,
12
- })));
13
- }
14
-
15
- export function StringTable_encoder(ot) {
16
- return map_1((value) => value, ot);
17
- }
18
-
19
- export const StringTable_decoder = (path_1) => ((value_1) => array_1(string, path_1, value_1));
20
-
21
- export function StringTable_encodeString(otm, s) {
22
- const s_1 = s;
23
- const matchValue = Dict_tryFind(s_1, otm);
24
- if (matchValue == null) {
25
- const i_1 = otm.size | 0;
26
- addToDict(otm, s_1, i_1);
27
- return i_1;
28
- }
29
- else {
30
- return matchValue;
31
- }
32
- }
33
-
34
- export function StringTable_decodeString(ot, s, o) {
35
- const matchValue = int(s)(o);
36
- if (matchValue.tag === 1) {
37
- return new FSharpResult$2(1, [matchValue.fields[0]]);
38
- }
39
- else {
40
- return new FSharpResult$2(0, [ot[matchValue.fields[0]]]);
41
- }
42
- }
43
-
@@ -1,212 +0,0 @@
1
- import { toString, nil, object as object_36 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
2
- import { ofArray, choose } from "../../fable_modules/fable-library.4.5.0/List.js";
3
- import { uncurry2, equals } from "../../fable_modules/fable-library.4.5.0/Util.js";
4
- import { tryInclude } from "./GEncode.js";
5
- import { Sample_decoder, Source_decoder, Sample_encoder, Source_encoder } from "./Data.js";
6
- import { MaterialAttribute_decoder, MaterialAttribute_encoder, Material_decoder, Material_encoder } from "./Material.js";
7
- import { string, list as list_1, object as object_37 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
8
- import { StudyMaterials } from "../ISA/JsonTypes/StudyMaterials.js";
9
- import { replace } from "../../fable_modules/fable-library.4.5.0/String.js";
10
- import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
11
- import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
12
- import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
13
- import { decoder as decoder_10, encoder } from "./Publication.js";
14
- import { decoder as decoder_11, encoder as encoder_1 } from "./Person.js";
15
- import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
16
- import { Protocol_decoder, Protocol_encoder } from "./Protocol.js";
17
- import { Process_decoder, Process_encoder } from "./Process.js";
18
- import { Assay_decoder, Assay_encoder } from "./Assay.js";
19
- import { Factor_decoder, Factor_encoder } from "./Factor.js";
20
- import { decoder as decoder_12, encoder as encoder_2 } from "./Comment.js";
21
- import { fromJsonString, uri } from "./Decode.js";
22
- import { Study } from "../ISA/JsonTypes/Study.js";
23
-
24
- export function StudyMaterials_encoder(options, oa) {
25
- return object_36(choose((tupledArg) => {
26
- const v = tupledArg[1];
27
- if (equals(v, nil)) {
28
- return void 0;
29
- }
30
- else {
31
- return [tupledArg[0], v];
32
- }
33
- }, ofArray([tryInclude("sources", (oa_1) => Source_encoder(options, oa_1), oa["Sources"]), tryInclude("samples", (oa_2) => Sample_encoder(options, oa_2), oa["Samples"]), tryInclude("otherMaterials", (oa_3) => Material_encoder(options, oa_3), oa["OtherMaterials"])])));
34
- }
35
-
36
- export function StudyMaterials_decoder(options) {
37
- return (path_3) => ((v) => object_37((get$) => {
38
- let objectArg, objectArg_1, objectArg_2;
39
- return new StudyMaterials((objectArg = get$.Optional, objectArg.Field("sources", (path, value) => list_1((s, json) => Source_decoder(options, s, json), path, value))), (objectArg_1 = get$.Optional, objectArg_1.Field("samples", (path_1, value_1) => list_1((s_1, json_1) => Sample_decoder(options, s_1, json_1), path_1, value_1))), (objectArg_2 = get$.Optional, objectArg_2.Field("otherMaterials", (path_2, value_2) => list_1((s_2, json_2) => Material_decoder(options, s_2, json_2), path_2, value_2))));
40
- }, path_3, v));
41
- }
42
-
43
- export function Study_genID(s) {
44
- const matchValue = s.ID;
45
- if (matchValue == null) {
46
- const matchValue_1 = s.FileName;
47
- if (matchValue_1 == null) {
48
- const matchValue_2 = s.Identifier;
49
- if (matchValue_2 == null) {
50
- const matchValue_3 = s.Title;
51
- if (matchValue_3 == null) {
52
- return "#EmptyStudy";
53
- }
54
- else {
55
- return "#Study_" + replace(matchValue_3, " ", "_");
56
- }
57
- }
58
- else {
59
- return "#Study_" + replace(matchValue_2, " ", "_");
60
- }
61
- }
62
- else {
63
- return "#Study" + replace(matchValue_1, " ", "_");
64
- }
65
- }
66
- else {
67
- return URIModule_toString(matchValue);
68
- }
69
- }
70
-
71
- export function Study_encoder(options, oa) {
72
- return object_36(choose((tupledArg) => {
73
- const v = tupledArg[1];
74
- if (equals(v, nil)) {
75
- return void 0;
76
- }
77
- else {
78
- return [tupledArg[0], v];
79
- }
80
- }, toList(delay(() => {
81
- let value, s_1;
82
- return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = Study_genID(oa), (typeof value === "string") ? ((s_1 = value, s_1)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
83
- let s_2;
84
- const value_3 = value_2;
85
- return (typeof value_3 === "string") ? ((s_2 = value_3, s_2)) : nil;
86
- }, oa["ID"])), delay(() => {
87
- let value_5, s_3;
88
- return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Study", (typeof value_5 === "string") ? ((s_3 = value_5, s_3)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("filename", (value_7) => {
89
- let s_4;
90
- const value_8 = value_7;
91
- return (typeof value_8 === "string") ? ((s_4 = value_8, s_4)) : nil;
92
- }, oa["FileName"])), delay(() => append(singleton(tryInclude("identifier", (value_10) => {
93
- let s_5;
94
- const value_11 = value_10;
95
- return (typeof value_11 === "string") ? ((s_5 = value_11, s_5)) : nil;
96
- }, oa["Identifier"])), delay(() => append(singleton(tryInclude("title", (value_13) => {
97
- let s_6;
98
- const value_14 = value_13;
99
- return (typeof value_14 === "string") ? ((s_6 = value_14, s_6)) : nil;
100
- }, oa["Title"])), delay(() => append(singleton(tryInclude("description", (value_16) => {
101
- let s_7;
102
- const value_17 = value_16;
103
- return (typeof value_17 === "string") ? ((s_7 = value_17, s_7)) : nil;
104
- }, oa["Description"])), delay(() => append(singleton(tryInclude("submissionDate", (value_19) => {
105
- let s_8;
106
- const value_20 = value_19;
107
- return (typeof value_20 === "string") ? ((s_8 = value_20, s_8)) : nil;
108
- }, oa["SubmissionDate"])), delay(() => append(singleton(tryInclude("publicReleaseDate", (value_22) => {
109
- let s_9;
110
- const value_23 = value_22;
111
- return (typeof value_23 === "string") ? ((s_9 = value_23, s_9)) : nil;
112
- }, oa["PublicReleaseDate"])), delay(() => append(singleton(tryInclude("publications", (oa_1) => encoder(options, oa_1), oa["Publications"])), delay(() => append(singleton(tryInclude("people", (oa_2) => encoder_1(options, oa_2), oa["Contacts"])), delay(() => append(singleton(tryInclude("studyDesignDescriptors", (oa_3) => OntologyAnnotation_encoder(options, oa_3), oa["StudyDesignDescriptors"])), delay(() => append(singleton(tryInclude("protocols", (oa_4) => Protocol_encoder(options, oa_4), oa["Protocols"])), delay(() => append(singleton(tryInclude("materials", (oa_5) => StudyMaterials_encoder(options, oa_5), oa["Materials"])), delay(() => append(singleton(tryInclude("processSequence", (oa_6) => Process_encoder(options, oa_6), oa["ProcessSequence"])), delay(() => append(singleton(tryInclude("assays", (oa_7) => Assay_encoder(options, oa_7), oa["Assays"])), delay(() => append(singleton(tryInclude("factors", (oa_8) => Factor_encoder(options, oa_8), oa["Factors"])), delay(() => append(singleton(tryInclude("characteristicCategories", (oa_9) => MaterialAttribute_encoder(options, oa_9), oa["CharacteristicCategories"])), delay(() => append(singleton(tryInclude("unitCategories", (oa_10) => OntologyAnnotation_encoder(options, oa_10), oa["UnitCategories"])), delay(() => singleton(tryInclude("comments", (comment) => encoder_2(options, comment), oa["Comments"]))))))))))))))))))))))))))))))))))));
113
- }));
114
- }))));
115
- }
116
-
117
- export function Study_decoder(options) {
118
- return (path_16) => ((v) => object_37((get$) => {
119
- let arg_33, decoder_8, objectArg_16, arg_35, decoder_9, objectArg_17;
120
- let ID;
121
- const objectArg = get$.Optional;
122
- ID = objectArg.Field("@id", uri);
123
- let FileName;
124
- const objectArg_1 = get$.Optional;
125
- FileName = objectArg_1.Field("filename", string);
126
- let Identifier;
127
- const objectArg_2 = get$.Optional;
128
- Identifier = objectArg_2.Field("identifier", string);
129
- let Title;
130
- const objectArg_3 = get$.Optional;
131
- Title = objectArg_3.Field("title", string);
132
- let Description;
133
- const objectArg_4 = get$.Optional;
134
- Description = objectArg_4.Field("description", string);
135
- let SubmissionDate;
136
- const objectArg_5 = get$.Optional;
137
- SubmissionDate = objectArg_5.Field("submissionDate", string);
138
- let PublicReleaseDate;
139
- const objectArg_6 = get$.Optional;
140
- PublicReleaseDate = objectArg_6.Field("publicReleaseDate", string);
141
- let Publications;
142
- let arg_15;
143
- const decoder = decoder_10(options);
144
- arg_15 = ((path_6) => ((value_6) => list_1(uncurry2(decoder), path_6, value_6)));
145
- const objectArg_7 = get$.Optional;
146
- Publications = objectArg_7.Field("publications", uncurry2(arg_15));
147
- let Contacts;
148
- let arg_17;
149
- const decoder_1 = decoder_11(options);
150
- arg_17 = ((path_7) => ((value_7) => list_1(uncurry2(decoder_1), path_7, value_7)));
151
- const objectArg_8 = get$.Optional;
152
- Contacts = objectArg_8.Field("people", uncurry2(arg_17));
153
- let StudyDesignDescriptors;
154
- let arg_19;
155
- const decoder_2 = OntologyAnnotation_decoder(options);
156
- arg_19 = ((path_8) => ((value_8) => list_1(uncurry2(decoder_2), path_8, value_8)));
157
- const objectArg_9 = get$.Optional;
158
- StudyDesignDescriptors = objectArg_9.Field("studyDesignDescriptors", uncurry2(arg_19));
159
- let Protocols;
160
- let arg_21;
161
- const decoder_3 = Protocol_decoder(options);
162
- arg_21 = ((path_9) => ((value_9) => list_1(uncurry2(decoder_3), path_9, value_9)));
163
- const objectArg_10 = get$.Optional;
164
- Protocols = objectArg_10.Field("protocols", uncurry2(arg_21));
165
- let Materials;
166
- const arg_23 = StudyMaterials_decoder(options);
167
- const objectArg_11 = get$.Optional;
168
- Materials = objectArg_11.Field("materials", uncurry2(arg_23));
169
- let Assays;
170
- let arg_25;
171
- const decoder_4 = Assay_decoder(options);
172
- arg_25 = ((path_10) => ((value_10) => list_1(uncurry2(decoder_4), path_10, value_10)));
173
- const objectArg_12 = get$.Optional;
174
- Assays = objectArg_12.Field("assays", uncurry2(arg_25));
175
- let Factors;
176
- let arg_27;
177
- const decoder_5 = Factor_decoder(options);
178
- arg_27 = ((path_11) => ((value_11) => list_1(uncurry2(decoder_5), path_11, value_11)));
179
- const objectArg_13 = get$.Optional;
180
- Factors = objectArg_13.Field("factors", uncurry2(arg_27));
181
- let CharacteristicCategories;
182
- let arg_29;
183
- const decoder_6 = MaterialAttribute_decoder(options);
184
- arg_29 = ((path_12) => ((value_12) => list_1(uncurry2(decoder_6), path_12, value_12)));
185
- const objectArg_14 = get$.Optional;
186
- CharacteristicCategories = objectArg_14.Field("characteristicCategories", uncurry2(arg_29));
187
- let UnitCategories;
188
- let arg_31;
189
- const decoder_7 = OntologyAnnotation_decoder(options);
190
- arg_31 = ((path_13) => ((value_13) => list_1(uncurry2(decoder_7), path_13, value_13)));
191
- const objectArg_15 = get$.Optional;
192
- UnitCategories = objectArg_15.Field("unitCategories", uncurry2(arg_31));
193
- return new Study(ID, FileName, Identifier, Title, Description, SubmissionDate, PublicReleaseDate, Publications, Contacts, StudyDesignDescriptors, Protocols, Materials, (arg_33 = ((decoder_8 = Process_decoder(options), (path_14) => ((value_14) => list_1(uncurry2(decoder_8), path_14, value_14)))), (objectArg_16 = get$.Optional, objectArg_16.Field("processSequence", uncurry2(arg_33)))), Assays, Factors, CharacteristicCategories, UnitCategories, (arg_35 = ((decoder_9 = decoder_12(options), (path_15) => ((value_15) => list_1(uncurry2(decoder_9), path_15, value_15)))), (objectArg_17 = get$.Optional, objectArg_17.Field("comments", uncurry2(arg_35)))));
194
- }, path_16, v));
195
- }
196
-
197
- export function Study_fromJsonString(s) {
198
- return fromJsonString(uncurry2(Study_decoder(ConverterOptions_$ctor())), s);
199
- }
200
-
201
- export function Study_toJsonString(p) {
202
- return toString(2, Study_encoder(ConverterOptions_$ctor(), p));
203
- }
204
-
205
- /**
206
- * exports in json-ld format
207
- */
208
- export function Study_toStringLD(s) {
209
- let returnVal;
210
- return toString(2, Study_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), s));
211
- }
212
-
@@ -1,69 +0,0 @@
1
- import { Record } from "../../../fable_modules/fable-library.4.5.0/Types.js";
2
- import { bool_type, option_type, array_type, record_type, string_type, obj_type } from "../../../fable_modules/fable-library.4.5.0/Reflection.js";
3
- import { map } from "../../../fable_modules/fable-library.4.5.0/Array.js";
4
- import { singleton } from "../../../fable_modules/fable-library.4.5.0/AsyncBuilder.js";
5
- import { awaitPromise } from "../../../fable_modules/fable-library.4.5.0/Async.js";
6
- import * as JsonValidation from "../../../../../src/ISA/ISA.Json/Validation/JsonValidation.js";
7
- import { value } from "../../../fable_modules/fable-library.4.5.0/Option.js";
8
-
9
- export class ValidationError extends Record {
10
- constructor(path, property, message, schema, instance, name, argument, stack) {
11
- super();
12
- this.path = path;
13
- this.property = property;
14
- this.message = message;
15
- this.schema = schema;
16
- this.instance = instance;
17
- this.name = name;
18
- this.argument = argument;
19
- this.stack = stack;
20
- }
21
- }
22
-
23
- export function ValidationError_$reflection() {
24
- return record_type("ARCtrl.ISA.Json.Fable.ValidationError", [], ValidationError, () => [["path", obj_type], ["property", string_type], ["message", string_type], ["schema", obj_type], ["instance", obj_type], ["name", string_type], ["argument", obj_type], ["stack", string_type]]);
25
- }
26
-
27
- export function ValidationError__ToErrorString(this$) {
28
- return `Property ${this$.property} (${this$.instance}) ${this$.message}.`;
29
- }
30
-
31
- export class ValidatorResult extends Record {
32
- constructor(instance, schema, options, path, propertyPath, errors, throwError, throFirst, throwAll, disableFormat) {
33
- super();
34
- this.instance = instance;
35
- this.schema = schema;
36
- this.options = options;
37
- this.path = path;
38
- this.propertyPath = propertyPath;
39
- this.errors = errors;
40
- this.throwError = throwError;
41
- this.throFirst = throFirst;
42
- this.throwAll = throwAll;
43
- this.disableFormat = disableFormat;
44
- }
45
- }
46
-
47
- export function ValidatorResult_$reflection() {
48
- return record_type("ARCtrl.ISA.Json.Fable.ValidatorResult", [], ValidatorResult, () => [["instance", obj_type], ["schema", obj_type], ["options", obj_type], ["path", array_type(obj_type)], ["propertyPath", string_type], ["errors", array_type(ValidationError_$reflection())], ["throwError", option_type(obj_type)], ["throFirst", option_type(obj_type)], ["throwAll", option_type(obj_type)], ["disableFormat", bool_type]]);
49
- }
50
-
51
- export function ValidatorResult__ToValidationResult(this$) {
52
- if (this$.errors.length === 0) {
53
- return [true, []];
54
- }
55
- else {
56
- return [false, map(ValidationError__ToErrorString, this$.errors)];
57
- }
58
- }
59
-
60
- export function validate(schemaURL, objectString) {
61
- let validationResult = void 0;
62
- return singleton.Delay(() => singleton.Bind(awaitPromise(JsonValidation.validateAgainstSchema(objectString, schemaURL).then((o) => {
63
- validationResult = o;
64
- })), () => {
65
- const output = ValidatorResult__ToValidationResult(value(validationResult));
66
- return singleton.Return(output);
67
- }));
68
- }
69
-