@nfdi4plants/arctrl 1.0.7 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARC.js +47 -11
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcTypes.js +30 -18
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +8 -8
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +23 -31
- package/ISA/ISA/ArcTypes/ArcTableAux.js +27 -16
- package/ISA/ISA/ArcTypes/ArcTables.js +11 -11
- package/ISA/ISA/ArcTypes/ArcTypes.js +118 -83
- package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +8 -7
- package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
- package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
- package/ISA/ISA/Builder/Types.js +5 -5
- package/ISA/ISA/Fable.js +6 -6
- package/ISA/ISA/Helper.js +15 -13
- package/ISA/ISA/Identifier.js +1 -1
- package/ISA/ISA/JsonTypes/Assay.js +8 -8
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +5 -5
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +4 -4
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +6 -6
- package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
- package/ISA/ISA/JsonTypes/Investigation.js +6 -6
- package/ISA/ISA/JsonTypes/Material.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +3 -3
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +6 -6
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +6 -6
- package/ISA/ISA/JsonTypes/Person.js +23 -8
- package/ISA/ISA/JsonTypes/Process.js +13 -13
- package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessSequence.js +6 -6
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +3 -3
- package/ISA/ISA/JsonTypes/Publication.js +6 -6
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +8 -8
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +22 -29
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +157 -65
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +78 -49
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +136 -24
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +183 -21
- package/ISA/ISA.Json/ArcTypes/CellTable.js +40 -0
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +34 -23
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +18 -46
- package/ISA/ISA.Json/ArcTypes/IOType.js +11 -13
- package/ISA/ISA.Json/ArcTypes/OATable.js +42 -0
- package/ISA/ISA.Json/Assay.js +71 -47
- package/ISA/ISA.Json/Comment.js +31 -35
- package/ISA/ISA.Json/ConverterOptions.js +19 -1
- package/ISA/ISA.Json/Data.js +119 -137
- package/ISA/ISA.Json/Decode.js +51 -36
- package/ISA/ISA.Json/Factor.js +90 -90
- package/ISA/ISA.Json/GEncode.js +31 -6
- package/ISA/ISA.Json/Investigation.js +54 -79
- package/ISA/ISA.Json/Material.js +103 -104
- package/ISA/ISA.Json/Ontology.js +99 -92
- package/ISA/ISA.Json/Person.js +47 -65
- package/ISA/ISA.Json/Process.js +144 -130
- package/ISA/ISA.Json/Protocol.js +144 -105
- package/ISA/ISA.Json/Publication.js +34 -40
- package/ISA/ISA.Json/StringTable.js +44 -0
- package/ISA/ISA.Json/Study.js +70 -96
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +34 -0
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +24 -0
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_investigation_context.js +33 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +22 -0
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +30 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +27 -0
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +42 -0
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +25 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +56 -43
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +3 -3
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +11 -11
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +5 -5
- package/ISA/ISA.Spreadsheet/ArcAssay.js +100 -88
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +12 -12
- package/ISA/ISA.Spreadsheet/ArcStudy.js +36 -24
- package/ISA/ISA.Spreadsheet/CollectionAux.js +8 -8
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +31 -20
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +28 -23
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +8 -8
- package/README.md +20 -3
- package/SemVer.js +6 -6
- package/Templates/Template.Json.js +43 -36
- package/Templates/Template.Spreadsheet.js +12 -12
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +7 -7
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs.js +14 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs +22 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs.js +24 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs +12 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs.js +21 -17
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- 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
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.js +124 -86
- package/fable_modules/fable-library-js.4.13.0/CHANGELOG.md +29 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.js +0 -43
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.js +3 -2
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.13.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.13.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.js +60 -8
- package/fable_modules/fable-library-js.4.13.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/ISA/ISA.Json/Validation/Fable.js +0 -69
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
- package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
- package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
- package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { tryParse } from "../../../fable_modules/fable-library-js.4.13.0/Int32.js";
|
|
2
|
+
import { Union, toString, FSharpRef } from "../../../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
3
|
+
import { tryParse as tryParse_1 } from "../../../fable_modules/fable-library-js.4.13.0/Double.js";
|
|
3
4
|
import { OntologyAnnotation_$reflection, OntologyAnnotation } from "./OntologyAnnotation.js";
|
|
4
|
-
import { defaultArg } from "../../../fable_modules/fable-library.4.
|
|
5
|
-
import { int32ToString } from "../../../fable_modules/fable-library.4.
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { union_type, string_type, float64_type, int32_type } from "../../../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
5
|
+
import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
6
|
+
import { int32ToString } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
7
|
+
import { printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
8
|
+
import { union_type, string_type, float64_type, int32_type } from "../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
9
9
|
|
|
10
10
|
export class Value extends Union {
|
|
11
11
|
constructor(tag, fields) {
|
|
@@ -17,33 +17,26 @@ export class Value extends Union {
|
|
|
17
17
|
return ["Ontology", "Int", "Float", "Name"];
|
|
18
18
|
}
|
|
19
19
|
static fromString(value) {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
let matchValue;
|
|
21
|
+
let outArg = 0;
|
|
22
|
+
matchValue = [tryParse(value, 511, false, 32, new FSharpRef(() => outArg, (v) => {
|
|
23
|
+
outArg = (v | 0);
|
|
24
|
+
})), outArg];
|
|
25
|
+
if (matchValue[0]) {
|
|
26
|
+
return new Value(1, [matchValue[1]]);
|
|
22
27
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
else {
|
|
29
|
+
let matchValue_1;
|
|
30
|
+
let outArg_1 = 0;
|
|
31
|
+
matchValue_1 = [tryParse_1(value, new FSharpRef(() => outArg_1, (v_1) => {
|
|
32
|
+
outArg_1 = v_1;
|
|
33
|
+
})), outArg_1];
|
|
34
|
+
return matchValue_1[0] ? (new Value(2, [matchValue_1[1]])) : (new Value(3, [value]));
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
37
|
static fromOptions(value, termSource, termAccesssion) {
|
|
33
38
|
let value_1;
|
|
34
|
-
return (value == null) ? ((termSource == null) ? ((termAccesssion == null) ? void 0 : (new Value(0, [OntologyAnnotation.fromString(defaultArg(value, ""), termSource, termAccesssion)]))) : (new Value(0, [OntologyAnnotation.fromString(defaultArg(value, ""), termSource, termAccesssion)]))) : ((termSource == null) ? ((termAccesssion == null) ? ((value_1 = value, (()
|
|
35
|
-
try {
|
|
36
|
-
return new Value(1, [parse_1(value_1, 511, false, 32)]);
|
|
37
|
-
}
|
|
38
|
-
catch (matchValue_1) {
|
|
39
|
-
try {
|
|
40
|
-
return new Value(2, [parse(value_1)]);
|
|
41
|
-
}
|
|
42
|
-
catch (matchValue_2) {
|
|
43
|
-
return new Value(3, [value_1]);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
})())) : (new Value(0, [OntologyAnnotation.fromString(defaultArg(value, ""), termSource, termAccesssion)]))) : (new Value(0, [OntologyAnnotation.fromString(defaultArg(value, ""), termSource, termAccesssion)])));
|
|
39
|
+
return (value == null) ? ((termSource == null) ? ((termAccesssion == null) ? void 0 : (new Value(0, [OntologyAnnotation.fromString(defaultArg(value, ""), termSource, termAccesssion)]))) : (new Value(0, [OntologyAnnotation.fromString(defaultArg(value, ""), termSource, termAccesssion)]))) : ((termSource == null) ? ((termAccesssion == null) ? ((value_1 = value, Value.fromString(value_1))) : (new Value(0, [OntologyAnnotation.fromString(defaultArg(value, ""), termSource, termAccesssion)]))) : (new Value(0, [OntologyAnnotation.fromString(defaultArg(value, ""), termSource, termAccesssion)])));
|
|
47
40
|
}
|
|
48
41
|
static toOptions(value) {
|
|
49
42
|
switch (value.tag) {
|
package/ISA/ISA/Regex.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { create, match } from "../../fable_modules/fable-library.4.
|
|
2
|
-
import { parse } from "../../fable_modules/fable-library.4.
|
|
3
|
-
import { map } from "../../fable_modules/fable-library.4.
|
|
1
|
+
import { create, match } from "../../fable_modules/fable-library-js.4.13.0/RegExp.js";
|
|
2
|
+
import { parse } from "../../fable_modules/fable-library-js.4.13.0/Int32.js";
|
|
3
|
+
import { map } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
4
4
|
|
|
5
5
|
export function Pattern_handleGroupPatterns(pattern) {
|
|
6
6
|
return pattern;
|
|
@@ -1,88 +1,79 @@
|
|
|
1
1
|
import { OntologySourceReference_encoder, OntologyAnnotation_encoder, OntologySourceReference_decoder, OntologyAnnotation_decoder } from "../Ontology.js";
|
|
2
|
-
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { encoder, decoder as
|
|
7
|
-
import { encoder as encoder_1, decoder as decoder_2 } from "../Comment.js";
|
|
2
|
+
import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
|
|
3
|
+
import { array, object, string, list as list_1 } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
4
|
+
import { ArcTable_compressedDecoder, ArcTable_compressedEncoder, ArcTable_encoder, ArcTable_decoder } from "./ArcTable.js";
|
|
5
|
+
import { encoder, decoder as decoder_2 } from "../Person.js";
|
|
6
|
+
import { encoder as encoder_1, decoder as decoder_3 } from "../Comment.js";
|
|
8
7
|
import { Factor_encoder, Factor_decoder } from "../Factor.js";
|
|
9
|
-
import { encoder as encoder_2, decoder as
|
|
10
|
-
import { value as
|
|
11
|
-
import { toArray } from "../../../fable_modules/fable-library.4.
|
|
12
|
-
import {
|
|
13
|
-
import { empty, singleton, append, delay, toList, map as map_1 } from "../../../fable_modules/fable-library.4.
|
|
8
|
+
import { encoder as encoder_2, decoder as decoder_4 } from "../Publication.js";
|
|
9
|
+
import { value as value_2, map, defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
10
|
+
import { toArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
11
|
+
import { seq } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
12
|
+
import { empty, singleton, append, delay, toList, map as map_1 } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
13
|
+
import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
14
14
|
import { ArcAssay } from "../../ISA/ArcTypes/ArcTypes.js";
|
|
15
|
+
import { OATable_arrayFromMap, OATable_encoder, OATable_decoder, OATable_decodeOA, OATable_encodeOA } from "./OATable.js";
|
|
16
|
+
import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
15
17
|
import { Assay_decoder, Assay_encoder } from "../Assay.js";
|
|
16
|
-
import {
|
|
17
|
-
import { printf,
|
|
18
|
+
import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
19
|
+
import { toFail, printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
20
|
+
import { StringTable_arrayFromMap, StringTable_encoder, StringTable_decoder } from "../StringTable.js";
|
|
21
|
+
import { CellTable_arrayFromMap, CellTable_encoder, CellTable_decoder } from "./CellTable.js";
|
|
22
|
+
import { Dictionary } from "../../../fable_modules/fable-library-js.4.13.0/MutableMap.js";
|
|
23
|
+
import { safeHash, equals } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
18
24
|
|
|
19
25
|
export const JsonHelper_DecodeOa = OntologyAnnotation_decoder(ConverterOptions_$ctor());
|
|
20
26
|
|
|
21
|
-
export const JsonHelper_DecodeTables =
|
|
27
|
+
export const JsonHelper_DecodeTables = list_1(ArcTable_decoder);
|
|
22
28
|
|
|
23
|
-
export const JsonHelper_DecodePersons = (()
|
|
24
|
-
const decoder = decoder_1(ConverterOptions_$ctor());
|
|
25
|
-
return (path) => ((value) => list_1(uncurry2(decoder), path, value));
|
|
26
|
-
})();
|
|
29
|
+
export const JsonHelper_DecodePersons = list_1(decoder_2(ConverterOptions_$ctor()));
|
|
27
30
|
|
|
28
|
-
export const JsonHelper_DecodeComments = (()
|
|
29
|
-
const decoder = decoder_2(ConverterOptions_$ctor());
|
|
30
|
-
return (path) => ((value) => list_1(uncurry2(decoder), path, value));
|
|
31
|
-
})();
|
|
31
|
+
export const JsonHelper_DecodeComments = list_1(decoder_3(ConverterOptions_$ctor()));
|
|
32
32
|
|
|
33
|
-
export const JsonHelper_DecodeFactors = (()
|
|
34
|
-
const decoder = Factor_decoder(ConverterOptions_$ctor());
|
|
35
|
-
return (path) => ((value) => list_1(uncurry2(decoder), path, value));
|
|
36
|
-
})();
|
|
33
|
+
export const JsonHelper_DecodeFactors = list_1(Factor_decoder(ConverterOptions_$ctor()));
|
|
37
34
|
|
|
38
|
-
export const JsonHelper_DecodePublications = (()
|
|
39
|
-
const decoder = decoder_3(ConverterOptions_$ctor());
|
|
40
|
-
return (path) => ((value) => list_1(uncurry2(decoder), path, value));
|
|
41
|
-
})();
|
|
35
|
+
export const JsonHelper_DecodePublications = list_1(decoder_4(ConverterOptions_$ctor()));
|
|
42
36
|
|
|
43
|
-
export const JsonHelper_DecodeOntologySourceReferences = (()
|
|
44
|
-
const decoder = OntologySourceReference_decoder(ConverterOptions_$ctor());
|
|
45
|
-
return (path) => ((value) => list_1(uncurry2(decoder), path, value));
|
|
46
|
-
})();
|
|
37
|
+
export const JsonHelper_DecodeOntologySourceReferences = list_1(OntologySourceReference_decoder(ConverterOptions_$ctor()));
|
|
47
38
|
|
|
48
39
|
export function JsonHelper_tryGetTables(get$, fieldName) {
|
|
49
40
|
let objectArg;
|
|
50
|
-
return defaultArg(map((collection) => Array.from(collection), (objectArg = get$.Optional, objectArg.Field(fieldName,
|
|
41
|
+
return defaultArg(map((collection) => Array.from(collection), (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodeTables))), []);
|
|
51
42
|
}
|
|
52
43
|
|
|
53
44
|
export function JsonHelper_tryGetPersons(get$, fieldName) {
|
|
54
45
|
let objectArg;
|
|
55
|
-
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName,
|
|
46
|
+
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodePersons))), new Array(0));
|
|
56
47
|
}
|
|
57
48
|
|
|
58
49
|
export function JsonHelper_tryGetComments(get$, fieldName) {
|
|
59
50
|
let objectArg;
|
|
60
|
-
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName,
|
|
51
|
+
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodeComments))), new Array(0));
|
|
61
52
|
}
|
|
62
53
|
|
|
63
54
|
export function JsonHelper_tryGetPublications(get$, fieldName) {
|
|
64
55
|
let objectArg;
|
|
65
|
-
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName,
|
|
56
|
+
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodePublications))), new Array(0));
|
|
66
57
|
}
|
|
67
58
|
|
|
68
59
|
export function JsonHelper_tryGetOAs(get$, fieldName) {
|
|
69
|
-
let objectArg;
|
|
70
|
-
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName,
|
|
60
|
+
let arg_1, objectArg;
|
|
61
|
+
return defaultArg(map(toArray, (arg_1 = list_1(JsonHelper_DecodeOa), (objectArg = get$.Optional, objectArg.Field(fieldName, arg_1)))), new Array(0));
|
|
71
62
|
}
|
|
72
63
|
|
|
73
64
|
export function JsonHelper_tryGetFactors(get$, fieldName) {
|
|
74
65
|
let objectArg;
|
|
75
|
-
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName,
|
|
66
|
+
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodeFactors))), new Array(0));
|
|
76
67
|
}
|
|
77
68
|
|
|
78
69
|
export function JsonHelper_tryGetStringResizeArray(get$, fieldName) {
|
|
79
|
-
let objectArg;
|
|
80
|
-
return defaultArg(map((collection) => Array.from(collection), (objectArg = get$.Optional, objectArg.Field(fieldName,
|
|
70
|
+
let arg_1, objectArg;
|
|
71
|
+
return defaultArg(map((collection) => Array.from(collection), (arg_1 = list_1(string), (objectArg = get$.Optional, objectArg.Field(fieldName, arg_1)))), []);
|
|
81
72
|
}
|
|
82
73
|
|
|
83
74
|
export function JsonHelper_tryGetOntologySourceReferences(get$, fieldName) {
|
|
84
75
|
let objectArg;
|
|
85
|
-
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName,
|
|
76
|
+
return defaultArg(map(toArray, (objectArg = get$.Optional, objectArg.Field(fieldName, JsonHelper_DecodeOntologySourceReferences))), new Array(0));
|
|
86
77
|
}
|
|
87
78
|
|
|
88
79
|
export function JsonHelper_EncoderOA(t) {
|
|
@@ -138,43 +129,84 @@ export function JsonHelper_EncoderOntologySourceReferences(t) {
|
|
|
138
129
|
}
|
|
139
130
|
|
|
140
131
|
export function ArcAssay_encoder(assay) {
|
|
141
|
-
return
|
|
132
|
+
return new Json(5, [toList(delay(() => append(singleton(["Identifier", new Json(0, [assay.Identifier])]), delay(() => append((assay.MeasurementType != null) ? singleton(["MeasurementType", JsonHelper_EncoderOA(value_2(assay.MeasurementType))]) : empty(), delay(() => append((assay.TechnologyType != null) ? singleton(["TechnologyType", JsonHelper_EncoderOA(value_2(assay.TechnologyType))]) : empty(), delay(() => append((assay.TechnologyPlatform != null) ? singleton(["TechnologyPlatform", JsonHelper_EncoderOA(value_2(assay.TechnologyPlatform))]) : empty(), delay(() => append((assay.Tables.length !== 0) ? singleton(["Tables", JsonHelper_EncoderTables(assay.Tables)]) : empty(), delay(() => append((assay.Performers.length !== 0) ? singleton(["Performers", JsonHelper_EncoderPersons(assay.Performers)]) : empty(), delay(() => ((assay.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(assay.Comments)]) : empty())))))))))))))))]);
|
|
142
133
|
}
|
|
143
134
|
|
|
144
|
-
export const ArcAssay_decoder = (
|
|
135
|
+
export const ArcAssay_decoder = object((get$) => {
|
|
145
136
|
let identifier;
|
|
146
137
|
const objectArg = get$.Required;
|
|
147
138
|
identifier = objectArg.Field("Identifier", string);
|
|
148
139
|
let measurementType;
|
|
149
140
|
const objectArg_1 = get$.Optional;
|
|
150
|
-
measurementType = objectArg_1.Field("MeasurementType",
|
|
141
|
+
measurementType = objectArg_1.Field("MeasurementType", JsonHelper_DecodeOa);
|
|
151
142
|
let technologyType;
|
|
152
143
|
const objectArg_2 = get$.Optional;
|
|
153
|
-
technologyType = objectArg_2.Field("TechnologyType",
|
|
144
|
+
technologyType = objectArg_2.Field("TechnologyType", JsonHelper_DecodeOa);
|
|
154
145
|
let technologyPlatform;
|
|
155
146
|
const objectArg_3 = get$.Optional;
|
|
156
|
-
technologyPlatform = objectArg_3.Field("TechnologyPlatform",
|
|
147
|
+
technologyPlatform = objectArg_3.Field("TechnologyPlatform", JsonHelper_DecodeOa);
|
|
157
148
|
const tables = JsonHelper_tryGetTables(get$, "Tables");
|
|
158
149
|
const performers = JsonHelper_tryGetPersons(get$, "Performers");
|
|
159
150
|
const comments = JsonHelper_tryGetComments(get$, "Comments");
|
|
160
151
|
return ArcAssay.make(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments);
|
|
161
|
-
}
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
export function ArcAssay_compressedEncoder(stringTable, oaTable, cellTable, assay) {
|
|
155
|
+
return new Json(5, [toList(delay(() => append(singleton(["Identifier", new Json(0, [assay.Identifier])]), delay(() => append((assay.MeasurementType != null) ? singleton(["MeasurementType", OATable_encodeOA(oaTable, value_2(assay.MeasurementType))]) : empty(), delay(() => append((assay.TechnologyType != null) ? singleton(["TechnologyType", OATable_encodeOA(oaTable, value_2(assay.TechnologyType))]) : empty(), delay(() => append((assay.TechnologyPlatform != null) ? singleton(["TechnologyPlatform", OATable_encodeOA(oaTable, value_2(assay.TechnologyPlatform))]) : empty(), delay(() => append((assay.Tables.length !== 0) ? singleton(["Tables", seq(map_1((table) => ArcTable_compressedEncoder(stringTable, oaTable, cellTable, table), assay.Tables))]) : empty(), delay(() => append((assay.Performers.length !== 0) ? singleton(["Performers", JsonHelper_EncoderPersons(assay.Performers)]) : empty(), delay(() => ((assay.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(assay.Comments)]) : empty())))))))))))))))]);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function ArcAssay_compressedDecoder(stringTable, oaTable, cellTable) {
|
|
159
|
+
return object((get$) => {
|
|
160
|
+
let arg_1, objectArg;
|
|
161
|
+
const tables = defaultArg(map((collection) => Array.from(collection), (arg_1 = array(ArcTable_compressedDecoder(stringTable, oaTable, cellTable)), (objectArg = get$.Optional, objectArg.Field("Tables", arg_1)))), []);
|
|
162
|
+
let identifier;
|
|
163
|
+
const objectArg_1 = get$.Required;
|
|
164
|
+
identifier = objectArg_1.Field("Identifier", string);
|
|
165
|
+
let measurementType;
|
|
166
|
+
const arg_5 = OATable_decodeOA(oaTable);
|
|
167
|
+
const objectArg_2 = get$.Optional;
|
|
168
|
+
measurementType = objectArg_2.Field("MeasurementType", arg_5);
|
|
169
|
+
let technologyType;
|
|
170
|
+
const arg_7 = OATable_decodeOA(oaTable);
|
|
171
|
+
const objectArg_3 = get$.Optional;
|
|
172
|
+
technologyType = objectArg_3.Field("TechnologyType", arg_7);
|
|
173
|
+
let technologyPlatform;
|
|
174
|
+
const arg_9 = OATable_decodeOA(oaTable);
|
|
175
|
+
const objectArg_4 = get$.Optional;
|
|
176
|
+
technologyPlatform = objectArg_4.Field("TechnologyPlatform", arg_9);
|
|
177
|
+
const performers = JsonHelper_tryGetPersons(get$, "Performers");
|
|
178
|
+
const comments = JsonHelper_tryGetComments(get$, "Comments");
|
|
179
|
+
return ArcAssay.make(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
162
182
|
|
|
163
183
|
/**
|
|
164
184
|
* exports in json-ld format
|
|
165
185
|
*/
|
|
166
|
-
export function
|
|
186
|
+
export function ArcAssay_toJsonldString(a) {
|
|
167
187
|
let returnVal;
|
|
168
|
-
return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), a.ToAssay()));
|
|
188
|
+
return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), void 0, a.ToAssay()));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function ArcAssay_toJsonldStringWithContext(a) {
|
|
192
|
+
let returnVal;
|
|
193
|
+
return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), void 0, a.ToAssay()));
|
|
169
194
|
}
|
|
170
195
|
|
|
171
196
|
export function ArcAssay_fromJsonString(s) {
|
|
172
|
-
|
|
173
|
-
|
|
197
|
+
let a_1;
|
|
198
|
+
const matchValue = fromString(Assay_decoder(ConverterOptions_$ctor()), s);
|
|
199
|
+
if (matchValue.tag === 1) {
|
|
200
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
a_1 = matchValue.fields[0];
|
|
204
|
+
}
|
|
205
|
+
return ArcAssay.fromAssay(a_1);
|
|
174
206
|
}
|
|
175
207
|
|
|
176
208
|
export function ArcAssay_toJsonString(a) {
|
|
177
|
-
return toString(2, Assay_encoder(ConverterOptions_$ctor(), a.ToAssay()));
|
|
209
|
+
return toString(2, Assay_encoder(ConverterOptions_$ctor(), void 0, a.ToAssay()));
|
|
178
210
|
}
|
|
179
211
|
|
|
180
212
|
export function ArcAssay_toArcJsonString(a) {
|
|
@@ -182,22 +214,34 @@ export function ArcAssay_toArcJsonString(a) {
|
|
|
182
214
|
}
|
|
183
215
|
|
|
184
216
|
export function ArcAssay_fromArcJsonString(jsonString) {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
217
|
+
try {
|
|
218
|
+
const matchValue = fromString(ArcAssay_decoder, jsonString);
|
|
219
|
+
if (matchValue.tag === 1) {
|
|
220
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
return matchValue.fields[0];
|
|
224
|
+
}
|
|
188
225
|
}
|
|
189
|
-
|
|
190
|
-
|
|
226
|
+
catch (e_1) {
|
|
227
|
+
const arg_1 = e_1.message;
|
|
228
|
+
return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(arg_1);
|
|
191
229
|
}
|
|
192
230
|
}
|
|
193
231
|
|
|
194
232
|
export function ARCtrl_ISA_ArcAssay__ArcAssay_fromArcJsonString_Static_Z721C83C5(jsonString) {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
233
|
+
try {
|
|
234
|
+
const matchValue = fromString(ArcAssay_decoder, jsonString);
|
|
235
|
+
if (matchValue.tag === 1) {
|
|
236
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
return matchValue.fields[0];
|
|
240
|
+
}
|
|
198
241
|
}
|
|
199
|
-
|
|
200
|
-
|
|
242
|
+
catch (e_1) {
|
|
243
|
+
const arg_1 = e_1.message;
|
|
244
|
+
return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(arg_1);
|
|
201
245
|
}
|
|
202
246
|
}
|
|
203
247
|
|
|
@@ -209,3 +253,51 @@ export function ARCtrl_ISA_ArcAssay__ArcAssay_toArcJsonString_Static_1C75D08D(a)
|
|
|
209
253
|
return ARCtrl_ISA_ArcAssay__ArcAssay_ToArcJsonString_71136F3F(a);
|
|
210
254
|
}
|
|
211
255
|
|
|
256
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_fromCompressedJsonString_Static_Z721C83C5(jsonString) {
|
|
257
|
+
const decoder = object((get$) => {
|
|
258
|
+
let arg_5, objectArg_2;
|
|
259
|
+
let stringTable;
|
|
260
|
+
const objectArg = get$.Required;
|
|
261
|
+
stringTable = objectArg.Field("stringTable", StringTable_decoder);
|
|
262
|
+
let oaTable;
|
|
263
|
+
const arg_3 = OATable_decoder(stringTable);
|
|
264
|
+
const objectArg_1 = get$.Required;
|
|
265
|
+
oaTable = objectArg_1.Field("oaTable", arg_3);
|
|
266
|
+
const arg_7 = ArcAssay_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", arg_5))));
|
|
267
|
+
const objectArg_3 = get$.Required;
|
|
268
|
+
return objectArg_3.Field("assay", arg_7);
|
|
269
|
+
});
|
|
270
|
+
try {
|
|
271
|
+
const matchValue = fromString(decoder, jsonString);
|
|
272
|
+
if (matchValue.tag === 1) {
|
|
273
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
return matchValue.fields[0];
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
catch (e_1) {
|
|
280
|
+
const arg_9 = e_1.message;
|
|
281
|
+
return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(arg_9);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_ToCompressedJsonString_71136F3F(this$, spaces) {
|
|
286
|
+
const spaces_1 = defaultArg(spaces, 0) | 0;
|
|
287
|
+
const stringTable = new Map([]);
|
|
288
|
+
const oaTable = new Dictionary([], {
|
|
289
|
+
Equals: equals,
|
|
290
|
+
GetHashCode: safeHash,
|
|
291
|
+
});
|
|
292
|
+
const cellTable = new Dictionary([], {
|
|
293
|
+
Equals: equals,
|
|
294
|
+
GetHashCode: safeHash,
|
|
295
|
+
});
|
|
296
|
+
const arcAssay = ArcAssay_compressedEncoder(stringTable, oaTable, cellTable, this$);
|
|
297
|
+
return toString(spaces_1, new Json(5, [[["cellTable", CellTable_encoder(stringTable, oaTable, CellTable_arrayFromMap(cellTable))], ["oaTable", OATable_encoder(stringTable, OATable_arrayFromMap(oaTable))], ["stringTable", StringTable_encoder(StringTable_arrayFromMap(stringTable))], ["assay", arcAssay]]]));
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_toCompressedJsonString_Static_1C75D08D(a) {
|
|
301
|
+
return ARCtrl_ISA_ArcAssay__ArcAssay_ToCompressedJsonString_71136F3F(a);
|
|
302
|
+
}
|
|
303
|
+
|
|
@@ -1,57 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { map as map_1, defaultArg, value as
|
|
4
|
-
import { JsonHelper_tryGetComments, JsonHelper_tryGetStringResizeArray,
|
|
1
|
+
import { map, empty, singleton, append, delay, toList } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
2
|
+
import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
3
|
+
import { map as map_1, defaultArg, value as value_7 } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
4
|
+
import { JsonHelper_tryGetComments, JsonHelper_tryGetStringResizeArray, JsonHelper_tryGetPersons, JsonHelper_tryGetPublications, JsonHelper_tryGetOntologySourceReferences, ArcAssay_decoder, JsonHelper_EncoderComments, ArcAssay_encoder, JsonHelper_EncoderPersons, JsonHelper_EncoderPublications, JsonHelper_EncoderOntologySourceReferences } from "./ArcAssay.js";
|
|
5
|
+
import { seq } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
5
6
|
import { ArcStudy_decoder, ArcStudy_encoder } from "./ArcStudy.js";
|
|
6
|
-
import {
|
|
7
|
-
import { uncurry2 } from "../../../fable_modules/fable-library.4.5.0/Util.js";
|
|
7
|
+
import { string, object, list } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
8
8
|
import { ArcInvestigation } from "../../ISA/ArcTypes/ArcTypes.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
10
|
+
import { decoder as decoder_1, encoder } from "../Investigation.js";
|
|
11
|
+
import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor } from "../ConverterOptions.js";
|
|
12
|
+
import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
13
|
+
import { toFail, printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
13
14
|
|
|
14
15
|
export function ArcInvestigation_encoder(inv) {
|
|
15
|
-
return
|
|
16
|
+
return new Json(5, [toList(delay(() => append(singleton(["Identifier", new Json(0, [inv.Identifier])]), delay(() => append((inv.Title != null) ? singleton(["Title", new Json(0, [value_7(inv.Title)])]) : empty(), delay(() => append((inv.Description != null) ? singleton(["Description", new Json(0, [value_7(inv.Description)])]) : empty(), delay(() => append((inv.SubmissionDate != null) ? singleton(["SubmissionDate", new Json(0, [value_7(inv.SubmissionDate)])]) : empty(), delay(() => append((inv.PublicReleaseDate != null) ? singleton(["PublicReleaseDate", new Json(0, [value_7(inv.PublicReleaseDate)])]) : empty(), delay(() => append((inv.OntologySourceReferences.length !== 0) ? singleton(["OntologySourceReferences", JsonHelper_EncoderOntologySourceReferences(inv.OntologySourceReferences)]) : empty(), delay(() => append((inv.Publications.length !== 0) ? singleton(["Publications", JsonHelper_EncoderPublications(inv.Publications)]) : empty(), delay(() => append((inv.Contacts.length !== 0) ? singleton(["Contacts", JsonHelper_EncoderPersons(inv.Contacts)]) : empty(), delay(() => append((inv.Assays.length !== 0) ? singleton(["Assays", seq(map(ArcAssay_encoder, inv.Assays))]) : empty(), delay(() => append((inv.Studies.length !== 0) ? singleton(["Studies", seq(map(ArcStudy_encoder, inv.Studies))]) : empty(), delay(() => append((inv.RegisteredStudyIdentifiers.length !== 0) ? singleton(["RegisteredStudyIdentifiers", seq(map((value_5) => (new Json(0, [value_5])), inv.RegisteredStudyIdentifiers))]) : empty(), delay(() => ((inv.Comments.length !== 0) ? singleton(["Comments", JsonHelper_EncoderComments(inv.Comments)]) : empty())))))))))))))))))))))))))]);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
export const ArcInvestigation_decoder = (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
19
|
+
export const ArcInvestigation_decoder = (() => {
|
|
20
|
+
const DecodeAssays = list(ArcAssay_decoder);
|
|
21
|
+
const DecodeStudies = list(ArcStudy_decoder);
|
|
22
|
+
return object((get$_2) => {
|
|
23
|
+
let objectArg, objectArg_1;
|
|
24
|
+
let identifier;
|
|
25
|
+
const objectArg_2 = get$_2.Required;
|
|
26
|
+
identifier = objectArg_2.Field("Identifier", string);
|
|
27
|
+
let title;
|
|
28
|
+
const objectArg_3 = get$_2.Optional;
|
|
29
|
+
title = objectArg_3.Field("Title", string);
|
|
30
|
+
let description;
|
|
31
|
+
const objectArg_4 = get$_2.Optional;
|
|
32
|
+
description = objectArg_4.Field("Description", string);
|
|
33
|
+
let submissionDate;
|
|
34
|
+
const objectArg_5 = get$_2.Optional;
|
|
35
|
+
submissionDate = objectArg_5.Field("SubmissionDate", string);
|
|
36
|
+
let publicReleaseDate;
|
|
37
|
+
const objectArg_6 = get$_2.Optional;
|
|
38
|
+
publicReleaseDate = objectArg_6.Field("PublicReleaseDate", string);
|
|
39
|
+
const ontologySourceReferences = JsonHelper_tryGetOntologySourceReferences(get$_2, "OntologySourceReferences");
|
|
40
|
+
const publications = JsonHelper_tryGetPublications(get$_2, "Publications");
|
|
41
|
+
const contacts = JsonHelper_tryGetPersons(get$_2, "Contacts");
|
|
42
|
+
const assays = defaultArg(map_1((collection) => Array.from(collection), (objectArg = get$_2.Optional, objectArg.Field("Assays", DecodeAssays))), []);
|
|
43
|
+
const studies = defaultArg(map_1((collection_1) => Array.from(collection_1), (objectArg_1 = get$_2.Optional, objectArg_1.Field("Studies", DecodeStudies))), []);
|
|
44
|
+
const registeredStudyIdentifiers = JsonHelper_tryGetStringResizeArray(get$_2, "RegisteredStudyIdentifiers");
|
|
45
|
+
const comments = JsonHelper_tryGetComments(get$_2, "Comments");
|
|
46
|
+
return ArcInvestigation.make(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, []);
|
|
47
|
+
});
|
|
48
|
+
})();
|
|
44
49
|
|
|
45
50
|
/**
|
|
46
51
|
* exports in json-ld format
|
|
47
52
|
*/
|
|
48
|
-
export function
|
|
53
|
+
export function ArcInvestigation_toJsonldString(a) {
|
|
49
54
|
let returnVal;
|
|
50
55
|
return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), a.ToInvestigation()));
|
|
51
56
|
}
|
|
52
57
|
|
|
58
|
+
export function ArcInvestigation_toJsonldStringWithContext(a) {
|
|
59
|
+
let returnVal;
|
|
60
|
+
return toString(2, encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a.ToInvestigation()));
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
export function ArcInvestigation_fromJsonString(s) {
|
|
54
|
-
|
|
64
|
+
let i;
|
|
65
|
+
const matchValue = fromString(decoder_1(ConverterOptions_$ctor()), s);
|
|
66
|
+
if (matchValue.tag === 1) {
|
|
67
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
i = matchValue.fields[0];
|
|
71
|
+
}
|
|
55
72
|
return ArcInvestigation.fromInvestigation(i);
|
|
56
73
|
}
|
|
57
74
|
|
|
@@ -64,22 +81,34 @@ export function ArcInvestigation_toArcJsonString(a) {
|
|
|
64
81
|
}
|
|
65
82
|
|
|
66
83
|
export function ArcInvestigation_fromArcJsonString(jsonString) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
84
|
+
try {
|
|
85
|
+
const matchValue = fromString(ArcInvestigation_decoder, jsonString);
|
|
86
|
+
if (matchValue.tag === 1) {
|
|
87
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return matchValue.fields[0];
|
|
91
|
+
}
|
|
70
92
|
}
|
|
71
|
-
|
|
72
|
-
|
|
93
|
+
catch (e_1) {
|
|
94
|
+
const arg_1 = e_1.message;
|
|
95
|
+
return toFail(printf("Error. Unable to parse json string to ArcInvestigation: %s"))(arg_1);
|
|
73
96
|
}
|
|
74
97
|
}
|
|
75
98
|
|
|
76
99
|
export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_fromArcJsonString_Static_Z721C83C5(jsonString) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
100
|
+
try {
|
|
101
|
+
const matchValue = fromString(ArcInvestigation_decoder, jsonString);
|
|
102
|
+
if (matchValue.tag === 1) {
|
|
103
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
return matchValue.fields[0];
|
|
107
|
+
}
|
|
80
108
|
}
|
|
81
|
-
|
|
82
|
-
|
|
109
|
+
catch (e_1) {
|
|
110
|
+
const arg_1 = e_1.message;
|
|
111
|
+
return toFail(printf("Error. Unable to parse json string to ArcInvestigation: %s"))(arg_1);
|
|
83
112
|
}
|
|
84
113
|
}
|
|
85
114
|
|