@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,14 +1,14 @@
|
|
|
1
|
-
import { reverse, cons, iterate, iterateIndexed, map as map_1, initialize, singleton, length, empty, ofArray } from "../../../fable_modules/fable-library.4.
|
|
1
|
+
import { reverse, cons, iterate, iterateIndexed, map as map_1, initialize, singleton, length, empty, ofArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
2
2
|
import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
|
|
3
3
|
import { Component_toAggregatedStrings, ProtocolParameter_toAggregatedStrings, Option_fromValueWithDefault, Component_fromAggregatedStrings, ProtocolParameter_fromAggregatedStrings } from "./Conversions.js";
|
|
4
4
|
import { Protocol_create_Z7DFD6E67, Protocol_make } from "../../ISA/JsonTypes/Protocol.js";
|
|
5
|
-
import { defaultArg, map } from "../../../fable_modules/fable-library.4.
|
|
5
|
+
import { defaultArg, map } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
6
6
|
import { URIModule_fromString } from "../../ISA/JsonTypes/URI.js";
|
|
7
7
|
import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
|
|
8
8
|
import { Comment_toString, Comment_fromString } from "./Comment.js";
|
|
9
|
-
import { addToDict } from "../../../fable_modules/fable-library.4.
|
|
10
|
-
import { List_distinct } from "../../../fable_modules/fable-library.4.
|
|
11
|
-
import { stringHash } from "../../../fable_modules/fable-library.4.
|
|
9
|
+
import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
10
|
+
import { List_distinct } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
11
|
+
import { stringHash } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
12
12
|
|
|
13
13
|
export const nameLabel = "Name";
|
|
14
14
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { reverse, cons, iterateIndexed, empty, map as map_1, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library.4.
|
|
1
|
+
import { reverse, cons, iterateIndexed, empty, map as map_1, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
2
2
|
import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
|
|
3
|
-
import { defaultArg, map } from "../../../fable_modules/fable-library.4.
|
|
3
|
+
import { defaultArg, map } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
4
4
|
import { URIModule_fromString } from "../../ISA/JsonTypes/URI.js";
|
|
5
5
|
import { Option_fromValueWithDefault } from "./Conversions.js";
|
|
6
6
|
import { Publication } from "../../ISA/JsonTypes/Publication.js";
|
|
7
7
|
import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
|
|
8
8
|
import { Comment_toString, Comment_fromString } from "./Comment.js";
|
|
9
|
-
import { addToDict } from "../../../fable_modules/fable-library.4.
|
|
10
|
-
import { List_distinct } from "../../../fable_modules/fable-library.4.
|
|
11
|
-
import { stringHash } from "../../../fable_modules/fable-library.4.
|
|
9
|
+
import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
10
|
+
import { List_distinct } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
11
|
+
import { stringHash } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
12
12
|
|
|
13
13
|
export const pubMedIDLabel = "PubMed ID";
|
|
14
14
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { append as append_1, delay, tryItem, length as length_1, isEmpty, iterate, fold, tryPick, maxBy, initialize, choose, map, indexed } from "../../../fable_modules/fable-library.4.
|
|
2
|
-
import { defaultArg, map as map_1 } from "../../../fable_modules/fable-library.4.
|
|
3
|
-
import { tryFind, ofSeq } from "../../../fable_modules/fable-library.4.
|
|
4
|
-
import { arrayHash, equalArrays, equals, comparePrimitives } from "../../../fable_modules/fable-library.4.
|
|
5
|
-
import { RowBuilder_get_Empty, RowBuilder__Combine_19F30600, RowBuilder_$ctor } from "../../../fable_modules/FsSpreadsheet.5.1.
|
|
6
|
-
import { CellBuilder_$ctor, CellBuilder__AsCellElement_6F87C2ED } from "../../../fable_modules/FsSpreadsheet.5.1.
|
|
7
|
-
import { Messages_format, SheetEntity$1_some_2B595 } from "../../../fable_modules/FsSpreadsheet.5.1.
|
|
8
|
-
import { DataType } from "../../../fable_modules/FsSpreadsheet.5.1.
|
|
9
|
-
import { map as map_2, toArray, initialize as initialize_1, exists, find, cons, append, empty, singleton } from "../../../fable_modules/fable-library.4.
|
|
10
|
-
import { ColumnIndex, RowElement } from "../../../fable_modules/FsSpreadsheet.5.1.
|
|
11
|
-
import { FsRangeAddress_$ctor_7E77A4A0 } from "../../../fable_modules/FsSpreadsheet.5.1.
|
|
12
|
-
import { FsAddress_$ctor_Z37302880 } from "../../../fable_modules/FsSpreadsheet.5.1.
|
|
13
|
-
import { Record } from "../../../fable_modules/fable-library.4.
|
|
14
|
-
import { record_type, list_type, class_type, tuple_type, int32_type, string_type } from "../../../fable_modules/fable-library.4.
|
|
1
|
+
import { append as append_1, delay, tryItem, length as length_1, isEmpty, iterate, fold, tryPick, maxBy, initialize, choose, map, indexed } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
2
|
+
import { defaultArg, map as map_1 } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
3
|
+
import { tryFind, ofSeq } from "../../../fable_modules/fable-library-js.4.13.0/Map.js";
|
|
4
|
+
import { arrayHash, equalArrays, equals, comparePrimitives } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
5
|
+
import { RowBuilder_get_Empty, RowBuilder__Combine_19F30600, RowBuilder_$ctor } from "../../../fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js";
|
|
6
|
+
import { CellBuilder_$ctor, CellBuilder__AsCellElement_6F87C2ED } from "../../../fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js";
|
|
7
|
+
import { Messages_format, SheetEntity$1_some_2B595 } from "../../../fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js";
|
|
8
|
+
import { DataType } from "../../../fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js";
|
|
9
|
+
import { map as map_2, toArray, initialize as initialize_1, exists, find, cons, append, empty, singleton } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
10
|
+
import { ColumnIndex, RowElement } from "../../../fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js";
|
|
11
|
+
import { FsRangeAddress_$ctor_7E77A4A0 } from "../../../fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js";
|
|
12
|
+
import { FsAddress_$ctor_Z37302880 } from "../../../fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js";
|
|
13
|
+
import { Record } from "../../../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
14
|
+
import { record_type, list_type, class_type, tuple_type, int32_type, string_type } from "../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
15
15
|
import { Seq_trySkip, Dictionary_tryGetValue } from "../CollectionAux.js";
|
|
16
|
-
import { addToDict, getItemFromDict } from "../../../fable_modules/fable-library.4.
|
|
17
|
-
import { Dictionary } from "../../../fable_modules/fable-library.4.
|
|
18
|
-
import { printf, toFail } from "../../../fable_modules/fable-library.4.
|
|
16
|
+
import { addToDict, getItemFromDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
17
|
+
import { Dictionary } from "../../../fable_modules/fable-library-js.4.13.0/MutableMap.js";
|
|
18
|
+
import { printf, toFail } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
19
19
|
import { Comment$, Remark } from "../../ISA/JsonTypes/Comment.js";
|
|
20
20
|
import { Comment_wrapCommentKey, Comment_$007CComment$007C_$007C, Remark_$007CRemark$007C_$007C } from "./Comment.js";
|
|
21
21
|
|
|
@@ -359,12 +359,17 @@ export function SparseTable_FromRows_Z5579EC29(en, labels, lineNumber, prefix) {
|
|
|
359
359
|
const vals = Seq_trySkip(1, row);
|
|
360
360
|
const key = matchValue;
|
|
361
361
|
let matchResult, k, v_1;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
if (
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
362
|
+
if (key != null) {
|
|
363
|
+
const activePatternResult = Comment_$007CComment$007C_$007C(key);
|
|
364
|
+
if (activePatternResult != null) {
|
|
365
|
+
if (vals != null) {
|
|
366
|
+
matchResult = 0;
|
|
367
|
+
k = activePatternResult;
|
|
368
|
+
v_1 = vals;
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
matchResult = 1;
|
|
372
|
+
}
|
|
368
373
|
}
|
|
369
374
|
else {
|
|
370
375
|
matchResult = 1;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Record } from "../../../fable_modules/fable-library.4.
|
|
2
|
-
import { record_type, list_type, string_type } from "../../../fable_modules/fable-library.4.
|
|
1
|
+
import { Record } from "../../../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
2
|
+
import { record_type, list_type, string_type } from "../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
3
3
|
import { Comment$_$reflection } from "../../ISA/JsonTypes/Comment.js";
|
|
4
|
-
import { ofSeq, append, toArray, reverse, cons, empty, map, ofArray } from "../../../fable_modules/fable-library.4.
|
|
4
|
+
import { ofSeq, append, toArray, reverse, cons, empty, map, ofArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
5
5
|
import { Comment_toString, Comment_fromString } from "./Comment.js";
|
|
6
6
|
import { SparseRowModule_fromValues, SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValueDefault_5BAE6133 } from "./SparseTable.js";
|
|
7
7
|
import { Study_fileNameFromIdentifier, createMissingIdentifier } from "../../ISA/Identifier.js";
|
|
8
|
-
import { addToDict } from "../../../fable_modules/fable-library.4.
|
|
9
|
-
import { defaultArg } from "../../../fable_modules/fable-library.4.
|
|
10
|
-
import { List_distinct } from "../../../fable_modules/fable-library.4.
|
|
11
|
-
import { stringHash } from "../../../fable_modules/fable-library.4.
|
|
8
|
+
import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
9
|
+
import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
10
|
+
import { List_distinct } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
11
|
+
import { stringHash } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
12
12
|
import { Option_fromValueWithDefault } from "./Conversions.js";
|
|
13
13
|
import { ArcTable } from "../../ISA/ArcTypes/ArcTable.js";
|
|
14
14
|
import { ArcStudy } from "../../ISA/ArcTypes/ArcTypes.js";
|
|
@@ -18,7 +18,7 @@ import { toRows as toRows_3, fromRows as fromRows_3 } from "./Factors.js";
|
|
|
18
18
|
import { toRows as toRows_4, fromRows as fromRows_4 } from "./Assays.js";
|
|
19
19
|
import { toRows as toRows_5, fromRows as fromRows_5 } from "./Protocols.js";
|
|
20
20
|
import { toRows as toRows_6, fromRows as fromRows_6 } from "./Contacts.js";
|
|
21
|
-
import { singleton, append as append_1, delay, collect } from "../../../fable_modules/fable-library.4.
|
|
21
|
+
import { singleton, append as append_1, delay, collect } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
22
22
|
|
|
23
23
|
export class StudyInfo extends Record {
|
|
24
24
|
constructor(Identifier, Title, Description, SubmissionDate, PublicReleaseDate, FileName, Comments) {
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ and __JavaScript__! ❤️
|
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
<PackageReference Include="ARCtrl" Version="1.
|
|
23
|
+
<PackageReference Include="ARCtrl" Version="1.1.0" />
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
### JavaScript
|
|
@@ -44,10 +44,27 @@ Currently we provide some documentation in form of markdown files in the `/docs`
|
|
|
44
44
|
- verify with `npm --version` (Tested with v9.2.0)
|
|
45
45
|
- [.NET SDK](https://dotnet.microsoft.com/en-us/download)
|
|
46
46
|
- verify with `dotnet --version` (Tested with 7.0.306)
|
|
47
|
+
- [Python](https://www.python.org/downloads/)
|
|
48
|
+
- verify with `py --version` (Tested with 3.12.2, known to work only for >=3.11)
|
|
47
49
|
|
|
48
50
|
### Local Setup
|
|
49
51
|
|
|
50
|
-
1.
|
|
51
|
-
|
|
52
|
+
1. Setup dotnet tools
|
|
53
|
+
|
|
54
|
+
`dotnet tool restore`
|
|
55
|
+
|
|
56
|
+
2. Install NPM dependencies
|
|
57
|
+
|
|
58
|
+
`npm install`
|
|
59
|
+
|
|
60
|
+
3. Setup python environment
|
|
61
|
+
|
|
62
|
+
`py -m venv .venv`
|
|
63
|
+
|
|
64
|
+
4. Install [Poetry](https://python-poetry.org/) and dependencies
|
|
65
|
+
|
|
66
|
+
1. `.\.venv\Scripts\python.exe -m pip install -U pip setuptools`
|
|
67
|
+
2. `.\.venv\Scripts\python.exe -m pip install poetry`
|
|
68
|
+
3. `.\.venv\Scripts\python.exe -m poetry install --no-root`
|
|
52
69
|
|
|
53
70
|
Verify correct setup with `./build.cmd runtests` ✨
|
package/SemVer.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { toString, Record } from "./fable_modules/fable-library.4.
|
|
2
|
-
import { record_type, option_type, string_type, int32_type } from "./fable_modules/fable-library.4.
|
|
1
|
+
import { toString, Record } from "./fable_modules/fable-library-js.4.13.0/Types.js";
|
|
2
|
+
import { record_type, option_type, string_type, int32_type } from "./fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
3
3
|
import { ActivePatterns_$007CRegex$007C_$007C } from "./ISA/ISA/Regex.js";
|
|
4
|
-
import { parse } from "./fable_modules/fable-library.4.
|
|
5
|
-
import { value as value_3, unwrap } from "./fable_modules/fable-library.4.
|
|
6
|
-
import { StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "./fable_modules/fable-library.4.
|
|
7
|
-
import { printf, toText } from "./fable_modules/fable-library.4.
|
|
4
|
+
import { parse } from "./fable_modules/fable-library-js.4.13.0/Int32.js";
|
|
5
|
+
import { value as value_3, unwrap } from "./fable_modules/fable-library-js.4.13.0/Option.js";
|
|
6
|
+
import { StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "./fable_modules/fable-library-js.4.13.0/System.Text.js";
|
|
7
|
+
import { printf, toText } from "./fable_modules/fable-library-js.4.13.0/String.js";
|
|
8
8
|
|
|
9
9
|
export const SemVerAux_Pattern = "^(?<major>\\d+)(\\.(?<minor>\\d+))?(\\.(?<patch>\\d+))?(-(?<pre>[0-9A-Za-z-\\.]+))?(\\+(?<build>[0-9A-Za-z-\\.]+))?$";
|
|
10
10
|
|
|
@@ -1,79 +1,86 @@
|
|
|
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 { dict, datetimeUtc, array as array_1, guid, object, string, succeed, andThen } from "../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
4
4
|
import { Template, Organisation } from "./Template.js";
|
|
5
5
|
import { ConverterOptions_$ctor } from "../ISA/ISA.Json/ConverterOptions.js";
|
|
6
6
|
import { decoder as decoder_1, encoder } from "../ISA/ISA.Json/Person.js";
|
|
7
7
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../ISA/ISA.Json/Ontology.js";
|
|
8
|
-
import { toString as toString_1, datetime, list as list_1, guid, object } from "../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
9
8
|
import { ArcTable_decoder, ArcTable_encoder } from "../ISA/ISA.Json/ArcTypes/ArcTable.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
9
|
+
import { list as list_1 } from "../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
10
|
+
import { map, delay, toList } from "../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
11
|
+
import { toString as toString_1 } from "../fable_modules/fable-library-js.4.13.0/Date.js";
|
|
12
|
+
import { toText, printf, toFail } from "../fable_modules/fable-library-js.4.13.0/String.js";
|
|
13
|
+
import { fromString } from "../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
14
|
+
import { toString as toString_2 } from "../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
15
|
+
import { ofArray, map as map_1 } from "../fable_modules/fable-library-js.4.13.0/List.js";
|
|
16
|
+
import { defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
15
17
|
|
|
16
|
-
export const Organisation_encode = toString;
|
|
18
|
+
export const Organisation_encode = (arg) => (new Json(0, [toString(arg)]));
|
|
17
19
|
|
|
18
|
-
export const Organisation_decode = (
|
|
19
|
-
const output = Organisation.ofString(textValue);
|
|
20
|
-
return (arg10$0040) => ((arg20$0040) => succeed(output, arg10$0040, arg20$0040));
|
|
21
|
-
}), string, path_1, value_1));
|
|
20
|
+
export const Organisation_decode = andThen((textValue) => succeed(Organisation.ofString(textValue)), string);
|
|
22
21
|
|
|
23
22
|
export function Template_encode(template) {
|
|
23
|
+
let copyOfStruct;
|
|
24
24
|
let personEncoder;
|
|
25
25
|
const options = ConverterOptions_$ctor();
|
|
26
26
|
personEncoder = ((oa) => encoder(options, oa));
|
|
27
27
|
let oaEncoder;
|
|
28
28
|
const options_1 = ConverterOptions_$ctor();
|
|
29
29
|
oaEncoder = ((oa_1) => OntologyAnnotation_encoder(options_1, oa_1));
|
|
30
|
-
return
|
|
30
|
+
return new Json(5, [[["id", new Json(0, [(copyOfStruct = template.Id, copyOfStruct)])], ["table", ArcTable_encoder(template.Table)], ["name", new Json(0, [template.Name])], ["description", new Json(0, [template.Description])], ["organisation", Organisation_encode(template.Organisation)], ["version", new Json(0, [template.Version])], ["authors", list_1(toList(delay(() => map(personEncoder, template.Authors))))], ["endpoint_repositories", list_1(toList(delay(() => map(oaEncoder, template.EndpointRepositories))))], ["tags", list_1(toList(delay(() => map(oaEncoder, template.Tags))))], ["last_updated", new Json(0, [toString_1(template.LastUpdated, "O", {})])]]]);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export const Template_decode = (() => {
|
|
34
34
|
const personDecoder = decoder_1(ConverterOptions_$ctor());
|
|
35
35
|
const oaDecoder = OntologyAnnotation_decoder(ConverterOptions_$ctor());
|
|
36
|
-
return (
|
|
37
|
-
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, objectArg_7, objectArg_8, objectArg_9;
|
|
38
|
-
return Template.create((objectArg = get$.Required, objectArg.Field("id",
|
|
39
|
-
}
|
|
36
|
+
return object((get$) => {
|
|
37
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, objectArg_9;
|
|
38
|
+
return Template.create((objectArg = get$.Required, objectArg.Field("id", guid)), (objectArg_1 = get$.Required, objectArg_1.Field("table", ArcTable_decoder)), (objectArg_2 = get$.Required, objectArg_2.Field("name", string)), (objectArg_3 = get$.Required, objectArg_3.Field("description", string)), (objectArg_4 = get$.Required, objectArg_4.Field("organisation", Organisation_decode)), (objectArg_5 = get$.Required, objectArg_5.Field("version", string)), (arg_13 = array_1(personDecoder), (objectArg_6 = get$.Required, objectArg_6.Field("authors", arg_13))), (arg_15 = array_1(oaDecoder), (objectArg_7 = get$.Required, objectArg_7.Field("endpoint_repositories", arg_15))), (arg_17 = array_1(oaDecoder), (objectArg_8 = get$.Required, objectArg_8.Field("tags", arg_17))), (objectArg_9 = get$.Required, objectArg_9.Field("last_updated", datetimeUtc)));
|
|
39
|
+
});
|
|
40
40
|
})();
|
|
41
41
|
|
|
42
42
|
export function Template_fromJsonString(jsonString) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
try {
|
|
44
|
+
const matchValue = fromString(Template_decode, jsonString);
|
|
45
|
+
if (matchValue.tag === 1) {
|
|
46
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return matchValue.fields[0];
|
|
50
|
+
}
|
|
46
51
|
}
|
|
47
|
-
|
|
48
|
-
return
|
|
52
|
+
catch (exn) {
|
|
53
|
+
return toFail(printf("Error. Given json string cannot be parsed to Template: %A"))(exn);
|
|
49
54
|
}
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
export function Template_toJsonString(spaces, template) {
|
|
53
|
-
return
|
|
58
|
+
return toString_2(spaces, Template_encode(template));
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
export function Templates_encode(templateList) {
|
|
57
|
-
return
|
|
62
|
+
return new Json(5, [map_1((tupledArg) => [tupledArg[0], Template_encode(tupledArg[1])], ofArray(templateList))]);
|
|
58
63
|
}
|
|
59
64
|
|
|
60
|
-
export const Templates_decode = (
|
|
61
|
-
const d = dict(uncurry2(Template_decode));
|
|
62
|
-
return (value) => fromString(uncurry2(d), value);
|
|
63
|
-
})();
|
|
65
|
+
export const Templates_decode = dict(Template_decode);
|
|
64
66
|
|
|
65
67
|
export function Templates_fromJsonString(jsonString) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
try {
|
|
69
|
+
const matchValue = fromString(Templates_decode, jsonString);
|
|
70
|
+
if (matchValue.tag === 1) {
|
|
71
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
return matchValue.fields[0];
|
|
75
|
+
}
|
|
69
76
|
}
|
|
70
|
-
|
|
71
|
-
return
|
|
77
|
+
catch (exn) {
|
|
78
|
+
return toFail(printf("Error. Given json string cannot be parsed to Templates map: %A"))(exn);
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
81
|
|
|
75
82
|
export function Templates_toJsonString(spaces, templateList) {
|
|
76
|
-
return
|
|
83
|
+
return toString_2(spaces, Templates_encode(templateList));
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export function ARCtrl_Template_Template__Template_ToJson_71136F3F(this$, spaces) {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { toString, Record, FSharpException } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { record_type, list_type, string_type, class_type } from "../fable_modules/fable-library.4.
|
|
3
|
-
import { toArray as toArray_1, append as append_1, reverse, map, empty, ofArray } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { toString, Record, FSharpException } from "../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
2
|
+
import { record_type, list_type, string_type, class_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
3
|
+
import { toArray as toArray_1, append as append_1, reverse, map, empty, ofArray } from "../fable_modules/fable-library-js.4.13.0/List.js";
|
|
4
4
|
import { toRows, fromRows, toSparseTable, fromSparseTable } from "../ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js";
|
|
5
5
|
import { Comment$_$reflection } from "../ISA/ISA/JsonTypes/Comment.js";
|
|
6
6
|
import { Comment_fromString } from "../ISA/ISA.Spreadsheet/Metadata/Comment.js";
|
|
7
7
|
import { SparseRowModule_fromFsRow, SparseRowModule_writeToSheet, SparseRowModule_fromValues, SparseRowModule_tryGetValueAt, SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValueDefault_5BAE6133 } from "../ISA/ISA.Spreadsheet/Metadata/SparseTable.js";
|
|
8
8
|
import { createMissingIdentifier } from "../ISA/ISA/Identifier.js";
|
|
9
|
-
import { addToDict } from "../fable_modules/fable-library.4.
|
|
10
|
-
import { List_distinct } from "../fable_modules/fable-library.4.
|
|
11
|
-
import { getEnumerator, stringHash } from "../fable_modules/fable-library.4.
|
|
12
|
-
import { tryPick, iterateIndexed, delay, singleton, append, head, exists, map as map_1 } from "../fable_modules/fable-library.4.
|
|
9
|
+
import { addToDict } from "../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
10
|
+
import { List_distinct } from "../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
11
|
+
import { getEnumerator, stringHash } from "../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
12
|
+
import { tryPick, iterateIndexed, delay, singleton, append, head, exists, map as map_1 } from "../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
13
13
|
import { Person } from "../ISA/ISA/JsonTypes/Person.js";
|
|
14
|
-
import { toArray } from "../fable_modules/fable-library.4.
|
|
14
|
+
import { toArray } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
15
15
|
import { toRows as toRows_1, fromRows as fromRows_1 } from "../ISA/ISA.Spreadsheet/Metadata/Contacts.js";
|
|
16
|
-
import { parse } from "../fable_modules/fable-library.4.
|
|
16
|
+
import { parse } from "../fable_modules/fable-library-js.4.13.0/Guid.js";
|
|
17
17
|
import { Template, Organisation } from "./Template.js";
|
|
18
|
-
import { FsWorksheet } from "../fable_modules/FsSpreadsheet.5.1.
|
|
18
|
+
import { FsWorksheet } from "../fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js";
|
|
19
19
|
import { toFsWorksheet, tryFromFsWorksheet } from "../ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js";
|
|
20
|
-
import { now } from "../fable_modules/fable-library.4.
|
|
21
|
-
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.5.1.
|
|
20
|
+
import { now } from "../fable_modules/fable-library-js.4.13.0/Date.js";
|
|
21
|
+
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js";
|
|
22
22
|
|
|
23
23
|
export class TemplateReadError extends FSharpException {
|
|
24
24
|
constructor(Data0) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defaultArg } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { singleton } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
2
|
+
import { singleton } from "../fable_modules/fable-library-js.4.13.0/AsyncBuilder.js";
|
|
3
3
|
import { downloadFile } from "../WebRequest/WebRequest.js";
|
|
4
4
|
import { Templates_fromJsonString } from "./Template.Json.js";
|
|
5
|
-
import { startAsPromise } from "../fable_modules/fable-library.4.
|
|
6
|
-
import { class_type } from "../fable_modules/fable-library.4.
|
|
5
|
+
import { startAsPromise } from "../fable_modules/fable-library-js.4.13.0/Async.js";
|
|
6
|
+
import { class_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
7
7
|
|
|
8
8
|
export function getTemplates(url) {
|
|
9
9
|
const url_1 = defaultArg(url, "https://github.com/nfdi4plants/Swate-templates/releases/download/latest/templates.json");
|
package/Templates/Template.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { identityHash, safeHash, stringHash, equals } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { Union } from "../fable_modules/fable-library.4.
|
|
3
|
-
import { class_type, union_type, string_type } from "../fable_modules/fable-library.4.
|
|
4
|
-
import { defaultArg, unwrap } from "../fable_modules/fable-library.4.
|
|
5
|
-
import { newGuid } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { identityHash, safeHash, stringHash, equals } from "../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
2
|
+
import { Union } from "../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
3
|
+
import { class_type, union_type, string_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
4
|
+
import { defaultArg, unwrap } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
5
|
+
import { newGuid } from "../fable_modules/fable-library-js.4.13.0/Guid.js";
|
|
6
6
|
import { ArcTable } from "../ISA/ISA/ArcTypes/ArcTable.js";
|
|
7
7
|
import { SemVer_tryOfString_Z721C83C5 } from "../SemVer.js";
|
|
8
|
-
import { equalsWith } from "../fable_modules/fable-library.4.
|
|
9
|
-
import { toUniversalTime, now, equals as equals_1 } from "../fable_modules/fable-library.4.
|
|
8
|
+
import { equalsWith } from "../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
9
|
+
import { toUniversalTime, now, equals as equals_1 } from "../fable_modules/fable-library-js.4.13.0/Date.js";
|
|
10
10
|
|
|
11
11
|
export class Organisation extends Union {
|
|
12
12
|
constructor(tag, fields) {
|
package/Templates/Templates.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defaultArg } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { append, addRangeInPlace, collect, contains as contains_1 } from "../fable_modules/fable-library.4.
|
|
3
|
-
import { uncurry2, safeHash, equals } from "../fable_modules/fable-library.4.
|
|
4
|
-
import { Array_distinct } from "../fable_modules/fable-library.4.
|
|
5
|
-
import { class_type } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
2
|
+
import { append, addRangeInPlace, collect, item, contains as contains_1 } from "../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
3
|
+
import { uncurry2, safeHash, equals } from "../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
4
|
+
import { Array_distinct } from "../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
5
|
+
import { class_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
6
6
|
|
|
7
7
|
export function TemplatesAux_getComparer(matchAll) {
|
|
8
8
|
if (defaultArg(matchAll, false)) {
|
|
@@ -18,7 +18,7 @@ export function TemplatesAux_filterOnTags(tagGetter, queryTags, comparer, templa
|
|
|
18
18
|
const templateTags = tagGetter(t);
|
|
19
19
|
let isValid = void 0;
|
|
20
20
|
for (let idx = 0; idx <= (queryTags.length - 1); idx++) {
|
|
21
|
-
const contains = contains_1(
|
|
21
|
+
const contains = contains_1(item(idx, queryTags), templateTags, {
|
|
22
22
|
Equals: equals,
|
|
23
23
|
GetHashCode: safeHash,
|
|
24
24
|
});
|
|
@@ -53,7 +53,7 @@ export class Templates {
|
|
|
53
53
|
static getDistinctOntologyAnnotations(templates) {
|
|
54
54
|
const oas = [];
|
|
55
55
|
for (let idx = 0; idx <= (templates.length - 1); idx++) {
|
|
56
|
-
const t = templates
|
|
56
|
+
const t = item(idx, templates);
|
|
57
57
|
addRangeInPlace(t.Tags, oas);
|
|
58
58
|
addRangeInPlace(t.EndpointRepositories, oas);
|
|
59
59
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { awaitPromise } from "../fable_modules/fable-library-js.4.13.0/Async.js";
|
|
2
|
+
import { fetch$ } from "../fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js";
|
|
3
|
+
import { empty } from "../fable_modules/fable-library-js.4.13.0/List.js";
|
|
4
|
+
|
|
5
|
+
export function isNode() {
|
|
6
|
+
return typeof process !== "undefined" &&
|
|
7
|
+
process.versions != null &&
|
|
8
|
+
process.versions.node != null;;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function downloadFile(url) {
|
|
12
|
+
let pr_1, pr;
|
|
13
|
+
return awaitPromise((pr_1 = ((pr = fetch$(url, empty()), pr.then((res) => res.text()))), pr_1.then((txt) => txt)));
|
|
14
|
+
}
|
|
15
|
+
|
package/WebRequest/WebRequest.js
CHANGED
|
@@ -1,38 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { empty } from "../fable_modules/fable-library.4.5.0/List.js";
|
|
4
|
-
import { singleton } from "../fable_modules/fable-library.4.5.0/AsyncBuilder.js";
|
|
1
|
+
import { downloadFile as downloadFile_1, isNode } from "./WebRequest.Node.js";
|
|
2
|
+
import { singleton } from "../fable_modules/fable-library-js.4.13.0/AsyncBuilder.js";
|
|
5
3
|
import { Http_get } from "../fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js";
|
|
6
|
-
import { printf, toFail } from "../fable_modules/fable-library.4.
|
|
4
|
+
import { printf, toFail } from "../fable_modules/fable-library-js.4.13.0/String.js";
|
|
7
5
|
import "isomorphic-fetch";
|
|
8
6
|
|
|
9
|
-
export function NodeJs_isNode() {
|
|
10
|
-
return typeof process !== "undefined" &&
|
|
11
|
-
process.versions != null &&
|
|
12
|
-
process.versions.node != null;;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function NodeJs_downloadFile(url) {
|
|
16
|
-
let pr_1, pr;
|
|
17
|
-
return awaitPromise((pr_1 = ((pr = fetch$(url, empty()), pr.then((res) => res.text()))), pr_1.then((txt) => txt)));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
7
|
export function downloadFile(url) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const browserAndDotnet = () => singleton.Delay(() => singleton.Bind(Http_get(url), (_arg) => {
|
|
24
|
-
const statusCode = _arg[0] | 0;
|
|
25
|
-
const responseText = _arg[1];
|
|
26
|
-
return singleton.Return((statusCode === 200) ? responseText : toFail(printf("Status %d => %s"))(statusCode)(responseText));
|
|
27
|
-
}));
|
|
28
|
-
if (!isFable) {
|
|
29
|
-
return browserAndDotnet();
|
|
30
|
-
}
|
|
31
|
-
else if (NodeJs_isNode()) {
|
|
32
|
-
return NodeJs_downloadFile(url);
|
|
8
|
+
if (isNode()) {
|
|
9
|
+
return downloadFile_1(url);
|
|
33
10
|
}
|
|
34
11
|
else {
|
|
35
|
-
return
|
|
12
|
+
return singleton.Delay(() => singleton.Bind(Http_get(url), (_arg) => {
|
|
13
|
+
const statusCode = _arg[0] | 0;
|
|
14
|
+
const responseText = _arg[1];
|
|
15
|
+
return singleton.Return((statusCode === 200) ? responseText : toFail(printf("Status %d => %s"))(statusCode)(responseText));
|
|
16
|
+
}));
|
|
36
17
|
}
|
|
37
18
|
}
|
|
38
19
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Union } from "../fable-library.4.
|
|
2
|
-
import { array_type, tuple_type, bool_type, class_type, union_type, obj_type, int32_type, string_type } from "../fable-library.4.
|
|
3
|
-
import { defaultArg } from "../fable-library.4.
|
|
4
|
-
import { empty } from "../fable-library.4.
|
|
5
|
-
import { keyValueList } from "../fable-library.4.
|
|
6
|
-
import { int32ToString } from "../fable-library.4.
|
|
1
|
+
import { Union } from "../fable-library-js.4.13.0/Types.js";
|
|
2
|
+
import { array_type, tuple_type, bool_type, class_type, union_type, obj_type, int32_type, string_type } from "../fable-library-js.4.13.0/Reflection.js";
|
|
3
|
+
import { defaultArg } from "../fable-library-js.4.13.0/Option.js";
|
|
4
|
+
import { empty } from "../fable-library-js.4.13.0/Seq.js";
|
|
5
|
+
import { keyValueList } from "../fable-library-js.4.13.0/MapUtil.js";
|
|
6
|
+
import { int32ToString } from "../fable-library-js.4.13.0/Util.js";
|
|
7
7
|
import { result } from "../Fable.Promise.2.2.2/Promise.fs.js";
|
|
8
|
-
import { singleton } from "../fable-library.4.
|
|
8
|
+
import { singleton } from "../fable-library-js.4.13.0/List.js";
|
|
9
9
|
|
|
10
10
|
export class Types_HttpRequestHeaders extends Union {
|
|
11
11
|
constructor(tag, fields) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Result_MapError, Result_Map, FSharpResult$2 } from "../fable-library.4.
|
|
2
|
-
import { class_type } from "../fable-library.4.
|
|
3
|
-
import { defaultOf, equals, disposeSafe, getEnumerator } from "../fable-library.4.
|
|
1
|
+
import { Result_MapError, Result_Map, FSharpResult$2 } from "../fable-library-js.4.13.0/Result.js";
|
|
2
|
+
import { class_type } from "../fable-library-js.4.13.0/Reflection.js";
|
|
3
|
+
import { defaultOf, equals, disposeSafe, getEnumerator } from "../fable-library-js.4.13.0/Util.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Creates promise (in rejected state) with supplied reason.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { fromContinuations } from "../fable-library.4.
|
|
1
|
+
import { fromContinuations } from "../fable-library-js.4.13.0/Async.js";
|
|
2
2
|
import { HttpResponse, ResponseContent, HttpRequest, BodyContent, HttpMethod, Header } from "./Types.fs.js";
|
|
3
|
-
import { tail, head, isEmpty, ofArray as ofArray_1, singleton, append, empty } from "../fable-library.4.
|
|
4
|
-
import { ofArray, empty as empty_1 } from "../fable-library.4.
|
|
5
|
-
import { disposeSafe, getEnumerator, comparePrimitives } from "../fable-library.4.
|
|
6
|
-
import { join, split, isNullOrEmpty } from "../fable-library.4.
|
|
7
|
-
import { choose } from "../fable-library.4.
|
|
8
|
-
import { some } from "../fable-library.4.
|
|
9
|
-
import { singleton as singleton_1 } from "../fable-library.4.
|
|
3
|
+
import { tail, head, isEmpty, ofArray as ofArray_1, singleton, append, empty } from "../fable-library-js.4.13.0/List.js";
|
|
4
|
+
import { ofArray, empty as empty_1 } from "../fable-library-js.4.13.0/Map.js";
|
|
5
|
+
import { disposeSafe, getEnumerator, comparePrimitives } from "../fable-library-js.4.13.0/Util.js";
|
|
6
|
+
import { join, split, isNullOrEmpty } from "../fable-library-js.4.13.0/String.js";
|
|
7
|
+
import { choose } from "../fable-library-js.4.13.0/Array.js";
|
|
8
|
+
import { some } from "../fable-library-js.4.13.0/Option.js";
|
|
9
|
+
import { singleton as singleton_1 } from "../fable-library-js.4.13.0/AsyncBuilder.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Download a Blob
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Record, Union } from "../fable-library.4.
|
|
2
|
-
import { obj_type, record_type, int32_type, option_type, bool_type, list_type, class_type, string_type, union_type } from "../fable-library.4.
|
|
1
|
+
import { Record, Union } from "../fable-library-js.4.13.0/Types.js";
|
|
2
|
+
import { obj_type, record_type, int32_type, option_type, bool_type, list_type, class_type, string_type, union_type } from "../fable-library-js.4.13.0/Reflection.js";
|
|
3
3
|
|
|
4
4
|
export class HttpMethod extends Union {
|
|
5
5
|
constructor(tag, fields) {
|