@nfdi4plants/arctrl 1.0.0-alpha9 → 1.0.0-beta.2
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 +28 -29
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcAssay.js +3 -3
- package/Contracts/Contracts.ArcInvestigation.js +3 -3
- package/Contracts/Contracts.ArcStudy.js +3 -3
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +15 -15
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +20 -20
- package/ISA/ISA/ArcTypes/ArcTableAux.js +17 -17
- package/ISA/ISA/ArcTypes/ArcTables.js +283 -279
- package/ISA/ISA/ArcTypes/ArcTypes.js +89 -373
- package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +4 -4
- 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 +5 -5
- package/ISA/ISA/Helper.js +9 -9
- package/ISA/ISA/Identifier.js +2 -2
- package/ISA/ISA/JsonTypes/AnnotationValue.js +5 -5
- package/ISA/ISA/JsonTypes/Assay.js +26 -26
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +23 -23
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +12 -12
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +12 -12
- 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 +4 -4
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +10 -10
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +8 -8
- package/ISA/ISA/JsonTypes/Person.js +9 -9
- package/ISA/ISA/JsonTypes/Process.js +11 -11
- 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 +14 -14
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +4 -4
- package/ISA/ISA/JsonTypes/Publication.js +8 -8
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +58 -58
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +7 -7
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA.Json/Assay.js +5 -5
- package/ISA/ISA.Json/Comment.js +5 -5
- package/ISA/ISA.Json/ConverterOptions.js +1 -1
- package/ISA/ISA.Json/Data.js +5 -5
- package/ISA/ISA.Json/Decode.js +4 -4
- package/ISA/ISA.Json/Factor.js +5 -5
- package/ISA/ISA.Json/GEncode.js +3 -3
- package/ISA/ISA.Json/Investigation.js +6 -6
- package/ISA/ISA.Json/Material.js +5 -5
- package/ISA/ISA.Json/Ontology.js +6 -6
- package/ISA/ISA.Json/Person.js +10 -10
- package/ISA/ISA.Json/Process.js +5 -5
- package/ISA/ISA.Json/Protocol.js +6 -6
- package/ISA/ISA.Json/Publication.js +4 -4
- package/ISA/ISA.Json/Study.js +6 -6
- package/ISA/ISA.Json/Validation/Fable.js +6 -6
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +1 -1
- package/ISA/ISA.Json/Validation/ValidationResult.js +2 -2
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +19 -17
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +4 -4
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +9 -9
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +14 -14
- package/ISA/ISA.Spreadsheet/ArcAssay.js +17 -20
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +37 -37
- package/ISA/ISA.Spreadsheet/ArcStudy.js +13 -13
- package/ISA/ISA.Spreadsheet/CollectionAux.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +10 -10
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +6 -6
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +11 -11
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +8 -8
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +9 -9
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +23 -23
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +22 -22
- package/README.md +29 -253
- package/SemVer.js +7 -7
- package/Templates/Template.Json.js +12 -9
- package/Templates/Template.Spreadsheet.js +39 -23
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +5 -5
- package/WebRequest/WebRequest.js +4 -4
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
- package/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.2.2.2}/Fable.Promise.fableproj +3 -4
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs +176 -0
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +143 -0
- package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs +4 -0
- package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs.js +4 -0
- 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.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCell.fs +85 -36
- package/fable_modules/FsSpreadsheet.5.0.1/Cells/FsCell.fs.js +272 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCellsCollection.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/CellBuilder.fs +1 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/CellBuilder.fs.js +21 -21
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/DSL.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Expression.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Transform.fs +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Transform.fs.js +9 -8
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Types.fs +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Types.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsAddress.fs.js +9 -9
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsColumn.fs +3 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsRow.fs +2 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsRow.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorkbook.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorksheet.fs +10 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorksheet.fs.js +24 -19
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeAddress.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/SheetBuilder.fs +4 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/SheetBuilder.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTable.fs +20 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTable.fs.js +33 -13
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +26 -26
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +13 -13
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +2 -2
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +6 -6
- package/fable_modules/fable-library.4.4.1/CHANGELOG.md +11 -0
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Decimal.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Double.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Int32.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Long.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/README.md +2 -2
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Set.js +64 -64
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Util.d.ts +20 -0
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Util.js +120 -0
- package/fable_modules/fable-library.4.4.1/lib/big.d.ts +5 -0
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -104
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -217
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -19
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +0 -240
- package/fable_modules/fable-library.4.1.4/lib/big.d.ts +0 -338
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Array.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Choice.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Date.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/List.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Map.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableMap.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableSet.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Random.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/String.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/String.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Text.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/lib/big.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/package.json +0 -0
package/README.md
CHANGED
|
@@ -1,277 +1,53 @@
|
|
|
1
1
|
# ARCtrl
|
|
2
|
-
Top level ARC DataModel and API function descriptions.
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
- [API Design](#api-design)
|
|
7
|
-
- [Top level overview](#top-level-overview)
|
|
8
|
-
- [Stack](#stack)
|
|
9
|
-
- [Libraries](#libraries)
|
|
10
|
-
- [Design choices](#design-choices)
|
|
11
|
-
- [Fable compatibility as top priority](#fable-compatibility-as-top-priority)
|
|
3
|
+
> **ARCtrl** the easy way to read, manipulate and write ARCs in __.NET__
|
|
4
|
+
and __JavaScript__! ❤️
|
|
12
5
|
|
|
13
|
-
|
|
6
|
+
| Version | Downloads |
|
|
7
|
+
| :--------|-----------:|
|
|
8
|
+
|||
|
|
9
|
+
|||
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
## Install
|
|
16
12
|
|
|
17
|
-
[
|
|
13
|
+
(currently only prereleases available, check the [nuget page](https://www.nuget.org/packages/ARCtrl) or [npm page](https://www.npmjs.com/package/@nfdi4plants/arctrl) respectively)
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
### .NET
|
|
20
16
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
- `ISA`: Represents the experimental metadata of the ARC that is stored in the ISA-XLSX format (investigation, studies and assays).
|
|
25
|
-
- `CWL`: Represents the workflow definitions of the ARC in the CWL format.
|
|
26
|
-
- `API`s are static methods on the `DataModel` types that perfrom operations on the `DataModel`s. Often, these are CRUD-like operations, and are aimed to be be composable.
|
|
27
|
-
|
|
28
|
-
**Example**: A `ARC.addAssay` function has to do several things:
|
|
29
|
-
- Add a new assay to the `ISA`
|
|
30
|
-
- Add a new assay to the `FileSystem`
|
|
31
|
-
it should therefore combine the respective functions of `ISA API` and `FileSystem API` to achieve this.
|
|
32
|
-
|
|
33
|
-
- `Tools` or `Clients` are user-facing software such as Swate, ARCitect, or the ARCCommander. They should ideally compose their functionality from the `API`s and work with an in-memory representation of the ARC via `DataModel`s. There are operations such as IO for reading/writing actual files to the file system, which are not part of the `API`s, but rather part of the `Tools`.
|
|
34
|
-
|
|
35
|
-
## Local Setup
|
|
36
|
-
|
|
37
|
-
1. `dotnet tool restore`
|
|
38
|
-
2. `npm install` in *root* (this will also run `npm install` in `src/ISA`).
|
|
39
|
-
|
|
40
|
-
## API Design
|
|
41
|
-
|
|
42
|
-
Command syntax should be inspired by ArcCommander commands, as they are already well established and known to the power user base.
|
|
43
|
-
See syntax : https://nfdi4plants.github.io/arcCommander-docs/docs/01GeneralCLIStructure.html
|
|
44
|
-
See selection: https://nfdi4plants.github.io/arcCommander-docs/docs/02SubcommandVerbs.html
|
|
45
|
-
|
|
46
|
-
## Top level overview
|
|
47
|
-
|
|
48
|
-
In the following, the dependency graph of the proposed arcAPI toolstack can be seen:
|
|
49
|
-
|
|
50
|
-
```mermaid
|
|
51
|
-
flowchart TD
|
|
52
|
-
|
|
53
|
-
%% ----- Nodes ------
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
subgraph ARCtrl
|
|
57
|
-
arc[ARC]
|
|
58
|
-
|
|
59
|
-
subgraph ISA
|
|
60
|
-
isaj[ISA.Json]
|
|
61
|
-
isax[ISA.Spreadsheet]
|
|
62
|
-
isaa[ISA]
|
|
63
|
-
end
|
|
64
|
-
subgraph FileSystem
|
|
65
|
-
fs[FileSystem]
|
|
66
|
-
end
|
|
67
|
-
subgraph CWL
|
|
68
|
-
cwl[CWL]
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
subgraph DataTransferObject
|
|
73
|
-
fsspread[FsSpreadsheet]
|
|
74
|
-
thoth["Thoth.Json (string)"]
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
subgraph IO
|
|
78
|
-
node[node.fs]
|
|
79
|
-
fsspreadx[FsSpreadsheet.ExcelIO]
|
|
80
|
-
excelJS[exceljs]
|
|
81
|
-
systemio[System.IO]
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
%% ----- Edges ------
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
%% Arc
|
|
89
|
-
arc --> ISA
|
|
90
|
-
arc --> FileSystem
|
|
91
|
-
arc --> CWL
|
|
92
|
-
|
|
93
|
-
%% ISA
|
|
94
|
-
isaj --> isaa
|
|
95
|
-
isax --> isaa
|
|
96
|
-
isaj --> thoth
|
|
97
|
-
|
|
98
|
-
isax --> fsspread
|
|
99
|
-
|
|
100
|
-
%% ------ Tools ---------
|
|
101
|
-
|
|
102
|
-
subgraph Tools
|
|
103
|
-
arcdotnet[/arcIO.NET\]
|
|
104
|
-
arcitect[[ARCitect]]
|
|
105
|
-
arccom[[arcCommander]]
|
|
106
|
-
swate[[Swate]]
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
%% ----- Edges ------
|
|
110
|
-
|
|
111
|
-
Tools --> ARCtrl
|
|
112
|
-
|
|
113
|
-
arcdotnet --> fsspreadx
|
|
114
|
-
arcdotnet --> systemio
|
|
115
|
-
arcitect --> excelJS
|
|
116
|
-
arcitect --> node
|
|
117
|
-
arccom --> arcdotnet
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
fsspreadx -.-> fsspread
|
|
121
|
-
systemio -.-> thoth
|
|
122
|
-
excelJS -.-> fsspread
|
|
123
|
-
node -.-> thoth
|
|
124
|
-
|
|
125
|
-
%% ----- Styling ------
|
|
126
|
-
|
|
127
|
-
%% dotnet
|
|
128
|
-
style Tools stroke:#3A0EC6,stroke-width:2px
|
|
129
|
-
style fsspreadx fill:#8C71E3,stroke:#3A0EC6,stroke-width:2px,color: black
|
|
130
|
-
style arcdotnet fill:#8C71E3,stroke:#3A0EC6,stroke-width:2px,color: black
|
|
131
|
-
style arccom fill:#8C71E3,stroke:#3A0EC6,stroke-width:2px,color: black
|
|
132
|
-
style systemio fill:#8C71E3,stroke:#3A0EC6,stroke-width:2px,color: black
|
|
133
|
-
|
|
134
|
-
%% javascript
|
|
135
|
-
style excelJS fill:#C1AD09,stroke:#EFD81D,stroke-width:2px,color: black
|
|
136
|
-
style arcitect fill:#C1AD09,stroke:#EFD81D,stroke-width:2px,color: black
|
|
137
|
-
style swate fill:#C1AD09,stroke:#EFD81D,stroke-width:2px,color: black
|
|
138
|
-
style node fill:#C1AD09,stroke:#EFD81D,stroke-width:2px,color: black
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
%% fable
|
|
142
|
-
style ARCtrl stroke:#007B00,stroke-width:2px
|
|
143
|
-
style ISA stroke:#007B00,stroke-width:2px
|
|
144
|
-
style FileSystem stroke:#007B00,stroke-width:2px
|
|
145
|
-
style CWL stroke:#007B00,stroke-width:2px
|
|
146
|
-
style DataTransferObject stroke:#007B00,stroke-width:2px
|
|
17
|
+
```fsharp
|
|
18
|
+
#r "nuget: ARCtrl"
|
|
19
|
+
```
|
|
147
20
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
style isaa fill:#39B539,stroke:#007B00,stroke-width:2px,color: black
|
|
151
|
-
style isaj fill:#39B539,stroke:#007B00,stroke-width:2px,color: black
|
|
152
|
-
style arc fill:#39B539,stroke:#007B00,stroke-width:2px,color: black
|
|
153
|
-
style fs fill:#39B539,stroke:#007B00,stroke-width:2px,color: black
|
|
154
|
-
style cwl fill:#39B539,stroke:#007B00,stroke-width:2px,color: black
|
|
155
|
-
style thoth fill:#39B539,stroke:#007B00,stroke-width:2px,color: black
|
|
21
|
+
```bash
|
|
22
|
+
<PackageReference Include="ARCtrl" Version="1.0.0-beta.1" />
|
|
156
23
|
```
|
|
157
24
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
```mermaid
|
|
161
|
-
classDiagram
|
|
162
|
-
|
|
163
|
-
class arc["ARCtrl"] {
|
|
164
|
-
ISA
|
|
165
|
-
CWL
|
|
166
|
-
FileSystem
|
|
167
|
-
}
|
|
168
|
-
class isa["ISA"] {
|
|
169
|
-
Investigation
|
|
170
|
-
Studies
|
|
171
|
-
Assays
|
|
172
|
-
ArcTable
|
|
173
|
-
CompositeColumn
|
|
174
|
-
CompositeHeader
|
|
175
|
-
CompositeCell
|
|
176
|
-
}
|
|
177
|
-
class file ["FileSystem"] {
|
|
178
|
-
- FileSystemTree
|
|
179
|
-
- History
|
|
180
|
-
}
|
|
181
|
-
class cwl["CWL"] {
|
|
182
|
-
CommandlineTool?
|
|
183
|
-
Workflows
|
|
184
|
-
}
|
|
185
|
-
class io["IO"] {
|
|
186
|
-
FsSpreadsheet.ExcelIO
|
|
187
|
-
System.IO
|
|
188
|
-
exceljs
|
|
189
|
-
node fs
|
|
190
|
-
}
|
|
191
|
-
io <|--|> arc : Contracts
|
|
192
|
-
arc <|--|> isa
|
|
193
|
-
arc <|--|> cwl
|
|
194
|
-
arc <|--|> file
|
|
25
|
+
### JavaScript
|
|
195
26
|
|
|
27
|
+
```bash
|
|
28
|
+
npm i @nfdi4plants/arctrl
|
|
196
29
|
```
|
|
197
30
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
Mockups for each library are in the `ARC` folder. They contain API/Domain stubs to draft and test the new library designs.
|
|
31
|
+
## Docs
|
|
201
32
|
|
|
202
|
-
|
|
33
|
+
Currently we provide some documentation in form of markdown files in the `/docs` folder of this repository!
|
|
203
34
|
|
|
204
|
-
|
|
35
|
+
[Check it out!](/docs)
|
|
205
36
|
|
|
206
|
-
|
|
207
|
-
- we use classes with static members over nested modules
|
|
208
|
-
- we use the `[<AttachMembers>]` fable attribute for each class
|
|
209
|
-
- Using overloads with the `[<AttachMembers>]` attribute will make js functions shadow itself. Never use this!
|
|
210
|
-
- we use the `[<NamedParams(n)>]` fable attribute for all optional parameters in static methods that use tupled, named params.
|
|
211
|
-
- we use `Array<'T>` for all collections in F#, since they get transpiled to native js arrays.
|
|
212
|
-
- we use the `[<Erase>]` fable attribute for union cases that contain data
|
|
213
|
-
```fsharp
|
|
214
|
-
[<Erase>] type X = | Y of string | Z of int
|
|
215
|
-
```
|
|
216
|
-
- we use the `[<StringEnum>]` for unions that contain no data (e.g.)
|
|
217
|
-
```fsharp
|
|
218
|
-
[<StringEnum>] type YesOrNo = | Yes | No
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
**Example:**
|
|
222
|
-
|
|
223
|
-
```fsharp
|
|
224
|
-
[<AttachMembers>]
|
|
225
|
-
type Study =
|
|
226
|
-
{
|
|
227
|
-
Identifier : string option
|
|
228
|
-
Assays : Assay array option
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
[<NamedParams>]
|
|
232
|
-
static member create (?Identifier, ?Assays : Assay array) =
|
|
233
|
-
{
|
|
234
|
-
Identifier = Identifier
|
|
235
|
-
Assays = Assays
|
|
236
|
-
}
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
will become the following javascript code:
|
|
240
|
-
|
|
241
|
-
```javascript
|
|
242
|
-
export class Study extends Record {
|
|
243
|
-
constructor(Identifier, Assays) {
|
|
244
|
-
super();
|
|
245
|
-
this.Identifier = Identifier;
|
|
246
|
-
this.Assays = Assays;
|
|
247
|
-
}
|
|
248
|
-
static create({ Identifier, Assays }) {
|
|
249
|
-
return new Study(Identifier, Assays);
|
|
250
|
-
}
|
|
251
|
-
```
|
|
37
|
+
## Development
|
|
252
38
|
|
|
253
|
-
|
|
39
|
+
### Requirements
|
|
254
40
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
super();
|
|
261
|
-
this.Identifier = Identifier;
|
|
262
|
-
this.Assays = Assays;
|
|
263
|
-
}
|
|
264
|
-
static create({ Identifier, Assays }: {Identifier?: string, Assays?: Assay[] }): Study {
|
|
265
|
-
return new Study(Identifier, Assays);
|
|
266
|
-
}
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
## Development
|
|
41
|
+
- [nodejs and npm](https://nodejs.org/en/download)
|
|
42
|
+
- verify with `node --version` (Tested with v18.16.1)
|
|
43
|
+
- verify with `npm --version` (Tested with v9.2.0)
|
|
44
|
+
- [.NET SDK](https://dotnet.microsoft.com/en-us/download)
|
|
45
|
+
- verify with `dotnet --version` (Tested with 7.0.306)
|
|
270
46
|
|
|
271
|
-
### Setup
|
|
47
|
+
### Local Setup
|
|
272
48
|
|
|
273
49
|
1. `dotnet tool restore`
|
|
274
50
|
2. `dotnet paket install`
|
|
275
51
|
3. `npm install`
|
|
276
52
|
|
|
277
|
-
Verify correct setup with `./build.cmd runtests` ✨
|
|
53
|
+
Verify correct setup with `./build.cmd runtests` ✨
|
package/SemVer.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { match, create } from "./fable_modules/fable-library.4.1
|
|
2
|
-
import { toString, Record } from "./fable_modules/fable-library.4.1
|
|
3
|
-
import { record_type, option_type, string_type, int32_type } from "./fable_modules/fable-library.4.1
|
|
4
|
-
import { parse } from "./fable_modules/fable-library.4.1
|
|
5
|
-
import { value as value_3, unwrap } from "./fable_modules/fable-library.4.1
|
|
6
|
-
import { StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "./fable_modules/fable-library.4.1
|
|
7
|
-
import { printf, toText } from "./fable_modules/fable-library.4.1
|
|
1
|
+
import { match, create } from "./fable_modules/fable-library.4.4.1/RegExp.js";
|
|
2
|
+
import { toString, Record } from "./fable_modules/fable-library.4.4.1/Types.js";
|
|
3
|
+
import { record_type, option_type, string_type, int32_type } from "./fable_modules/fable-library.4.4.1/Reflection.js";
|
|
4
|
+
import { parse } from "./fable_modules/fable-library.4.4.1/Int32.js";
|
|
5
|
+
import { value as value_3, unwrap } from "./fable_modules/fable-library.4.4.1/Option.js";
|
|
6
|
+
import { StringBuilder__Append_Z721C83C5, StringBuilder_$ctor } from "./fable_modules/fable-library.4.4.1/System.Text.js";
|
|
7
|
+
import { printf, toText } from "./fable_modules/fable-library.4.4.1/String.js";
|
|
8
8
|
|
|
9
9
|
const SemVerAux_Pattern = "^(?<major>\\d+)(\\.(?<minor>\\d+))?(\\.(?<patch>\\d+))?(-(?<pre>[0-9A-Za-z-\\.]+))?(\\+(?<build>[0-9A-Za-z-\\.]+))?$";
|
|
10
10
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { toString } from "../fable_modules/fable-library.4.1
|
|
1
|
+
import { toString } from "../fable_modules/fable-library.4.4.1/Types.js";
|
|
2
2
|
import { dict, fromString, datetimeUtc, array as array_1, map as map_2, list as list_2, guid as guid_1, object as object_1, string, succeed, andThen } from "../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
3
|
-
import { uncurry2, uncurry3 } from "../fable_modules/fable-library.4.1
|
|
3
|
+
import { uncurry2, uncurry3 } from "../fable_modules/fable-library.4.4.1/Util.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_2, encoder } from "../ISA/ISA.Json/Person.js";
|
|
7
7
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../ISA/ISA.Json/Ontology.js";
|
|
8
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
|
-
import { ofArray, map } from "../fable_modules/fable-library.4.1
|
|
9
|
+
import { ofArray, map } from "../fable_modules/fable-library.4.4.1/List.js";
|
|
10
10
|
import { Process_decoder, Process_encoder } from "../ISA/ISA.Json/Process.js";
|
|
11
|
-
import { map as map_1, delay, toList } from "../fable_modules/fable-library.4.1
|
|
12
|
-
import {
|
|
13
|
-
import { printf, toFail } from "../fable_modules/fable-library.4.1
|
|
14
|
-
import { FSharpMap__get_Values } from "../fable_modules/fable-library.4.1
|
|
15
|
-
import { defaultArg } from "../fable_modules/fable-library.4.1
|
|
11
|
+
import { map as map_1, delay, toList } from "../fable_modules/fable-library.4.4.1/Seq.js";
|
|
12
|
+
import { ArcTables } from "../ISA/ISA/ArcTypes/ArcTables.js";
|
|
13
|
+
import { printf, toFail } from "../fable_modules/fable-library.4.4.1/String.js";
|
|
14
|
+
import { FSharpMap__get_Values } from "../fable_modules/fable-library.4.4.1/Map.js";
|
|
15
|
+
import { defaultArg } from "../fable_modules/fable-library.4.4.1/Option.js";
|
|
16
16
|
|
|
17
17
|
export const Organisation_encode = toString;
|
|
18
18
|
|
|
@@ -37,7 +37,10 @@ export const Template_decode = (() => {
|
|
|
37
37
|
const oaDecoder = OntologyAnnotation_decoder(ConverterOptions_$ctor());
|
|
38
38
|
return (path_10) => ((v) => object_1((get$) => {
|
|
39
39
|
let objectArg, arg_3, d, decoder, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, objectArg_7, objectArg_8, objectArg_9;
|
|
40
|
-
return Template.create((objectArg = get$.Required, objectArg.Field("id", guid_1)), (arg_3 = ((d = ((decoder = Process_decoder(ConverterOptions_$ctor()), (path_1) => ((value_1) => list_2(uncurry2(decoder), path_1, value_1)))), (path_2) => ((value_2) => map_2((ps) =>
|
|
40
|
+
return Template.create((objectArg = get$.Required, objectArg.Field("id", guid_1)), (arg_3 = ((d = ((decoder = Process_decoder(ConverterOptions_$ctor()), (path_1) => ((value_1) => list_2(uncurry2(decoder), path_1, value_1)))), (path_2) => ((value_2) => map_2((ps) => {
|
|
41
|
+
const arctbls = ArcTables.fromProcesses(ps);
|
|
42
|
+
return arctbls.Tables[0];
|
|
43
|
+
}, uncurry2(d), path_2, value_2)))), (objectArg_1 = get$.Required, objectArg_1.Field("table", uncurry2(arg_3)))), (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", uncurry2(Organisation_decode))), (objectArg_5 = get$.Required, objectArg_5.Field("version", string)), (objectArg_6 = get$.Required, objectArg_6.Field("authors", (path_6, value_6) => array_1(uncurry2(personDecoder), path_6, value_6))), (objectArg_7 = get$.Required, objectArg_7.Field("endpoint_repositories", (path_7, value_7) => array_1(uncurry2(oaDecoder), path_7, value_7))), (objectArg_8 = get$.Required, objectArg_8.Field("tags", (path_8, value_8) => array_1(uncurry2(oaDecoder), path_8, value_8))), (objectArg_9 = get$.Required, objectArg_9.Field("last_updated", datetimeUtc)));
|
|
41
44
|
}, path_10, v));
|
|
42
45
|
})();
|
|
43
46
|
|
|
@@ -1,25 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { toString, Record, FSharpException } from "../fable_modules/fable-library.4.4.1/Types.js";
|
|
2
|
+
import { record_type, list_type, string_type, class_type } from "../fable_modules/fable-library.4.4.1/Reflection.js";
|
|
3
|
+
import { toArray as toArray_1, append as append_1, reverse, map, empty, ofArray } from "../fable_modules/fable-library.4.4.1/List.js";
|
|
2
4
|
import { toRows, fromRows, toSparseTable, fromSparseTable } from "../ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js";
|
|
3
|
-
import { toString, Record } from "../fable_modules/fable-library.4.1.4/Types.js";
|
|
4
|
-
import { record_type, list_type, string_type } from "../fable_modules/fable-library.4.1.4/Reflection.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.1
|
|
10
|
-
import { List_distinct } from "../fable_modules/fable-library.4.1
|
|
11
|
-
import { getEnumerator, stringHash } from "../fable_modules/fable-library.4.1
|
|
12
|
-
import { tryPick, iterateIndexed, delay, singleton, append, head, exists, map as map_1 } from "../fable_modules/fable-library.4.1
|
|
9
|
+
import { addToDict } from "../fable_modules/fable-library.4.4.1/MapUtil.js";
|
|
10
|
+
import { List_distinct } from "../fable_modules/fable-library.4.4.1/Seq2.js";
|
|
11
|
+
import { getEnumerator, stringHash } from "../fable_modules/fable-library.4.4.1/Util.js";
|
|
12
|
+
import { tryPick, iterateIndexed, delay, singleton, append, head, exists, map as map_1 } from "../fable_modules/fable-library.4.4.1/Seq.js";
|
|
13
13
|
import { Person } from "../ISA/ISA/JsonTypes/Person.js";
|
|
14
|
-
import { toArray } from "../fable_modules/fable-library.4.1
|
|
14
|
+
import { toArray } from "../fable_modules/fable-library.4.4.1/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.1
|
|
16
|
+
import { parse } from "../fable_modules/fable-library.4.4.1/Guid.js";
|
|
17
17
|
import { Template, Organisation } from "./Template.js";
|
|
18
|
-
import { FsWorksheet } from "../fable_modules/FsSpreadsheet.
|
|
19
|
-
import { printf, toFail } from "../fable_modules/fable-library.4.1.4/String.js";
|
|
18
|
+
import { FsWorksheet } from "../fable_modules/FsSpreadsheet.5.0.1/FsWorksheet.fs.js";
|
|
20
19
|
import { toFsWorksheet, tryFromFsWorksheet } from "../ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js";
|
|
21
|
-
import { now } from "../fable_modules/fable-library.4.1
|
|
22
|
-
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.
|
|
20
|
+
import { now } from "../fable_modules/fable-library.4.4.1/Date.js";
|
|
21
|
+
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.5.0.1/FsWorkbook.fs.js";
|
|
22
|
+
|
|
23
|
+
export class TemplateReadError extends FSharpException {
|
|
24
|
+
constructor(Data0) {
|
|
25
|
+
super();
|
|
26
|
+
this.Data0 = Data0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function TemplateReadError_$reflection() {
|
|
31
|
+
return class_type("ARCtrl.Template.Spreadsheet.TemplateReadError", void 0, TemplateReadError, class_type("System.Exception"));
|
|
32
|
+
}
|
|
23
33
|
|
|
24
34
|
export const Metadata_ER_labels = ofArray(["ER", "ER Term Accession Number", "ER Term Source REF"]);
|
|
25
35
|
|
|
@@ -251,12 +261,12 @@ export function Metadata_Template_toRows(template) {
|
|
|
251
261
|
}
|
|
252
262
|
|
|
253
263
|
export function Template_fromParts(templateInfo, ers, tags, authors, table, lastUpdated) {
|
|
254
|
-
const
|
|
255
|
-
const
|
|
256
|
-
const
|
|
257
|
-
const
|
|
258
|
-
const
|
|
259
|
-
return Template.make(
|
|
264
|
+
const id = parse(templateInfo.Id);
|
|
265
|
+
const organisation = Organisation.ofString(templateInfo.Organisation);
|
|
266
|
+
const authors_1 = toArray_1(authors);
|
|
267
|
+
const repos = toArray_1(ers);
|
|
268
|
+
const tags_1 = toArray_1(tags);
|
|
269
|
+
return Template.make(id, table, templateInfo.Name, templateInfo.Description, organisation, templateInfo.Version, authors_1, repos, tags_1, lastUpdated);
|
|
260
270
|
}
|
|
261
271
|
|
|
262
272
|
export function Template_toMetadataSheet(template) {
|
|
@@ -275,7 +285,7 @@ export function Template_fromMetadataSheet(sheet) {
|
|
|
275
285
|
* Reads an assay from a spreadsheet
|
|
276
286
|
*/
|
|
277
287
|
export function Template_fromFsWorkbook(doc) {
|
|
278
|
-
let matchValue_2, matchValue_4, ws_3, matchValue_5,
|
|
288
|
+
let matchValue_2, matchValue_4, ws_3, matchValue_5, ws_2, matchValue_3;
|
|
279
289
|
let patternInput;
|
|
280
290
|
const matchValue = doc.TryGetWorksheetByName("isa_template");
|
|
281
291
|
if (matchValue == null) {
|
|
@@ -301,15 +311,21 @@ export function Template_fromFsWorkbook(doc) {
|
|
|
301
311
|
else {
|
|
302
312
|
return void 0;
|
|
303
313
|
}
|
|
304
|
-
}, sheets), (matchValue_4 == null) ?
|
|
314
|
+
}, sheets), (matchValue_4 == null) ? (() => {
|
|
315
|
+
throw new TemplateReadError(`No worksheet or table with name \`${templateInfo.Table}\` found`);
|
|
316
|
+
})() : ((ws_3 = matchValue_4, (matchValue_5 = tryFromFsWorksheet(ws_3), (matchValue_5 == null) ? (() => {
|
|
317
|
+
throw new TemplateReadError(`Ws with name \`${ws_3.Name}\` could not be converted to a table`);
|
|
318
|
+
})() : matchValue_5))))) : ((ws_2 = matchValue_2, (matchValue_3 = tryFromFsWorksheet(ws_2), (matchValue_3 == null) ? (() => {
|
|
319
|
+
throw new TemplateReadError(`Ws with name \`${ws_2.Name}\` could not be converted to a table`);
|
|
320
|
+
})() : matchValue_3)))), now());
|
|
305
321
|
}
|
|
306
322
|
|
|
307
323
|
export function Template_toFsWorkbook(template) {
|
|
308
324
|
const doc = new FsWorkbook();
|
|
309
325
|
const metaDataSheet = Template_toMetadataSheet(template);
|
|
310
326
|
doc.AddWorksheet(metaDataSheet);
|
|
311
|
-
const
|
|
312
|
-
doc.AddWorksheet(
|
|
327
|
+
const sheet = toFsWorksheet(template.Table);
|
|
328
|
+
doc.AddWorksheet(sheet);
|
|
313
329
|
return doc;
|
|
314
330
|
}
|
|
315
331
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defaultArg } from "../fable_modules/fable-library.4.1
|
|
2
|
-
import { singleton } from "../fable_modules/fable-library.4.1
|
|
1
|
+
import { defaultArg } from "../fable_modules/fable-library.4.4.1/Option.js";
|
|
2
|
+
import { singleton } from "../fable_modules/fable-library.4.4.1/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.1
|
|
6
|
-
import { class_type } from "../fable_modules/fable-library.4.1
|
|
5
|
+
import { startAsPromise } from "../fable_modules/fable-library.4.4.1/Async.js";
|
|
6
|
+
import { class_type } from "../fable_modules/fable-library.4.4.1/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.1
|
|
2
|
-
import { Union } from "../fable_modules/fable-library.4.1
|
|
3
|
-
import { class_type, union_type, string_type } from "../fable_modules/fable-library.4.1
|
|
4
|
-
import { defaultArg, unwrap } from "../fable_modules/fable-library.4.1
|
|
5
|
-
import { newGuid } from "../fable_modules/fable-library.4.1
|
|
1
|
+
import { identityHash, safeHash, stringHash, equals } from "../fable_modules/fable-library.4.4.1/Util.js";
|
|
2
|
+
import { Union } from "../fable_modules/fable-library.4.4.1/Types.js";
|
|
3
|
+
import { class_type, union_type, string_type } from "../fable_modules/fable-library.4.4.1/Reflection.js";
|
|
4
|
+
import { defaultArg, unwrap } from "../fable_modules/fable-library.4.4.1/Option.js";
|
|
5
|
+
import { newGuid } from "../fable_modules/fable-library.4.4.1/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.1
|
|
9
|
-
import { toUniversalTime, now, equals as equals_1 } from "../fable_modules/fable-library.4.1
|
|
8
|
+
import { equalsWith } from "../fable_modules/fable-library.4.4.1/Array.js";
|
|
9
|
+
import { toUniversalTime, now, equals as equals_1 } from "../fable_modules/fable-library.4.4.1/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.1
|
|
2
|
-
import { append, addRangeInPlace, collect, contains as contains_1 } from "../fable_modules/fable-library.4.1
|
|
3
|
-
import { uncurry2, safeHash, equals } from "../fable_modules/fable-library.4.1
|
|
4
|
-
import { Array_distinct } from "../fable_modules/fable-library.4.1
|
|
5
|
-
import { class_type } from "../fable_modules/fable-library.4.1
|
|
1
|
+
import { defaultArg } from "../fable_modules/fable-library.4.4.1/Option.js";
|
|
2
|
+
import { append, addRangeInPlace, collect, contains as contains_1 } from "../fable_modules/fable-library.4.4.1/Array.js";
|
|
3
|
+
import { uncurry2, safeHash, equals } from "../fable_modules/fable-library.4.4.1/Util.js";
|
|
4
|
+
import { Array_distinct } from "../fable_modules/fable-library.4.4.1/Seq2.js";
|
|
5
|
+
import { class_type } from "../fable_modules/fable-library.4.4.1/Reflection.js";
|
|
6
6
|
|
|
7
7
|
export function TemplatesAux_getComparer(matchAll) {
|
|
8
8
|
if (defaultArg(matchAll, false)) {
|
package/WebRequest/WebRequest.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { awaitPromise } from "../fable_modules/fable-library.4.1
|
|
1
|
+
import { awaitPromise } from "../fable_modules/fable-library.4.4.1/Async.js";
|
|
2
2
|
import { fetch$ } from "../fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js";
|
|
3
|
-
import { empty } from "../fable_modules/fable-library.4.1
|
|
4
|
-
import { singleton } from "../fable_modules/fable-library.4.1
|
|
3
|
+
import { empty } from "../fable_modules/fable-library.4.4.1/List.js";
|
|
4
|
+
import { singleton } from "../fable_modules/fable-library.4.4.1/AsyncBuilder.js";
|
|
5
5
|
import { Http_get } from "../fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js";
|
|
6
|
-
import { printf, toFail } from "../fable_modules/fable-library.4.1
|
|
6
|
+
import { printf, toFail } from "../fable_modules/fable-library.4.4.1/String.js";
|
|
7
7
|
import "isomorphic-fetch";
|
|
8
8
|
|
|
9
9
|
export function NodeJs_isNode() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Union } from "../fable-library.4.1
|
|
2
|
-
import { array_type, tuple_type, bool_type, class_type, union_type, obj_type, int32_type, string_type } from "../fable-library.4.1
|
|
3
|
-
import { defaultArg } from "../fable-library.4.1
|
|
4
|
-
import { empty } from "../fable-library.4.1
|
|
5
|
-
import { keyValueList } from "../fable-library.4.1
|
|
6
|
-
import { int32ToString } from "../fable-library.4.1
|
|
7
|
-
import { result } from "../Fable.Promise.
|
|
8
|
-
import { singleton } from "../fable-library.4.1
|
|
1
|
+
import { Union } from "../fable-library.4.4.1/Types.js";
|
|
2
|
+
import { array_type, tuple_type, bool_type, class_type, union_type, obj_type, int32_type, string_type } from "../fable-library.4.4.1/Reflection.js";
|
|
3
|
+
import { defaultArg } from "../fable-library.4.4.1/Option.js";
|
|
4
|
+
import { empty } from "../fable-library.4.4.1/Seq.js";
|
|
5
|
+
import { keyValueList } from "../fable-library.4.4.1/MapUtil.js";
|
|
6
|
+
import { int32ToString } from "../fable-library.4.4.1/Util.js";
|
|
7
|
+
import { result } from "../Fable.Promise.2.2.2/Promise.fs.js";
|
|
8
|
+
import { singleton } from "../fable-library.4.4.1/List.js";
|
|
9
9
|
|
|
10
10
|
export class Types_HttpRequestHeaders extends Union {
|
|
11
11
|
constructor(tag, fields) {
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
3
3
|
<PropertyGroup>
|
|
4
|
-
<Version>
|
|
5
|
-
<PackageVersion>
|
|
4
|
+
<Version>2.2.2</Version>
|
|
5
|
+
<PackageVersion>2.2.2</PackageVersion>
|
|
6
6
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
7
7
|
</PropertyGroup>
|
|
8
8
|
<ItemGroup>
|
|
9
9
|
<Compile Include="Promise.fs" />
|
|
10
10
|
<Compile Include="PromiseImpl.fs" />
|
|
11
|
-
<Compile Include="AsyncIterable.fs" />
|
|
12
11
|
</ItemGroup>
|
|
13
12
|
<ItemGroup>
|
|
14
13
|
<Content Include="*.fsproj; *.fs" PackagePath="fable\" />
|
|
15
14
|
</ItemGroup>
|
|
16
15
|
<ItemGroup>
|
|
17
|
-
<PackageReference Include="Fable.Core" Version="3.
|
|
16
|
+
<PackageReference Include="Fable.Core" Version="3.1.5" />
|
|
18
17
|
<PackageReference Update="FSharp.Core" Version="4.7.2" />
|
|
19
18
|
</ItemGroup>
|
|
20
19
|
</Project>
|