@nfdi4plants/arctrl 1.1.0 → 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 +9 -9
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcTypes.js +11 -11
- 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 +19 -19
- package/ISA/ISA/ArcTypes/ArcTableAux.js +16 -16
- package/ISA/ISA/ArcTypes/ArcTables.js +11 -11
- package/ISA/ISA/ArcTypes/ArcTypes.js +10 -10
- 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 +105 -84
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +78 -49
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +74 -41
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +112 -71
- package/ISA/ISA.Json/ArcTypes/CellTable.js +13 -19
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +23 -38
- 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 +13 -19
- 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 +86 -109
- 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 +25 -24
- 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 +5 -5
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +8 -8
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/ISA/ISA.Spreadsheet/ArcAssay.js +5 -5
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +10 -10
- package/ISA/ISA.Spreadsheet/ArcStudy.js +5 -5
- 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 +21 -16
- 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 +10 -10
- 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.3/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
- 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/{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,126 +1,167 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { toArray, collect, empty, map, singleton, append, delay, toList } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
2
|
+
import { ErrorReason$1, Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
3
|
+
import { tuple2, map as map_1, list } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
3
4
|
import { CompositeHeader_decoder, CompositeHeader_encoder } from "./CompositeHeader.js";
|
|
4
5
|
import { CompositeCell_decoder, CompositeCell_encoder } from "./CompositeCell.js";
|
|
5
|
-
import { empty as empty_2, ofSeq } from "../../../fable_modules/fable-library.4.
|
|
6
|
-
import { safeHash, equals, arrayHash, equalArrays,
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { empty as empty_1 } from "../../../fable_modules/fable-library.4.
|
|
10
|
-
import { Dictionary } from "../../../fable_modules/fable-library.4.
|
|
6
|
+
import { empty as empty_2, ofSeq } from "../../../fable_modules/fable-library-js.4.13.0/Map.js";
|
|
7
|
+
import { safeHash, int32ToString, equals, arrayHash, equalArrays, compareArrays } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
8
|
+
import { Helpers_prependPath, array as array_1, string, int, tuple2 as tuple2_1, map$0027, list as list_1, object } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
9
|
+
import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
10
|
+
import { empty as empty_1 } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
11
|
+
import { Dictionary } from "../../../fable_modules/fable-library-js.4.13.0/MutableMap.js";
|
|
11
12
|
import { ArcTable } from "../../ISA/ArcTypes/ArcTable.js";
|
|
12
13
|
import { CellTable_arrayFromMap, CellTable_encoder, CellTable_decoder, CellTable_decodeCell, CellTable_encodeCell } from "./CellTable.js";
|
|
13
|
-
import { addToDict, getItemFromDict } from "../../../fable_modules/fable-library.4.
|
|
14
|
-
import { rangeDouble } from "../../../fable_modules/fable-library.4.
|
|
15
|
-
import {
|
|
14
|
+
import { addToDict, getItemFromDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
15
|
+
import { rangeDouble } from "../../../fable_modules/fable-library-js.4.13.0/Range.js";
|
|
16
|
+
import { FSharpResult$2 } from "../../../fable_modules/fable-library-js.4.13.0/Result.js";
|
|
17
|
+
import { fill, setItem, fold, iterateIndexed } from "../../../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
16
18
|
import { StringTable_arrayFromMap, StringTable_encoder, StringTable_decoder, StringTable_decodeString, StringTable_encodeString } from "../StringTable.js";
|
|
17
|
-
import {
|
|
19
|
+
import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
20
|
+
import { printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
21
|
+
import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
18
22
|
import { OATable_arrayFromMap, OATable_encoder, OATable_decoder } from "./OATable.js";
|
|
19
23
|
|
|
20
24
|
export function ArcTable_encoder(table) {
|
|
21
|
-
return
|
|
25
|
+
return new Json(5, [toList(delay(() => append(singleton(["name", new Json(0, [table.Name])]), delay(() => append((table.Headers.length !== 0) ? singleton(["header", list(toList(delay(() => map(CompositeHeader_encoder, table.Headers))))]) : empty(), delay(() => ((table.Values.size !== 0) ? singleton(["values", map_1((tupledArg) => tuple2((value) => (new Json(7, [value >>> 0])), (value_2) => (new Json(7, [value_2 >>> 0])), tupledArg[0], tupledArg[1]), CompositeCell_encoder, ofSeq(toList(delay(() => collect((matchValue) => {
|
|
22
26
|
const activePatternResult = matchValue;
|
|
23
27
|
return singleton([activePatternResult[0], activePatternResult[1]]);
|
|
24
28
|
}, table.Values))), {
|
|
25
29
|
Compare: compareArrays,
|
|
26
|
-
}))]) : empty()))))))));
|
|
30
|
+
}))]) : empty())))))))]);
|
|
27
31
|
}
|
|
28
32
|
|
|
29
|
-
export const ArcTable_decoder = (
|
|
30
|
-
let objectArg,
|
|
33
|
+
export const ArcTable_decoder = object((get$) => {
|
|
34
|
+
let arg_1, objectArg, arg_3, objectArg_1, objectArg_2;
|
|
31
35
|
let decodedHeader;
|
|
32
|
-
const collection = defaultArg((objectArg = get$.Optional, objectArg.Field("header",
|
|
36
|
+
const collection = defaultArg((arg_1 = list_1(CompositeHeader_decoder), (objectArg = get$.Optional, objectArg.Field("header", arg_1))), empty_1());
|
|
33
37
|
decodedHeader = Array.from(collection);
|
|
34
|
-
const decodedValues = new Dictionary(defaultArg((
|
|
35
|
-
const clo = CompositeCell_decoder(arg_2);
|
|
36
|
-
return clo;
|
|
37
|
-
})), (objectArg_1 = get$.Optional, objectArg_1.Field("values", uncurry2(arg_5)))), empty_2({
|
|
38
|
+
const decodedValues = new Dictionary(defaultArg((arg_3 = map$0027(tuple2_1(int, int), CompositeCell_decoder), (objectArg_1 = get$.Optional, objectArg_1.Field("values", arg_3))), empty_2({
|
|
38
39
|
Compare: compareArrays,
|
|
39
40
|
})), {
|
|
40
41
|
Equals: equalArrays,
|
|
41
42
|
GetHashCode: arrayHash,
|
|
42
43
|
});
|
|
43
44
|
return ArcTable.create((objectArg_2 = get$.Required, objectArg_2.Field("name", string)), decodedHeader, decodedValues);
|
|
44
|
-
}
|
|
45
|
+
});
|
|
45
46
|
|
|
46
47
|
export function ArcTable_compressedColumnEncoder(columnIndex, rowCount, cellTable, table) {
|
|
47
48
|
if (table.Headers[columnIndex].IsIOType ? true : (rowCount < 100)) {
|
|
48
|
-
return toArray(delay(() => map((r) => CellTable_encodeCell(cellTable, getItemFromDict(table.Values, [columnIndex, r])), rangeDouble(0, 1, rowCount - 1))));
|
|
49
|
+
return new Json(6, [toArray(delay(() => map((r) => CellTable_encodeCell(cellTable, getItemFromDict(table.Values, [columnIndex, r])), rangeDouble(0, 1, rowCount - 1))))]);
|
|
49
50
|
}
|
|
50
51
|
else {
|
|
51
52
|
let current = getItemFromDict(table.Values, [columnIndex, 0]);
|
|
52
53
|
let from = 0;
|
|
53
|
-
return toArray(delay(() => append(collect((i) => {
|
|
54
|
+
return new Json(6, [toArray(delay(() => append(collect((i) => {
|
|
55
|
+
let value, value_1;
|
|
54
56
|
const next = getItemFromDict(table.Values, [columnIndex, i]);
|
|
55
|
-
return !equals(next, current) ? append(singleton(
|
|
57
|
+
return !equals(next, current) ? append(singleton(new Json(5, [[["f", (value = (from | 0), new Json(7, [value >>> 0]))], ["t", (value_1 = ((i - 1) | 0), new Json(7, [value_1 >>> 0]))], ["v", CellTable_encodeCell(cellTable, current)]]])), delay(() => {
|
|
56
58
|
current = next;
|
|
57
59
|
from = (i | 0);
|
|
58
60
|
return empty();
|
|
59
61
|
})) : empty();
|
|
60
|
-
}, rangeDouble(1, 1, rowCount - 1)), delay(() =>
|
|
62
|
+
}, rangeDouble(1, 1, rowCount - 1)), delay(() => {
|
|
63
|
+
let value_2, value_3;
|
|
64
|
+
return singleton(new Json(5, [[["f", (value_2 = (from | 0), new Json(7, [value_2 >>> 0]))], ["t", (value_3 = ((rowCount - 1) | 0), new Json(7, [value_3 >>> 0]))], ["v", CellTable_encodeCell(cellTable, current)]]]));
|
|
65
|
+
}))))]);
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
export function ArcTable_compressedColumnDecoder(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
export function ArcTable_compressedColumnDecoder(cellTable, table, columnIndex) {
|
|
70
|
+
return {
|
|
71
|
+
Decode(helper, column) {
|
|
72
|
+
const matchValue = array_1(CellTable_decodeCell(cellTable)).Decode(helper, column);
|
|
73
|
+
if (matchValue.tag === 1) {
|
|
74
|
+
const rangeDecoder = object((get$) => {
|
|
75
|
+
let from;
|
|
76
|
+
const objectArg = get$.Required;
|
|
77
|
+
from = objectArg.Field("f", int);
|
|
78
|
+
let to_;
|
|
79
|
+
const objectArg_1 = get$.Required;
|
|
80
|
+
to_ = objectArg_1.Field("t", int);
|
|
81
|
+
let value;
|
|
82
|
+
const arg_5 = CellTable_decodeCell(cellTable);
|
|
83
|
+
const objectArg_2 = get$.Required;
|
|
84
|
+
value = objectArg_2.Field("v", arg_5);
|
|
85
|
+
for (let i = from; i <= to_; i++) {
|
|
86
|
+
addToDict(table.Values, [columnIndex, i], value);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
const matchValue_1 = array_1(rangeDecoder).Decode(helper, column);
|
|
90
|
+
return (matchValue_1.tag === 1) ? (new FSharpResult$2(1, [matchValue_1.fields[0]])) : (new FSharpResult$2(0, [void 0]));
|
|
79
91
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
92
|
+
else {
|
|
93
|
+
iterateIndexed((r, cell) => {
|
|
94
|
+
addToDict(table.Values, [columnIndex, r], cell);
|
|
95
|
+
}, matchValue.fields[0]);
|
|
96
|
+
return new FSharpResult$2(0, [void 0]);
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function ArcTable_arrayi(decoderi) {
|
|
103
|
+
return {
|
|
104
|
+
Decode(helpers, value) {
|
|
105
|
+
if (helpers.isArray(value)) {
|
|
106
|
+
let i = -1;
|
|
107
|
+
const tokens = helpers.asArray(value);
|
|
108
|
+
return fold((acc, value_1) => {
|
|
109
|
+
let tupledArg;
|
|
110
|
+
i = ((i + 1) | 0);
|
|
111
|
+
if (acc.tag === 0) {
|
|
112
|
+
const acc_1 = acc.fields[0];
|
|
113
|
+
const matchValue = decoderi(i).Decode(helpers, value_1);
|
|
114
|
+
if (matchValue.tag === 0) {
|
|
115
|
+
setItem(acc_1, i, matchValue.fields[0]);
|
|
116
|
+
return new FSharpResult$2(0, [acc_1]);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
return new FSharpResult$2(1, [(tupledArg = matchValue.fields[0], Helpers_prependPath((".[" + int32ToString(i)) + "]", tupledArg[0], tupledArg[1]))]);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
return acc;
|
|
124
|
+
}
|
|
125
|
+
}, new FSharpResult$2(0, [fill(new Array(tokens.length), 0, tokens.length, null)]), tokens);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
return new FSharpResult$2(1, [["", new ErrorReason$1(0, ["an array", value])]]);
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
};
|
|
87
132
|
}
|
|
88
133
|
|
|
89
134
|
export function ArcTable_compressedEncoder(stringTable, oaTable, cellTable, table) {
|
|
90
|
-
return
|
|
135
|
+
return new Json(5, [toList(delay(() => append(singleton(["n", StringTable_encodeString(stringTable, table.Name)]), delay(() => append((table.Headers.length !== 0) ? singleton(["h", list(toList(delay(() => map(CompositeHeader_encoder, table.Headers))))]) : empty(), delay(() => {
|
|
91
136
|
if (table.Values.size !== 0) {
|
|
92
137
|
const rowCount = table.RowCount | 0;
|
|
93
|
-
return singleton(["c", toArray(delay(() => map((c) => ArcTable_compressedColumnEncoder(c, rowCount, cellTable, table), rangeDouble(0, 1, table.ColumnCount - 1))))]);
|
|
138
|
+
return singleton(["c", new Json(6, [toArray(delay(() => map((c) => ArcTable_compressedColumnEncoder(c, rowCount, cellTable, table), rangeDouble(0, 1, table.ColumnCount - 1))))])]);
|
|
94
139
|
}
|
|
95
140
|
else {
|
|
96
141
|
return empty();
|
|
97
142
|
}
|
|
98
|
-
})))))));
|
|
143
|
+
}))))))]);
|
|
99
144
|
}
|
|
100
145
|
|
|
101
146
|
export function ArcTable_compressedDecoder(stringTable, oaTable, cellTable) {
|
|
102
|
-
return (
|
|
103
|
-
let objectArg, objectArg_1, objectArg_2;
|
|
147
|
+
return object((get$) => {
|
|
148
|
+
let arg_1, objectArg, arg_3, objectArg_1, arg_5, objectArg_2;
|
|
104
149
|
let decodedHeader;
|
|
105
|
-
const collection = defaultArg((objectArg = get$.Optional, objectArg.Field("h",
|
|
150
|
+
const collection = defaultArg((arg_1 = list_1(CompositeHeader_decoder), (objectArg = get$.Optional, objectArg.Field("h", arg_1))), empty_1());
|
|
106
151
|
decodedHeader = Array.from(collection);
|
|
107
|
-
const table = ArcTable.create((objectArg_1 = get$.Required, objectArg_1.Field("n",
|
|
152
|
+
const table = ArcTable.create((arg_3 = StringTable_decodeString(stringTable), (objectArg_1 = get$.Required, objectArg_1.Field("n", arg_3))), decodedHeader, new Dictionary([], {
|
|
108
153
|
Equals: equalArrays,
|
|
109
154
|
GetHashCode: arrayHash,
|
|
110
155
|
}));
|
|
111
|
-
|
|
112
|
-
iterateIndexed((c, col) => {
|
|
113
|
-
ArcTable_compressedColumnDecoder(c, cellTable, table, col);
|
|
114
|
-
}, array);
|
|
115
|
-
}, toArray_1((objectArg_2 = get$.Optional, objectArg_2.Field("c", (path_1, value_2) => array_1(value_5, path_1, value_2)))));
|
|
156
|
+
(arg_5 = ArcTable_arrayi((columnIndex) => ArcTable_compressedColumnDecoder(cellTable, table, columnIndex)), (objectArg_2 = get$.Optional, objectArg_2.Field("c", arg_5)));
|
|
116
157
|
return table;
|
|
117
|
-
}
|
|
158
|
+
});
|
|
118
159
|
}
|
|
119
160
|
|
|
120
161
|
export function ARCtrl_ISA_ArcTable__ArcTable_fromJsonString_Static_Z721C83C5(jsonString) {
|
|
121
|
-
const matchValue = fromString(
|
|
162
|
+
const matchValue = fromString(ArcTable_decoder, jsonString);
|
|
122
163
|
if (matchValue.tag === 1) {
|
|
123
|
-
|
|
164
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
124
165
|
}
|
|
125
166
|
else {
|
|
126
167
|
return matchValue.fields[0];
|
|
@@ -136,21 +177,21 @@ export function ARCtrl_ISA_ArcTable__ArcTable_toJsonString_Static_1B2566EA(a) {
|
|
|
136
177
|
}
|
|
137
178
|
|
|
138
179
|
export function ARCtrl_ISA_ArcTable__ArcTable_fromCompressedJsonString_Static_Z721C83C5(jsonString) {
|
|
139
|
-
const matchValue = fromString((
|
|
180
|
+
const matchValue = fromString(object((get$) => {
|
|
140
181
|
let arg_5, objectArg_2;
|
|
141
182
|
let stringTable;
|
|
142
183
|
const objectArg = get$.Required;
|
|
143
|
-
stringTable = objectArg.Field("stringTable",
|
|
184
|
+
stringTable = objectArg.Field("stringTable", StringTable_decoder);
|
|
144
185
|
let oaTable;
|
|
145
186
|
const arg_3 = OATable_decoder(stringTable);
|
|
146
187
|
const objectArg_1 = get$.Required;
|
|
147
|
-
oaTable = objectArg_1.Field("oaTable",
|
|
148
|
-
const arg_7 = ArcTable_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable",
|
|
188
|
+
oaTable = objectArg_1.Field("oaTable", arg_3);
|
|
189
|
+
const arg_7 = ArcTable_compressedDecoder(stringTable, oaTable, (arg_5 = CellTable_decoder(stringTable, oaTable), (objectArg_2 = get$.Required, objectArg_2.Field("cellTable", arg_5))));
|
|
149
190
|
const objectArg_3 = get$.Required;
|
|
150
|
-
return objectArg_3.Field("table",
|
|
151
|
-
}
|
|
191
|
+
return objectArg_3.Field("table", arg_7);
|
|
192
|
+
}), jsonString);
|
|
152
193
|
if (matchValue.tag === 1) {
|
|
153
|
-
|
|
194
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
154
195
|
}
|
|
155
196
|
else {
|
|
156
197
|
return matchValue.fields[0];
|
|
@@ -169,7 +210,7 @@ export function ARCtrl_ISA_ArcTable__ArcTable_ToCompressedJsonString_71136F3F(th
|
|
|
169
210
|
GetHashCode: safeHash,
|
|
170
211
|
});
|
|
171
212
|
const arcTable = ArcTable_compressedEncoder(stringTable, oaTable, cellTable, this$);
|
|
172
|
-
return toString(spaces_1,
|
|
213
|
+
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))], ["table", arcTable]]]));
|
|
173
214
|
}
|
|
174
215
|
|
|
175
216
|
export function ARCtrl_ISA_ArcTable__ArcTable_toCompressedJsonString_Static_1B2566EA(a) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { sortBy, map, toArray } from "../../../fable_modules/fable-library.4.
|
|
2
|
-
import {
|
|
3
|
-
import { map as map_1 } from "../../../fable_modules/fable-library.4.
|
|
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
4
|
import { CompositeCell_compressedDecoder, CompositeCell_compressedEncoder } from "./CompositeCell.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
6
|
+
import { int, object, array as array_1 } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
6
7
|
import { Dict_tryFind } from "../../ISA/Helper.js";
|
|
7
|
-
import { addToDict } from "../../../fable_modules/fable-library.4.
|
|
8
|
-
import { FSharpResult$2 } from "../../../fable_modules/fable-library.4.5.0/Choice.js";
|
|
8
|
+
import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
9
9
|
|
|
10
10
|
export function CellTable_arrayFromMap(otm) {
|
|
11
11
|
return toArray(map((kv_1) => kv_1[0], sortBy((kv) => kv[1], otm, {
|
|
@@ -14,12 +14,11 @@ export function CellTable_arrayFromMap(otm) {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export function CellTable_encoder(stringTable, oaTable, ot) {
|
|
17
|
-
return map_1((cc) => CompositeCell_compressedEncoder(stringTable, oaTable, cc), ot);
|
|
17
|
+
return new Json(6, [map_1((cc) => CompositeCell_compressedEncoder(stringTable, oaTable, cc), ot)]);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export function CellTable_decoder(stringTable, oaTable) {
|
|
21
|
-
|
|
22
|
-
return (path) => ((value) => array_1(uncurry2(decoder), path, value));
|
|
21
|
+
return array_1(CompositeCell_compressedDecoder(stringTable, oaTable));
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
export function CellTable_encodeCell(otm, cc) {
|
|
@@ -27,20 +26,15 @@ export function CellTable_encodeCell(otm, cc) {
|
|
|
27
26
|
if (matchValue == null) {
|
|
28
27
|
const i_1 = otm.size | 0;
|
|
29
28
|
addToDict(otm, cc, i_1);
|
|
30
|
-
return i_1;
|
|
29
|
+
return new Json(7, [i_1 >>> 0]);
|
|
31
30
|
}
|
|
32
31
|
else {
|
|
33
|
-
|
|
32
|
+
const i = matchValue | 0;
|
|
33
|
+
return new Json(7, [i >>> 0]);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export function CellTable_decodeCell(ot
|
|
38
|
-
|
|
39
|
-
if (matchValue.tag === 1) {
|
|
40
|
-
return new FSharpResult$2(1, [matchValue.fields[0]]);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return new FSharpResult$2(0, [ot[matchValue.fields[0]]]);
|
|
44
|
-
}
|
|
37
|
+
export function CellTable_decodeCell(ot) {
|
|
38
|
+
return object((get$) => item(get$.Required.Raw(int), ot));
|
|
45
39
|
}
|
|
46
40
|
|
|
@@ -1,66 +1,51 @@
|
|
|
1
1
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../Ontology.js";
|
|
2
2
|
import { ConverterOptions_$ctor } from "../ConverterOptions.js";
|
|
3
|
-
import { ofArray, singleton } from "../../../fable_modules/fable-library.4.
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { ofArray, singleton } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
4
|
+
import { Json } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
5
|
+
import { list } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
6
|
+
import { index, string, object } from "../../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
6
7
|
import { CompositeCell } from "../../ISA/ArcTypes/CompositeCell.js";
|
|
7
|
-
import {
|
|
8
|
-
import { printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
|
|
8
|
+
import { toText, printf, toFail } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
9
9
|
import { OATable_decodeOA, OATable_encodeOA } from "./OATable.js";
|
|
10
10
|
import { StringTable_decodeString, StringTable_encodeString } from "../StringTable.js";
|
|
11
|
-
import {
|
|
11
|
+
import { fromString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
12
|
+
import { toString } from "../../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
13
|
+
import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
12
14
|
|
|
13
15
|
export function CompositeCell_encoder(cc) {
|
|
14
16
|
const oaToJsonString = (oa) => OntologyAnnotation_encoder(ConverterOptions_$ctor(), oa);
|
|
15
|
-
const patternInput = (cc.tag === 0) ? ["Term", singleton(oaToJsonString(cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([cc.fields[0], oaToJsonString(cc.fields[1])])] : ["FreeText", singleton(cc.fields[0])]);
|
|
16
|
-
return
|
|
17
|
+
const patternInput = (cc.tag === 0) ? ["Term", singleton(oaToJsonString(cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([new Json(0, [cc.fields[0]]), oaToJsonString(cc.fields[1])])] : ["FreeText", singleton(new Json(0, [cc.fields[0]]))]);
|
|
18
|
+
return new Json(5, [[["celltype", new Json(0, [patternInput[0]])], ["values", list(patternInput[1])]]]);
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
export const CompositeCell_decoder = (
|
|
20
|
-
let objectArg_1, arg_5,
|
|
21
|
+
export const CompositeCell_decoder = object((get$) => {
|
|
22
|
+
let arg_3, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4;
|
|
21
23
|
let matchValue;
|
|
22
24
|
const objectArg = get$.Required;
|
|
23
25
|
matchValue = objectArg.Field("celltype", string);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return new CompositeCell(1, [(objectArg_1 = get$.Required, objectArg_1.Field("values", (path_2, value_2) => index(0, string, path_2, value_2)))]);
|
|
27
|
-
case "Term":
|
|
28
|
-
return new CompositeCell(0, [(arg_5 = ((decoder_1 = OntologyAnnotation_decoder(ConverterOptions_$ctor()), (path_3) => ((value_3) => index(0, uncurry2(decoder_1), path_3, value_3)))), (objectArg_2 = get$.Required, objectArg_2.Field("values", uncurry2(arg_5))))]);
|
|
29
|
-
case "Unitized":
|
|
30
|
-
return new CompositeCell(2, [(objectArg_3 = get$.Required, objectArg_3.Field("values", (path_4, value_4) => index(0, string, path_4, value_4))), (arg_9 = ((decoder_3 = OntologyAnnotation_decoder(ConverterOptions_$ctor()), (path_6) => ((value_6) => index(1, uncurry2(decoder_3), path_6, value_6)))), (objectArg_4 = get$.Required, objectArg_4.Field("values", uncurry2(arg_9))))]);
|
|
31
|
-
default:
|
|
32
|
-
return toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue);
|
|
33
|
-
}
|
|
34
|
-
}, path_7, v_1));
|
|
26
|
+
return (matchValue === "FreeText") ? (new CompositeCell(1, [(arg_3 = index(0, string), (objectArg_1 = get$.Required, objectArg_1.Field("values", arg_3)))])) : ((matchValue === "Term") ? (new CompositeCell(0, [(arg_5 = index(0, OntologyAnnotation_decoder(ConverterOptions_$ctor())), (objectArg_2 = get$.Required, objectArg_2.Field("values", arg_5)))])) : ((matchValue === "Unitized") ? (new CompositeCell(2, [(arg_7 = index(0, string), (objectArg_3 = get$.Required, objectArg_3.Field("values", arg_7))), (arg_9 = index(1, OntologyAnnotation_decoder(ConverterOptions_$ctor())), (objectArg_4 = get$.Required, objectArg_4.Field("values", arg_9)))])) : toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue)));
|
|
27
|
+
});
|
|
35
28
|
|
|
36
29
|
export function CompositeCell_compressedEncoder(stringTable, oaTable, cc) {
|
|
37
30
|
const patternInput = (cc.tag === 0) ? ["Term", singleton(OATable_encodeOA(oaTable, cc.fields[0]))] : ((cc.tag === 2) ? ["Unitized", ofArray([StringTable_encodeString(stringTable, cc.fields[0]), OATable_encodeOA(oaTable, cc.fields[1])])] : ["FreeText", singleton(StringTable_encodeString(stringTable, cc.fields[0]))]);
|
|
38
|
-
return
|
|
31
|
+
return new Json(5, [[["t", StringTable_encodeString(stringTable, patternInput[0])], ["v", list(patternInput[1])]]]);
|
|
39
32
|
}
|
|
40
33
|
|
|
41
34
|
export function CompositeCell_compressedDecoder(stringTable, oaTable) {
|
|
42
|
-
return (
|
|
43
|
-
let objectArg_1, objectArg_2, objectArg_3, objectArg_4;
|
|
35
|
+
return object((get$) => {
|
|
36
|
+
let arg_3, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4;
|
|
44
37
|
let matchValue;
|
|
38
|
+
const arg_1 = StringTable_decodeString(stringTable);
|
|
45
39
|
const objectArg = get$.Required;
|
|
46
|
-
matchValue = objectArg.Field("t",
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return new CompositeCell(1, [(objectArg_1 = get$.Required, objectArg_1.Field("v", (path, value) => index(0, (s_1, o_1) => StringTable_decodeString(stringTable, s_1, o_1), path, value)))]);
|
|
50
|
-
case "Term":
|
|
51
|
-
return new CompositeCell(0, [(objectArg_2 = get$.Required, objectArg_2.Field("v", (path_1, value_1) => index(0, (s_3, o_2) => OATable_decodeOA(oaTable, s_3, o_2), path_1, value_1)))]);
|
|
52
|
-
case "Unitized":
|
|
53
|
-
return new CompositeCell(2, [(objectArg_3 = get$.Required, objectArg_3.Field("v", (path_2, value_2) => index(0, (s_4, o_3) => StringTable_decodeString(stringTable, s_4, o_3), path_2, value_2))), (objectArg_4 = get$.Required, objectArg_4.Field("v", (path_3, value_3) => index(1, (s_5, o_4) => OATable_decodeOA(oaTable, s_5, o_4), path_3, value_3)))]);
|
|
54
|
-
default:
|
|
55
|
-
return toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue);
|
|
56
|
-
}
|
|
57
|
-
}, path_4, v_1));
|
|
40
|
+
matchValue = objectArg.Field("t", arg_1);
|
|
41
|
+
return (matchValue === "FreeText") ? (new CompositeCell(1, [(arg_3 = index(0, StringTable_decodeString(stringTable)), (objectArg_1 = get$.Required, objectArg_1.Field("v", arg_3)))])) : ((matchValue === "Term") ? (new CompositeCell(0, [(arg_5 = index(0, OATable_decodeOA(oaTable)), (objectArg_2 = get$.Required, objectArg_2.Field("v", arg_5)))])) : ((matchValue === "Unitized") ? (new CompositeCell(2, [(arg_7 = index(0, StringTable_decodeString(stringTable)), (objectArg_3 = get$.Required, objectArg_3.Field("v", arg_7))), (arg_9 = index(1, OATable_decodeOA(oaTable)), (objectArg_4 = get$.Required, objectArg_4.Field("v", arg_9)))])) : toFail(printf("Error reading CompositeCell from json string: %A"))(matchValue)));
|
|
42
|
+
});
|
|
58
43
|
}
|
|
59
44
|
|
|
60
45
|
export function ARCtrl_ISA_CompositeCell__CompositeCell_fromJsonString_Static_Z721C83C5(jsonString) {
|
|
61
|
-
const matchValue = fromString(
|
|
46
|
+
const matchValue = fromString(CompositeCell_decoder, jsonString);
|
|
62
47
|
if (matchValue.tag === 1) {
|
|
63
|
-
|
|
48
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
64
49
|
}
|
|
65
50
|
else {
|
|
66
51
|
return matchValue.fields[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];
|