@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,71 +1,43 @@
|
|
|
1
1
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../Ontology.js";
|
|
2
2
|
import { ConverterOptions_$ctor } from "../ConverterOptions.js";
|
|
3
|
-
import { empty, singleton } from "../../../fable_modules/fable-library.4.
|
|
3
|
+
import { empty, singleton } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
4
4
|
import { IOType_decoder, IOType_encoder } from "./IOType.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
6
|
+
import { list } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
7
|
+
import { index, string, object } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
8
8
|
import { CompositeHeader } from "../../ISA/ArcTypes/CompositeHeader.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
10
|
+
import { printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
11
|
+
import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
12
|
+
import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
11
13
|
|
|
12
14
|
export function CompositeHeader_encoder(ch) {
|
|
13
15
|
const oaToJsonString = (oa) => OntologyAnnotation_encoder(ConverterOptions_$ctor(), oa);
|
|
14
16
|
const patternInput = (ch.tag === 3) ? ["Parameter", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 2) ? ["Factor", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 1) ? ["Characteristic", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 0) ? ["Component", singleton(oaToJsonString(ch.fields[0]))] : ((ch.tag === 4) ? ["ProtocolType", empty()] : ((ch.tag === 8) ? ["ProtocolREF", empty()] : ((ch.tag === 5) ? ["ProtocolDescription", empty()] : ((ch.tag === 6) ? ["ProtocolUri", empty()] : ((ch.tag === 7) ? ["ProtocolVersion", empty()] : ((ch.tag === 9) ? ["Performer", empty()] : ((ch.tag === 10) ? ["Date", empty()] : ((ch.tag === 11) ? ["Input", singleton(IOType_encoder(ch.fields[0]))] : ((ch.tag === 12) ? ["Output", singleton(IOType_encoder(ch.fields[0]))] : [ch.fields[0], empty()]))))))))))));
|
|
15
|
-
return
|
|
17
|
+
return new Json(5, [[["headertype", new Json(0, [patternInput[0]])], ["values", list(patternInput[1])]]]);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
export const CompositeHeader_decoder = (
|
|
20
|
+
export const CompositeHeader_decoder = object((get$) => {
|
|
19
21
|
let headerType;
|
|
20
22
|
const objectArg = get$.Required;
|
|
21
23
|
headerType = objectArg.Field("headertype", string);
|
|
22
24
|
const oa = () => {
|
|
23
|
-
|
|
24
|
-
const decoder = OntologyAnnotation_decoder(ConverterOptions_$ctor());
|
|
25
|
-
arg_3 = ((path_1) => ((value_1) => index(0, uncurry2(decoder), path_1, value_1)));
|
|
25
|
+
const arg_3 = index(0, OntologyAnnotation_decoder(ConverterOptions_$ctor()));
|
|
26
26
|
const objectArg_1 = get$.Required;
|
|
27
|
-
return objectArg_1.Field("values",
|
|
27
|
+
return objectArg_1.Field("values", arg_3);
|
|
28
28
|
};
|
|
29
29
|
const io = () => {
|
|
30
|
+
const arg_5 = index(0, IOType_decoder);
|
|
30
31
|
const objectArg_2 = get$.Required;
|
|
31
|
-
return objectArg_2.Field("values",
|
|
32
|
+
return objectArg_2.Field("values", arg_5);
|
|
32
33
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return new CompositeHeader(1, [oa()]);
|
|
36
|
-
case "Parameter":
|
|
37
|
-
return new CompositeHeader(3, [oa()]);
|
|
38
|
-
case "Component":
|
|
39
|
-
return new CompositeHeader(0, [oa()]);
|
|
40
|
-
case "Factor":
|
|
41
|
-
return new CompositeHeader(2, [oa()]);
|
|
42
|
-
case "Input":
|
|
43
|
-
return new CompositeHeader(11, [io()]);
|
|
44
|
-
case "Output":
|
|
45
|
-
return new CompositeHeader(12, [io()]);
|
|
46
|
-
case "ProtocolType":
|
|
47
|
-
return new CompositeHeader(4, []);
|
|
48
|
-
case "ProtocolREF":
|
|
49
|
-
return new CompositeHeader(8, []);
|
|
50
|
-
case "ProtocolDescription":
|
|
51
|
-
return new CompositeHeader(5, []);
|
|
52
|
-
case "ProtocolUri":
|
|
53
|
-
return new CompositeHeader(6, []);
|
|
54
|
-
case "ProtocolVersion":
|
|
55
|
-
return new CompositeHeader(7, []);
|
|
56
|
-
case "Performer":
|
|
57
|
-
return new CompositeHeader(9, []);
|
|
58
|
-
case "Date":
|
|
59
|
-
return new CompositeHeader(10, []);
|
|
60
|
-
default:
|
|
61
|
-
return new CompositeHeader(13, [headerType]);
|
|
62
|
-
}
|
|
63
|
-
}, path_3, v));
|
|
34
|
+
return (headerType === "Characteristic") ? (new CompositeHeader(1, [oa()])) : ((headerType === "Parameter") ? (new CompositeHeader(3, [oa()])) : ((headerType === "Component") ? (new CompositeHeader(0, [oa()])) : ((headerType === "Factor") ? (new CompositeHeader(2, [oa()])) : ((headerType === "Input") ? (new CompositeHeader(11, [io()])) : ((headerType === "Output") ? (new CompositeHeader(12, [io()])) : ((headerType === "ProtocolType") ? (new CompositeHeader(4, [])) : ((headerType === "ProtocolREF") ? (new CompositeHeader(8, [])) : ((headerType === "ProtocolDescription") ? (new CompositeHeader(5, [])) : ((headerType === "ProtocolUri") ? (new CompositeHeader(6, [])) : ((headerType === "ProtocolVersion") ? (new CompositeHeader(7, [])) : ((headerType === "Performer") ? (new CompositeHeader(9, [])) : ((headerType === "Date") ? (new CompositeHeader(10, [])) : (new CompositeHeader(13, [headerType]))))))))))))));
|
|
35
|
+
});
|
|
64
36
|
|
|
65
37
|
export function ARCtrl_ISA_CompositeHeader__CompositeHeader_fromJsonString_Static_Z721C83C5(jsonString) {
|
|
66
|
-
const matchValue = fromString(
|
|
38
|
+
const matchValue = fromString(CompositeHeader_decoder, jsonString);
|
|
67
39
|
if (matchValue.tag === 1) {
|
|
68
|
-
|
|
40
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
69
41
|
}
|
|
70
42
|
else {
|
|
71
43
|
return matchValue.fields[0];
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { toString } from "../../../fable_modules/fable-library.4.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { toString } from "../../../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
2
|
+
import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
3
|
+
import { string, succeed, andThen } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
4
4
|
import { IOType } from "../../ISA/ArcTypes/CompositeHeader.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
6
|
+
import { printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
7
|
+
import { toString as toString_1 } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
8
|
+
import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
8
9
|
|
|
9
10
|
export function IOType_encoder(io) {
|
|
10
|
-
return toString(io);
|
|
11
|
+
return new Json(0, [toString(io)]);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
export const IOType_decoder = (
|
|
14
|
-
const output = IOType.ofString(s);
|
|
15
|
-
return (arg10$0040) => ((arg20$0040) => succeed(output, arg10$0040, arg20$0040));
|
|
16
|
-
}), string, path_1, value_1));
|
|
14
|
+
export const IOType_decoder = andThen((s) => succeed(IOType.ofString(s)), string);
|
|
17
15
|
|
|
18
16
|
export function ARCtrl_ISA_IOType__IOType_fromJsonString_Static_Z721C83C5(jsonString) {
|
|
19
|
-
const matchValue = fromString(
|
|
17
|
+
const matchValue = fromString(IOType_decoder, jsonString);
|
|
20
18
|
if (matchValue.tag === 1) {
|
|
21
|
-
|
|
19
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
22
20
|
}
|
|
23
21
|
else {
|
|
24
22
|
return matchValue.fields[0];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { sortBy, map, toArray } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
2
|
+
import { comparePrimitives } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
3
|
+
import { item, map as map_1 } from "../../../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
4
|
+
import { ConverterOptions_$ctor } from "../ConverterOptions.js";
|
|
5
|
+
import { OntologyAnnotation_compressedDecoder, OntologyAnnotation_compressedEncoder } from "../Ontology.js";
|
|
6
|
+
import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
7
|
+
import { int, object, array as array_1 } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
8
|
+
import { Dict_tryFind } from "../../ISA/Helper.js";
|
|
9
|
+
import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
10
|
+
|
|
11
|
+
export function OATable_arrayFromMap(otm) {
|
|
12
|
+
return toArray(map((kv_1) => kv_1[0], sortBy((kv) => kv[1], otm, {
|
|
13
|
+
Compare: comparePrimitives,
|
|
14
|
+
})));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function OATable_encoder(stringTable, ot) {
|
|
18
|
+
let options;
|
|
19
|
+
return new Json(6, [map_1((options = ConverterOptions_$ctor(), (oa) => OntologyAnnotation_compressedEncoder(stringTable, options, oa)), ot)]);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function OATable_decoder(stringTable) {
|
|
23
|
+
return array_1(OntologyAnnotation_compressedDecoder(stringTable, ConverterOptions_$ctor()));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function OATable_encodeOA(otm, oa) {
|
|
27
|
+
const matchValue = Dict_tryFind(oa, otm);
|
|
28
|
+
if (matchValue == null) {
|
|
29
|
+
const i_1 = otm.size | 0;
|
|
30
|
+
addToDict(otm, oa, i_1);
|
|
31
|
+
return new Json(7, [i_1 >>> 0]);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
const i = matchValue | 0;
|
|
35
|
+
return new Json(7, [i >>> 0]);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function OATable_decodeOA(ot) {
|
|
40
|
+
return object((get$) => item(get$.Required.Raw(int), ot));
|
|
41
|
+
}
|
|
42
|
+
|
package/ISA/ISA.Json/Assay.js
CHANGED
|
@@ -1,37 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { tryInclude } from "./GEncode.js";
|
|
1
|
+
import { ofArray, choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
2
|
+
import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
3
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
4
|
+
import { tryInclude, tryIncludeList } from "./GEncode.js";
|
|
5
5
|
import { Data_decoder, Data_encoder, Sample_decoder, Sample_encoder } from "./Data.js";
|
|
6
6
|
import { MaterialAttribute_decoder, MaterialAttribute_encoder, Material_decoder, Material_encoder } from "./Material.js";
|
|
7
|
-
import {
|
|
7
|
+
import { uri, object } from "./Decode.js";
|
|
8
|
+
import { string, list as list_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
8
9
|
import { AssayMaterials } from "../ISA/JsonTypes/AssayMaterials.js";
|
|
10
|
+
import { printf, toText, replace, remove } from "../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
11
|
+
import { max } from "../../fable_modules/fable-library-js.4.13.0/Double.js";
|
|
9
12
|
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
13
|
+
import { Operators_FailurePattern } from "../../fable_modules/fable-library-js.4.13.0/FSharp.Core.js";
|
|
14
|
+
import { Assay_identifierFromFileName } from "../ISA/Identifier.js";
|
|
15
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
16
|
+
import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeContext, ConverterOptions__get_IsRoCrate, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
17
|
+
import { list as list_2 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
12
18
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
|
|
13
19
|
import { Process_decoder, Process_encoder } from "./Process.js";
|
|
14
|
-
import { decoder as
|
|
15
|
-
import {
|
|
20
|
+
import { decoder as decoder_1, encoder } from "./Comment.js";
|
|
21
|
+
import { context_jsonvalue } from "./context/rocrate/isa_assay_context.js";
|
|
16
22
|
import { Assay } from "../ISA/JsonTypes/Assay.js";
|
|
23
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
24
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
17
25
|
|
|
18
26
|
export function AssayMaterials_encoder(options, oa) {
|
|
19
|
-
return
|
|
27
|
+
return new Json(5, [choose((tupledArg) => {
|
|
20
28
|
const v = tupledArg[1];
|
|
21
|
-
if (equals(v,
|
|
29
|
+
if (equals(v, new Json(3, []))) {
|
|
22
30
|
return void 0;
|
|
23
31
|
}
|
|
24
32
|
else {
|
|
25
33
|
return [tupledArg[0], v];
|
|
26
34
|
}
|
|
27
|
-
}, ofArray([
|
|
35
|
+
}, ofArray([tryIncludeList("samples", (oa_1) => Sample_encoder(options, oa_1), oa.Samples), tryIncludeList("otherMaterials", (oa_2) => Material_encoder(options, oa_2), oa.OtherMaterials)]))]);
|
|
28
36
|
}
|
|
29
37
|
|
|
38
|
+
export const AssayMaterials_allowedFields = ofArray(["samples", "otherMaterials"]);
|
|
39
|
+
|
|
30
40
|
export function AssayMaterials_decoder(options) {
|
|
31
|
-
return (
|
|
32
|
-
let objectArg, objectArg_1;
|
|
33
|
-
return new AssayMaterials((objectArg = get$.Optional, objectArg.Field("samples",
|
|
34
|
-
}
|
|
41
|
+
return object(AssayMaterials_allowedFields, (get$) => {
|
|
42
|
+
let arg_1, objectArg, arg_3, objectArg_1;
|
|
43
|
+
return new AssayMaterials((arg_1 = list_1(Sample_decoder(options)), (objectArg = get$.Optional, objectArg.Field("samples", arg_1))), (arg_3 = list_1(Material_decoder(options)), (objectArg_1 = get$.Optional, objectArg_1.Field("otherMaterials", arg_3))));
|
|
44
|
+
});
|
|
35
45
|
}
|
|
36
46
|
|
|
37
47
|
export function Assay_genID(a) {
|
|
@@ -42,7 +52,8 @@ export function Assay_genID(a) {
|
|
|
42
52
|
return "#EmptyAssay";
|
|
43
53
|
}
|
|
44
54
|
else {
|
|
45
|
-
|
|
55
|
+
const n = matchValue_1;
|
|
56
|
+
return remove(replace(n, " ", "_"), 0, 1 + max(n.lastIndexOf("/"), n.lastIndexOf("\\")));
|
|
46
57
|
}
|
|
47
58
|
}
|
|
48
59
|
else {
|
|
@@ -50,56 +61,69 @@ export function Assay_genID(a) {
|
|
|
50
61
|
}
|
|
51
62
|
}
|
|
52
63
|
|
|
53
|
-
export function Assay_encoder(options, oa) {
|
|
54
|
-
|
|
64
|
+
export function Assay_encoder(options, studyName, oa) {
|
|
65
|
+
let assayName;
|
|
66
|
+
try {
|
|
67
|
+
const matchValue = oa.FileName;
|
|
68
|
+
assayName = ((matchValue == null) ? void 0 : Assay_identifierFromFileName(matchValue));
|
|
69
|
+
}
|
|
70
|
+
catch (matchValue_1) {
|
|
71
|
+
const activePatternResult = Operators_FailurePattern(matchValue_1);
|
|
72
|
+
if (activePatternResult != null) {
|
|
73
|
+
const msg = activePatternResult;
|
|
74
|
+
assayName = void 0;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
throw matchValue_1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return new Json(5, [choose((tupledArg) => {
|
|
55
81
|
const v = tupledArg[1];
|
|
56
|
-
if (equals(v,
|
|
82
|
+
if (equals(v, new Json(3, []))) {
|
|
57
83
|
return void 0;
|
|
58
84
|
}
|
|
59
85
|
else {
|
|
60
86
|
return [tupledArg[0], v];
|
|
61
87
|
}
|
|
62
|
-
}, toList(delay(() => {
|
|
63
|
-
let
|
|
64
|
-
return append(
|
|
65
|
-
|
|
66
|
-
const value_3 = value_2;
|
|
67
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
68
|
-
}, oa["ID"])), delay(() => {
|
|
69
|
-
let value_5, s_2;
|
|
70
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Assay", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("filename", (value_7) => {
|
|
71
|
-
let s_3;
|
|
72
|
-
const value_8 = value_7;
|
|
73
|
-
return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
|
|
74
|
-
}, oa["FileName"])), delay(() => append(singleton(tryInclude("measurementType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa["MeasurementType"])), delay(() => append(singleton(tryInclude("technologyType", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa["TechnologyType"])), delay(() => append(singleton(tryInclude("technologyPlatform", (value_10) => {
|
|
75
|
-
let s_4;
|
|
76
|
-
const value_11 = value_10;
|
|
77
|
-
return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
|
|
78
|
-
}, oa["TechnologyPlatform"])), delay(() => append(singleton(tryInclude("dataFiles", (oa_3) => Data_encoder(options, oa_3), oa["DataFiles"])), delay(() => append(singleton(tryInclude("materials", (oa_4) => AssayMaterials_encoder(options, oa_4), oa["Materials"])), delay(() => append(singleton(tryInclude("characteristicCategories", (oa_5) => MaterialAttribute_encoder(options, oa_5), oa["CharacteristicCategories"])), delay(() => append(singleton(tryInclude("unitCategories", (oa_6) => OntologyAnnotation_encoder(options, oa_6), oa["UnitCategories"])), delay(() => append(singleton(tryInclude("processSequence", (oa_7) => Process_encoder(options, oa_7), oa["ProcessSequence"])), delay(() => singleton(tryInclude("comments", (comment) => encoder(options, comment), oa["Comments"]))))))))))))))))))))));
|
|
79
|
-
}));
|
|
80
|
-
}))));
|
|
88
|
+
}, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [Assay_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_2(ofArray([new Json(0, ["Assay"]), new Json(0, ["ArcAssay"])]))]) : empty(), delay(() => append(singleton(tryInclude("filename", (value_5) => (new Json(0, [value_5])), oa.FileName)), delay(() => append(singleton(tryInclude("measurementType", (oa_1) => OntologyAnnotation_encoder(options, oa_1), oa.MeasurementType)), delay(() => append(singleton(tryInclude("technologyType", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa.TechnologyType)), delay(() => append(singleton(tryInclude("technologyPlatform", (value_7) => (new Json(0, [value_7])), oa.TechnologyPlatform)), delay(() => append(singleton(tryIncludeList("dataFiles", (oa_3) => Data_encoder(options, oa_3), oa.DataFiles)), delay(() => {
|
|
89
|
+
let matchValue_2, m;
|
|
90
|
+
return append(ConverterOptions__get_IsRoCrate(options) ? ((matchValue_2 = oa.Materials, (matchValue_2 == null) ? (empty()) : ((m = matchValue_2, append(singleton(tryIncludeList("samples", (oa_4) => Sample_encoder(options, oa_4), m.Samples)), delay(() => singleton(tryIncludeList("materials", (oa_5) => Material_encoder(options, oa_5), m.OtherMaterials)))))))) : empty(), delay(() => append(!ConverterOptions__get_IsRoCrate(options) ? singleton(tryInclude("materials", (oa_6) => AssayMaterials_encoder(options, oa_6), oa.Materials)) : empty(), delay(() => append(singleton(tryIncludeList("characteristicCategories", (oa_7) => MaterialAttribute_encoder(options, oa_7), oa.CharacteristicCategories)), delay(() => append(singleton(tryIncludeList("unitCategories", (oa_8) => OntologyAnnotation_encoder(options, oa_8), oa.UnitCategories)), delay(() => append(singleton(tryIncludeList("processSequence", (oa_9) => Process_encoder(options, studyName, assayName, oa_9), oa.ProcessSequence)), delay(() => append(singleton(tryIncludeList("comments", (comment) => encoder(options, comment), oa.Comments)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty())))))))))))));
|
|
91
|
+
})))))))))))))))))]);
|
|
81
92
|
}
|
|
82
93
|
|
|
94
|
+
export const Assay_allowedFields = ofArray(["@id", "filename", "measurementType", "technologyType", "technologyPlatform", "dataFiles", "materials", "characteristicCategories", "unitCategories", "processSequence", "comments", "@type", "@context"]);
|
|
95
|
+
|
|
83
96
|
export function Assay_decoder(options) {
|
|
84
|
-
return (
|
|
85
|
-
let objectArg, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15,
|
|
86
|
-
return new Assay((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("filename", string)), (arg_5 = OntologyAnnotation_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("measurementType",
|
|
87
|
-
}
|
|
97
|
+
return object(Assay_allowedFields, (get$) => {
|
|
98
|
+
let objectArg, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, objectArg_4, arg_11, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
99
|
+
return new Assay((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("filename", string)), (arg_5 = OntologyAnnotation_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("measurementType", arg_5))), (arg_7 = OntologyAnnotation_decoder(options), (objectArg_3 = get$.Optional, objectArg_3.Field("technologyType", arg_7))), (objectArg_4 = get$.Optional, objectArg_4.Field("technologyPlatform", string)), (arg_11 = list_1(Data_decoder(options)), (objectArg_5 = get$.Optional, objectArg_5.Field("dataFiles", arg_11))), (arg_13 = AssayMaterials_decoder(options), (objectArg_6 = get$.Optional, objectArg_6.Field("materials", arg_13))), (arg_15 = list_1(MaterialAttribute_decoder(options)), (objectArg_7 = get$.Optional, objectArg_7.Field("characteristicCategories", arg_15))), (arg_17 = list_1(OntologyAnnotation_decoder(options)), (objectArg_8 = get$.Optional, objectArg_8.Field("unitCategories", arg_17))), (arg_19 = list_1(Process_decoder(options)), (objectArg_9 = get$.Optional, objectArg_9.Field("processSequence", arg_19))), (arg_21 = list_1(decoder_1(options)), (objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21))));
|
|
100
|
+
});
|
|
88
101
|
}
|
|
89
102
|
|
|
90
103
|
export function Assay_fromJsonString(s) {
|
|
91
|
-
|
|
104
|
+
const matchValue = fromString(Assay_decoder(ConverterOptions_$ctor()), s);
|
|
105
|
+
if (matchValue.tag === 1) {
|
|
106
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
return matchValue.fields[0];
|
|
110
|
+
}
|
|
92
111
|
}
|
|
93
112
|
|
|
94
113
|
export function Assay_toJsonString(p) {
|
|
95
|
-
return toString(2, Assay_encoder(ConverterOptions_$ctor(), p));
|
|
114
|
+
return toString(2, Assay_encoder(ConverterOptions_$ctor(), void 0, p));
|
|
96
115
|
}
|
|
97
116
|
|
|
98
117
|
/**
|
|
99
118
|
* exports in json-ld format
|
|
100
119
|
*/
|
|
101
|
-
export function
|
|
120
|
+
export function Assay_toJsonldString(a) {
|
|
121
|
+
let returnVal;
|
|
122
|
+
return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), void 0, a));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function Assay_toJsonldStringWithContext(a) {
|
|
102
126
|
let returnVal;
|
|
103
|
-
return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), a));
|
|
127
|
+
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));
|
|
104
128
|
}
|
|
105
129
|
|
package/ISA/ISA.Json/Comment.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { replace } from "../../fable_modules/fable-library.4.
|
|
2
|
-
import { value as
|
|
1
|
+
import { printf, toText, replace } from "../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
2
|
+
import { value as value_8 } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
3
3
|
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.
|
|
8
|
-
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
4
|
+
import { choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
5
|
+
import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
6
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
7
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
8
|
+
import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeContext, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
9
9
|
import { tryInclude } from "./GEncode.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { context_jsonvalue } from "./context/rocrate/isa_comment_context.js";
|
|
11
|
+
import { string, object } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
12
|
+
import { uri } from "./Decode.js";
|
|
12
13
|
import { Comment$ } from "../ISA/JsonTypes/Comment.js";
|
|
14
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
15
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
13
16
|
|
|
14
17
|
export function genID(c) {
|
|
15
18
|
const matchValue = c.ID;
|
|
@@ -20,7 +23,7 @@ export function genID(c) {
|
|
|
20
23
|
}
|
|
21
24
|
else {
|
|
22
25
|
const n = matchValue_1;
|
|
23
|
-
const v = (c.Value != null) ? ("_" + replace(
|
|
26
|
+
const v = (c.Value != null) ? ("_" + replace(value_8(c.Value), " ", "_")) : "";
|
|
24
27
|
return ("#Comment_" + replace(n, " ", "_")) + v;
|
|
25
28
|
}
|
|
26
29
|
}
|
|
@@ -30,44 +33,32 @@ export function genID(c) {
|
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
export function encoder(options, comment) {
|
|
33
|
-
return
|
|
36
|
+
return new Json(5, [choose((tupledArg) => {
|
|
34
37
|
const v = tupledArg[1];
|
|
35
|
-
if (equals(v,
|
|
38
|
+
if (equals(v, new Json(3, []))) {
|
|
36
39
|
return void 0;
|
|
37
40
|
}
|
|
38
41
|
else {
|
|
39
42
|
return [tupledArg[0], v];
|
|
40
43
|
}
|
|
41
|
-
}, toList(delay(() =>
|
|
42
|
-
let value, s;
|
|
43
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = genID(comment), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
44
|
-
let s_1;
|
|
45
|
-
const value_3 = value_2;
|
|
46
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
47
|
-
}, comment["ID"])), delay(() => {
|
|
48
|
-
let value_5, s_2;
|
|
49
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Comment", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("name", (value_7) => {
|
|
50
|
-
let s_3;
|
|
51
|
-
const value_8 = value_7;
|
|
52
|
-
return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
|
|
53
|
-
}, comment["Name"])), delay(() => singleton(tryInclude("value", (value_10) => {
|
|
54
|
-
let s_4;
|
|
55
|
-
const value_11 = value_10;
|
|
56
|
-
return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
|
|
57
|
-
}, comment["Value"]))))));
|
|
58
|
-
}));
|
|
59
|
-
}))));
|
|
44
|
+
}, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [genID(comment)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), comment.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", new Json(0, ["Comment"])]) : empty(), delay(() => append(singleton(tryInclude("name", (value_4) => (new Json(0, [value_4])), comment.Name)), delay(() => append(singleton(tryInclude("value", (value_6) => (new Json(0, [value_6])), comment.Value)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty()))))))))))))]);
|
|
60
45
|
}
|
|
61
46
|
|
|
62
47
|
export function decoder(options) {
|
|
63
|
-
return (
|
|
48
|
+
return object((get$) => {
|
|
64
49
|
let objectArg, objectArg_1, objectArg_2;
|
|
65
50
|
return new Comment$((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("value", string)));
|
|
66
|
-
}
|
|
51
|
+
});
|
|
67
52
|
}
|
|
68
53
|
|
|
69
54
|
export function fromJsonString(s) {
|
|
70
|
-
|
|
55
|
+
const matchValue = fromString(decoder(ConverterOptions_$ctor()), s);
|
|
56
|
+
if (matchValue.tag === 1) {
|
|
57
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return matchValue.fields[0];
|
|
61
|
+
}
|
|
71
62
|
}
|
|
72
63
|
|
|
73
64
|
export function toJsonString(c) {
|
|
@@ -77,8 +68,13 @@ export function toJsonString(c) {
|
|
|
77
68
|
/**
|
|
78
69
|
* exports in json-ld format
|
|
79
70
|
*/
|
|
80
|
-
export function
|
|
71
|
+
export function toJsonldString(c) {
|
|
81
72
|
let returnVal;
|
|
82
73
|
return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), c));
|
|
83
74
|
}
|
|
84
75
|
|
|
76
|
+
export function toJsonldStringWithContext(a) {
|
|
77
|
+
let returnVal;
|
|
78
|
+
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));
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { class_type } from "../../fable_modules/fable-library.4.
|
|
1
|
+
import { class_type } from "../../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
2
2
|
|
|
3
3
|
export class ConverterOptions {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.setID = false;
|
|
6
6
|
this.includeType = false;
|
|
7
|
+
this.includeContext = false;
|
|
8
|
+
this.isRoCrate = false;
|
|
7
9
|
}
|
|
8
10
|
}
|
|
9
11
|
|
|
@@ -31,3 +33,19 @@ export function ConverterOptions__set_IncludeType_Z1FBCCD16(this$, iT) {
|
|
|
31
33
|
this$.includeType = iT;
|
|
32
34
|
}
|
|
33
35
|
|
|
36
|
+
export function ConverterOptions__get_IncludeContext(this$) {
|
|
37
|
+
return this$.includeContext;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ConverterOptions__set_IncludeContext_Z1FBCCD16(this$, iC) {
|
|
41
|
+
this$.includeContext = iC;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ConverterOptions__get_IsRoCrate(this$) {
|
|
45
|
+
return this$.isRoCrate;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ConverterOptions__set_IsRoCrate_Z1FBCCD16(this$, iR) {
|
|
49
|
+
this$.isRoCrate = iR;
|
|
50
|
+
}
|
|
51
|
+
|