@nfdi4plants/arctrl 3.0.0-beta.5 → 3.0.0-beta.6
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/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
- package/dist/ts/ts/ARC.d.ts +12 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +172 -93
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +8 -1
- package/dist/ts/ts/Contract/ArcAssay.js +14 -5
- package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
- package/dist/ts/ts/Contract/ArcRun.js +19 -6
- package/dist/ts/ts/Contract/ArcStudy.js +19 -6
- package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
- package/dist/ts/ts/Contract/Contract.js +42 -1
- package/dist/ts/ts/Contract/Datamap.js +61 -17
- package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +22 -6
- package/dist/ts/ts/Contract/License.d.ts +5 -0
- package/dist/ts/ts/Contract/License.d.ts.map +1 -0
- package/dist/ts/ts/Contract/License.js +34 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
- package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
- package/dist/ts/ts/Conversion.js +321 -48
- package/dist/ts/ts/Core/ArcTypes.js +216 -15
- package/dist/ts/ts/Core/Comment.js +11 -1
- package/dist/ts/ts/Core/CommentList.js +77 -2
- package/dist/ts/ts/Core/Conversion.js +123 -43
- package/dist/ts/ts/Core/Data.js +9 -2
- package/dist/ts/ts/Core/DataContext.js +19 -4
- package/dist/ts/ts/Core/DataFile.js +38 -1
- package/dist/ts/ts/Core/DataMap.js +111 -5
- package/dist/ts/ts/Core/Helper/Collections.js +106 -5
- package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
- package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
- package/dist/ts/ts/Core/Helper/Regex.js +134 -2
- package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -3
- package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
- package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
- package/dist/ts/ts/Core/Person.js +8 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
- package/dist/ts/ts/Core/Process/Component.js +37 -4
- package/dist/ts/ts/Core/Process/Factor.js +9 -4
- package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
- package/dist/ts/ts/Core/Process/Material.js +14 -4
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
- package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
- package/dist/ts/ts/Core/Process/Process.js +150 -7
- package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
- package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
- package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
- package/dist/ts/ts/Core/Process/Protocol.js +78 -4
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
- package/dist/ts/ts/Core/Process/Sample.js +21 -3
- package/dist/ts/ts/Core/Process/Source.js +13 -3
- package/dist/ts/ts/Core/Publication.js +8 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
- package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
- package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
- package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
- package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
- package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
- package/dist/ts/ts/Core/Template.js +12 -2
- package/dist/ts/ts/Core/Templates.js +8 -4
- package/dist/ts/ts/Core/Value.js +7 -3
- package/dist/ts/ts/CrossAsync.js +11 -1
- package/dist/ts/ts/FileSystem/Commit.js +18 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
- package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +17 -3
- package/dist/ts/ts/Json/Assay.js +26 -26
- package/dist/ts/ts/Json/Comment.js +10 -10
- package/dist/ts/ts/Json/Data.js +6 -6
- package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
- package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
- package/dist/ts/ts/Json/Decode.js +14 -9
- package/dist/ts/ts/Json/Encode.js +43 -11
- package/dist/ts/ts/Json/Investigation.js +40 -22
- package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
- package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
- package/dist/ts/ts/Json/Person.js +26 -26
- package/dist/ts/ts/Json/Process/Component.js +9 -6
- package/dist/ts/ts/Json/Process/Factor.js +3 -3
- package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
- package/dist/ts/ts/Json/Process/Material.js +9 -9
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
- package/dist/ts/ts/Json/Process/Process.js +12 -12
- package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
- package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +10 -7
- package/dist/ts/ts/Json/Process/Protocol.js +12 -12
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +3 -3
- package/dist/ts/ts/Json/Process/Sample.js +14 -14
- package/dist/ts/ts/Json/Process/Source.js +9 -9
- package/dist/ts/ts/Json/Process/Value.js +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +1 -1
- package/dist/ts/ts/Json/Publication.js +6 -6
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
- package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
- package/dist/ts/ts/Json/Run.js +7 -7
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +32 -32
- package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
- package/dist/ts/ts/Json/Table/CellTable.js +6 -6
- package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
- package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
- package/dist/ts/ts/Json/Table/IOType.js +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +7 -7
- package/dist/ts/ts/Json/Table/Templates.js +92 -6
- package/dist/ts/ts/Json/Workflow.js +11 -11
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
- package/dist/ts/ts/Json.d.ts +13 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +89 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- package/dist/ts/ts/JsonIO/Investigation.js +15 -3
- package/dist/ts/ts/JsonIO/LDObject.js +17 -3
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
- package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
- package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Person.js +67 -0
- package/dist/ts/ts/JsonIO/Run.js +9 -3
- package/dist/ts/ts/JsonIO/Study.js +15 -3
- package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
- package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
- package/dist/ts/ts/JsonIO/Workflow.js +9 -3
- package/dist/ts/ts/License.d.ts +39 -0
- package/dist/ts/ts/License.d.ts.map +1 -0
- package/dist/ts/ts/License.js +123 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
- package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
- package/dist/ts/ts/ROCrate/LDContext.js +15 -6
- package/dist/ts/ts/ROCrate/LDObject.js +53 -17
- package/dist/ts/ts/ROCrateIO.d.ts +9 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +67 -14
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
- package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
- package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/Template.Web.js +5 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
- package/dist/ts/ts/Xlsx.js +41 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
- package/package.json +1 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { map, value, defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { Json_Object } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
3
|
+
import { isEmpty, map as map$1, append, toArray } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
4
|
import { seq, list, tuple2 } from '../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
4
|
-
import { item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
5
|
-
import { isEmpty as isEmpty$1, map as map$
|
|
5
|
+
import { map as map$2, item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
6
|
+
import { isEmpty as isEmpty$1, map as map$3 } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
6
7
|
import { toString } from '../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
7
8
|
import { count } from '../../node_modules/@fable-org/fable-library-js/CollectionUtil.js';
|
|
8
9
|
import { toFail, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
@@ -11,32 +12,63 @@ function tryInclude(name, encoder, value) {
|
|
|
11
12
|
return [name, map(encoder, value)];
|
|
12
13
|
}
|
|
13
14
|
function tryIncludeSeq(name, encoder, value) {
|
|
14
|
-
return [name, isEmpty(value) ? void 0 : seq(map$
|
|
15
|
+
return [name, isEmpty(value) ? void 0 : seq(map$1(encoder, value))];
|
|
16
|
+
}
|
|
17
|
+
function tryIncludeArray(name, encoder, value) {
|
|
18
|
+
let values;
|
|
19
|
+
return [name, value.length === 0 ? void 0 : (values = map$2(encoder, value), {
|
|
20
|
+
Encode(helpers) {
|
|
21
|
+
const arg = map$2((v) => v.Encode(helpers), values);
|
|
22
|
+
return helpers.encodeArray(arg);
|
|
23
|
+
}
|
|
24
|
+
})];
|
|
15
25
|
}
|
|
16
26
|
function tryIncludeList(name, encoder, value) {
|
|
17
|
-
return [name, isEmpty$1(value) ? void 0 : list(map$
|
|
27
|
+
return [name, isEmpty$1(value) ? void 0 : list(map$3(encoder, value))];
|
|
18
28
|
}
|
|
19
29
|
function tryIncludeListOpt(name, encoder, value$1) {
|
|
20
30
|
let o;
|
|
21
|
-
return [name, value$1 != null ? (o = value(value$1), isEmpty$1(o) ? void 0 : list(map$
|
|
31
|
+
return [name, value$1 != null ? (o = value(value$1), isEmpty$1(o) ? void 0 : list(map$3(encoder, o))) : void 0];
|
|
22
32
|
}
|
|
23
33
|
const DefaultSpaces = 0;
|
|
24
34
|
function defaultSpaces(spaces) {
|
|
25
35
|
return defaultArg(spaces, DefaultSpaces);
|
|
26
36
|
}
|
|
27
37
|
function dateTime(d) {
|
|
28
|
-
const value = item(0, toString(d, "O").split("+"));
|
|
38
|
+
const value = item(0, toString(d, "O", {}).split("+"));
|
|
29
39
|
return {
|
|
30
40
|
Encode(helpers) {
|
|
31
41
|
return helpers.encodeString(value);
|
|
32
42
|
}
|
|
33
43
|
};
|
|
34
44
|
}
|
|
45
|
+
function addPropertyToObject(name, value, obj) {
|
|
46
|
+
if (obj.tag === /* Object */
|
|
47
|
+
5) {
|
|
48
|
+
return Json_Object(append(obj.fields[0], [[name, value]]));
|
|
49
|
+
} else {
|
|
50
|
+
throw new Error("Expected object");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
35
53
|
function resizeArrayOrSingleton(encoder, values) {
|
|
36
54
|
if (values.length === 1) {
|
|
37
55
|
return encoder(values[0]);
|
|
38
56
|
} else {
|
|
39
|
-
return seq(map$
|
|
57
|
+
return seq(map$1(encoder, values));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function dictionary(keyEncoder, valueEncoder, values) {
|
|
61
|
+
if (count(values) === 0) {
|
|
62
|
+
return {
|
|
63
|
+
Encode(helpers) {
|
|
64
|
+
return helpers.encodeNull();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
} else {
|
|
68
|
+
return seq(toArray(map$1((_arg) => {
|
|
69
|
+
const activePatternResult = _arg;
|
|
70
|
+
return tuple2(keyEncoder, valueEncoder, activePatternResult[0], activePatternResult[1]);
|
|
71
|
+
}, values)));
|
|
40
72
|
}
|
|
41
73
|
}
|
|
42
74
|
function intDictionary(valueEncoder, values) {
|
|
@@ -47,7 +79,7 @@ function intDictionary(valueEncoder, values) {
|
|
|
47
79
|
}
|
|
48
80
|
};
|
|
49
81
|
} else {
|
|
50
|
-
return seq(toArray(map$
|
|
82
|
+
return seq(toArray(map$1((_arg) => {
|
|
51
83
|
const activePatternResult = _arg;
|
|
52
84
|
const k = activePatternResult[0] | 0;
|
|
53
85
|
if (k > 2147483647 ? true : k < -2147483648) {
|
|
@@ -62,4 +94,4 @@ function intDictionary(valueEncoder, values) {
|
|
|
62
94
|
}
|
|
63
95
|
}
|
|
64
96
|
|
|
65
|
-
export { DefaultSpaces, dateTime, defaultSpaces, intDictionary, resizeArrayOrSingleton, tryInclude, tryIncludeList, tryIncludeListOpt, tryIncludeSeq };
|
|
97
|
+
export { DefaultSpaces, addPropertyToObject, dateTime, defaultSpaces, dictionary, intDictionary, resizeArrayOrSingleton, tryInclude, tryIncludeArray, tryIncludeList, tryIncludeListOpt, tryIncludeSeq };
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { ofArray, unzip, empty
|
|
2
|
-
import {
|
|
1
|
+
import { choose, ofArray, unzip, empty } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { map, unwrap, defaultArg, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { encoder as encoder$1, decoder as decoder$1, ROCrate_encoder as ROCrate_encoder$1, ROCrate_decoder as ROCrate_decoder$2, ISAJson_encoder as ISAJson_encoder$1, ISAJson_decoder as ISAJson_decoder$2 } from './OntologySourceReference.js';
|
|
5
|
+
import { encoder as encoder$2, decoder as decoder$2, ROCrate_encoder as ROCrate_encoder$2, ROCrate_decoder as ROCrate_decoder$3, ISAJson_encoder as ISAJson_encoder$2, ISAJson_decoder as ISAJson_decoder$3 } from './Publication.js';
|
|
6
|
+
import { encoder as encoder$3, decoder as decoder$3, ROCrate_encoder as ROCrate_encoder$3, ROCrate_decoder as ROCrate_decoder$4, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$4 } from './Person.js';
|
|
7
|
+
import { encoder as encoder$4, decoder as decoder$4, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$1 } from './Assay.js';
|
|
8
8
|
import { ArcInvestigation } from '../Core/ArcTypes.js';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { encoder as encoder$5, decoder as decoder$5, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$2, ROCrate_encoder as ROCrate_encoder$4, ROCrate_decoder as ROCrate_decoder$1, ISAJson_encoder as ISAJson_encoder$4, ISAJson_decoder as ISAJson_decoder$1 } from './Study.js';
|
|
10
|
+
import { encoder as encoder$6, decoder as decoder$6, ROCrate_encoder as ROCrate_encoder$5, ROCrate_decoder as ROCrate_decoder$5, ISAJson_encoder as ISAJson_encoder$5, ISAJson_decoder as ISAJson_decoder$5 } from './Comment.js';
|
|
11
|
+
import { map as map$1, concat } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
12
|
+
import { object, string, resizeArray, list } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
13
13
|
import { stringHash } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
14
|
-
import {
|
|
14
|
+
import { today, toString } from '../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
15
15
|
import { context_jsonvalue } from './context/rocrate/isa_investigation_context.js';
|
|
16
16
|
import { createMissingIdentifier } from '../Core/Helper/Identifier.js';
|
|
17
17
|
import { distinctBy } from '../../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
18
|
+
import { conformsTo_jsonvalue, context_jsonvalue as context_jsonvalue$1 } from './context/rocrate/rocrate_context.js';
|
|
18
19
|
import { Decode_objectNoAdditionalProperties } from './Decode.js';
|
|
19
20
|
|
|
20
21
|
function encoder(inv) {
|
|
21
22
|
let value;
|
|
22
|
-
const values_1 = choose((tupledArg) => map
|
|
23
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = inv.Identifier, {
|
|
23
24
|
Encode(helpers) {
|
|
24
25
|
return helpers.encodeString(value);
|
|
25
26
|
}
|
|
@@ -46,7 +47,7 @@ function encoder(inv) {
|
|
|
46
47
|
}), inv.RegisteredStudyIdentifiers), tryIncludeSeq("Comments", encoder$6, inv.Comments)]));
|
|
47
48
|
return {
|
|
48
49
|
Encode(helpers_6) {
|
|
49
|
-
const arg = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
50
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
50
51
|
return helpers_6.encodeObject(arg);
|
|
51
52
|
}
|
|
52
53
|
};
|
|
@@ -57,7 +58,7 @@ const decoder = object((get$) => {
|
|
|
57
58
|
});
|
|
58
59
|
function encoderCompressed(stringTable, oaTable, cellTable, inv) {
|
|
59
60
|
let value;
|
|
60
|
-
const values_1 = choose((tupledArg) => map
|
|
61
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = inv.Identifier, {
|
|
61
62
|
Encode(helpers) {
|
|
62
63
|
return helpers.encodeString(value);
|
|
63
64
|
}
|
|
@@ -84,7 +85,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, inv) {
|
|
|
84
85
|
}), inv.RegisteredStudyIdentifiers), tryIncludeSeq("Comments", encoder$6, inv.Comments)]));
|
|
85
86
|
return {
|
|
86
87
|
Encode(helpers_6) {
|
|
87
|
-
const arg = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
88
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
88
89
|
return helpers_6.encodeObject(arg);
|
|
89
90
|
}
|
|
90
91
|
};
|
|
@@ -100,7 +101,7 @@ function ROCrate_genID(i) {
|
|
|
100
101
|
}
|
|
101
102
|
function ROCrate_encoder(oa) {
|
|
102
103
|
let value, value_3, value_4, value_12, copyOfStruct;
|
|
103
|
-
const values_1 = choose((tupledArg) => map
|
|
104
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = ROCrate_genID(oa), {
|
|
104
105
|
Encode(helpers) {
|
|
105
106
|
return helpers.encodeString(value);
|
|
106
107
|
}
|
|
@@ -139,7 +140,7 @@ function ROCrate_encoder(oa) {
|
|
|
139
140
|
})], tryIncludeSeq("ontologySourceReferences", ROCrate_encoder$1, oa.OntologySourceReferences), tryIncludeSeq("publications", ROCrate_encoder$2, oa.Publications), tryIncludeSeq("people", ROCrate_encoder$3, oa.Contacts), tryIncludeSeq("studies", (s) => ROCrate_encoder$4(void 0, s), oa.Studies), tryIncludeSeq("comments", ROCrate_encoder$5, oa.Comments), ["@context", context_jsonvalue]]));
|
|
140
141
|
return {
|
|
141
142
|
Encode(helpers_9) {
|
|
142
|
-
const arg = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_9)], values_1);
|
|
143
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_9)], values_1);
|
|
143
144
|
return helpers_9.encodeObject(arg);
|
|
144
145
|
}
|
|
145
146
|
};
|
|
@@ -161,14 +162,31 @@ const ROCrate_decoder = object((get$) => {
|
|
|
161
162
|
assays = Array.from(collection);
|
|
162
163
|
const studies = Array.from(studiesRaw);
|
|
163
164
|
let studyIdentifiers;
|
|
164
|
-
const collection_1 = map((a_1) => a_1.Identifier, studiesRaw);
|
|
165
|
+
const collection_1 = map$1((a_1) => a_1.Identifier, studiesRaw);
|
|
165
166
|
studyIdentifiers = Array.from(collection_1);
|
|
166
167
|
return new ArcInvestigation(identifier, unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("title", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("description", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("submissionDate", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("publicReleaseDate", string))), unwrap((arg_13 = resizeArray(ROCrate_decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("ontologySourceReferences", arg_13))), unwrap((arg_15 = resizeArray(ROCrate_decoder$3), objectArg_7 = get$.Optional, objectArg_7.Field("publications", arg_15))), unwrap((arg_17 = resizeArray(ROCrate_decoder$4), objectArg_8 = get$.Optional, objectArg_8.Field("people", arg_17))), assays, studies, void 0, void 0, studyIdentifiers, unwrap((arg_19 = resizeArray(ROCrate_decoder$5), objectArg_9 = get$.Optional, objectArg_9.Field("comments", arg_19))));
|
|
167
168
|
});
|
|
169
|
+
function ROCrate_encodeRoCrate(oa) {
|
|
170
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("@type", (value) => ({
|
|
171
|
+
Encode(helpers) {
|
|
172
|
+
return helpers.encodeString(value);
|
|
173
|
+
}
|
|
174
|
+
}), "CreativeWork"), tryInclude("@id", (value_2) => ({
|
|
175
|
+
Encode(helpers_1) {
|
|
176
|
+
return helpers_1.encodeString(value_2);
|
|
177
|
+
}
|
|
178
|
+
}), "ro-crate-metadata.json"), tryInclude("about", ROCrate_encoder, oa), ["conformsTo", conformsTo_jsonvalue], ["@context", context_jsonvalue$1]]));
|
|
179
|
+
return {
|
|
180
|
+
Encode(helpers_2) {
|
|
181
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_2)], values_1);
|
|
182
|
+
return helpers_2.encodeObject(arg);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
168
186
|
const ISAJson_allowedFields = ofArray(["@id", "filename", "identifier", "title", "description", "submissionDate", "publicReleaseDate", "ontologySourceReferences", "publications", "people", "studies", "comments", "@type", "@context"]);
|
|
169
187
|
function ISAJson_encoder(idMap, inv) {
|
|
170
188
|
let value, value_1, value_2;
|
|
171
|
-
const values_1 = choose((tupledArg) => map
|
|
189
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = ROCrate_genID(inv), {
|
|
172
190
|
Encode(helpers) {
|
|
173
191
|
return helpers.encodeString(value);
|
|
174
192
|
}
|
|
@@ -199,7 +217,7 @@ function ISAJson_encoder(idMap, inv) {
|
|
|
199
217
|
}), inv.PublicReleaseDate), tryIncludeSeq("ontologySourceReferences", (osr) => ISAJson_encoder$1(idMap, osr), inv.OntologySourceReferences), tryIncludeSeq("publications", (oa) => ISAJson_encoder$2(idMap, oa), inv.Publications), tryIncludeSeq("people", (person) => ISAJson_encoder$3(idMap, person), inv.Contacts), tryIncludeSeq("studies", (s) => ISAJson_encoder$4(idMap, void 0, s), inv.Studies), tryIncludeSeq("comments", (comment) => ISAJson_encoder$5(idMap, comment), inv.Comments)]));
|
|
200
218
|
return {
|
|
201
219
|
Encode(helpers_7) {
|
|
202
|
-
const arg = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_7)], values_1);
|
|
220
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_7)], values_1);
|
|
203
221
|
return helpers_7.encodeObject(arg);
|
|
204
222
|
}
|
|
205
223
|
};
|
|
@@ -221,9 +239,9 @@ const ISAJson_decoder = Decode_objectNoAdditionalProperties(ISAJson_allowedField
|
|
|
221
239
|
assays = Array.from(collection);
|
|
222
240
|
const studies = Array.from(studiesRaw);
|
|
223
241
|
let studyIdentifiers;
|
|
224
|
-
const collection_1 = map((a_1) => a_1.Identifier, studiesRaw);
|
|
242
|
+
const collection_1 = map$1((a_1) => a_1.Identifier, studiesRaw);
|
|
225
243
|
studyIdentifiers = Array.from(collection_1);
|
|
226
244
|
return new ArcInvestigation(identifer, unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("title", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("description", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("submissionDate", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("publicReleaseDate", string))), unwrap((arg_13 = resizeArray(ISAJson_decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("ontologySourceReferences", arg_13))), unwrap((arg_15 = resizeArray(ISAJson_decoder$3), objectArg_7 = get$.Optional, objectArg_7.Field("publications", arg_15))), unwrap((arg_17 = resizeArray(ISAJson_decoder$4), objectArg_8 = get$.Optional, objectArg_8.Field("people", arg_17))), assays, studies, void 0, void 0, studyIdentifiers, unwrap((arg_19 = resizeArray(ISAJson_decoder$5), objectArg_9 = get$.Optional, objectArg_9.Field("comments", arg_19))));
|
|
227
245
|
});
|
|
228
246
|
|
|
229
|
-
export { ISAJson_allowedFields, ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, ROCrate_genID, decoder, decoderCompressed, encoder, encoderCompressed };
|
|
247
|
+
export { ISAJson_allowedFields, ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encodeRoCrate, ROCrate_encoder, ROCrate_genID, decoder, decoderCompressed, encoder, encoderCompressed };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { oneOf, map, string, int, float, object, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
2
2
|
import { int32ToString } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
3
3
|
import { ofArray, choose } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
4
|
-
import {
|
|
4
|
+
import { map as map$1, unwrap, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
5
|
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
6
|
-
import {
|
|
6
|
+
import { encoder, decoder, ROCrate_encoderDisambiguatingDescription, ROCrate_decoderDisambiguatingDescription } from './Comment.js';
|
|
7
7
|
import { map as map$2, filter } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
8
8
|
import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
|
|
9
|
-
import {
|
|
9
|
+
import { encodeString, decodeString } from './StringTable.js';
|
|
10
10
|
import { replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
11
11
|
import { URIModule_toString } from '../Core/URI.js';
|
|
12
12
|
import { context_jsonvalue } from './context/rocrate/isa_ontology_annotation_context.js';
|
|
@@ -141,11 +141,11 @@ function OntologyAnnotation_ISAJson_encoder(idMap, oa) {
|
|
|
141
141
|
const f = (oa_1) => {
|
|
142
142
|
const comments = filter((c) => {
|
|
143
143
|
const matchValue = c.Name;
|
|
144
|
-
let matchResult;
|
|
144
|
+
let matchResult, n_1;
|
|
145
145
|
if (matchValue != null) {
|
|
146
146
|
if (value(matchValue) === orderName) {
|
|
147
147
|
matchResult = 0;
|
|
148
|
-
value(matchValue);
|
|
148
|
+
n_1 = value(matchValue);
|
|
149
149
|
} else {
|
|
150
150
|
matchResult = 1;
|
|
151
151
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
-
import {
|
|
2
|
+
import { map, unwrap, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
4
|
-
import {
|
|
4
|
+
import { encoder as encoder$1, decoder as decoder$1, ISAJson_encoder as ISAJson_encoder$1 } from './Comment.js';
|
|
5
5
|
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
6
|
import { OntologySourceReference } from '../Core/OntologySourceReference.js';
|
|
7
7
|
import { object, string, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { map, unwrap, value, defaultArg } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { map as map$
|
|
4
|
+
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder, OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_ROCrate_decoderDefinedTerm } from './OntologyAnnotation.js';
|
|
5
|
+
import { encoder as encoder$1, decoder as decoder$1, ROCrate_encoderDisambiguatingDescription, ROCrate_decoderDisambiguatingDescription } from './Comment.js';
|
|
6
|
+
import { map as map$1, tryPick } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
7
7
|
import { Person } from '../Core/Person.js';
|
|
8
|
-
import { string, resizeArray,
|
|
9
|
-
import {
|
|
10
|
-
import { context_jsonvalue
|
|
11
|
-
import { context_jsonvalue, contextMinimal_jsonValue } from './context/rocrate/isa_person_context.js';
|
|
12
|
-
import { map as map$
|
|
13
|
-
import {
|
|
8
|
+
import { object, string, resizeArray, map as map$3, array } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
9
|
+
import { replace, split, join } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
10
|
+
import { context_jsonvalue } from './context/rocrate/isa_organization_context.js';
|
|
11
|
+
import { context_jsonvalue as context_jsonvalue$1, contextMinimal_jsonValue } from './context/rocrate/isa_person_context.js';
|
|
12
|
+
import { map as map$2 } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
13
|
+
import { Person_setCommentFromORCID, Person_setOrcidFromComments } from '../Core/Conversion.js';
|
|
14
14
|
import { encode } from './IDTable.js';
|
|
15
15
|
import { Decode_objectNoAdditionalProperties } from './Decode.js';
|
|
16
16
|
|
|
17
17
|
function encoder(person) {
|
|
18
|
-
const values_1 = choose((tupledArg) => map
|
|
18
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("firstName", (value) => ({
|
|
19
19
|
Encode(helpers) {
|
|
20
20
|
return helpers.encodeString(value);
|
|
21
21
|
}
|
|
@@ -54,7 +54,7 @@ function encoder(person) {
|
|
|
54
54
|
}), person.Affiliation), tryIncludeSeq("roles", OntologyAnnotation_encoder, person.Roles), tryIncludeSeq("comments", encoder$1, person.Comments)]));
|
|
55
55
|
return {
|
|
56
56
|
Encode(helpers_9) {
|
|
57
|
-
const arg = map$
|
|
57
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_9)], values_1);
|
|
58
58
|
return helpers_9.encodeObject(arg);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
@@ -159,10 +159,10 @@ function ROCrate_Affiliation_encoder(affiliation) {
|
|
|
159
159
|
Encode(helpers_2) {
|
|
160
160
|
return helpers_2.encodeString(affiliation);
|
|
161
161
|
}
|
|
162
|
-
}], ["@context", context_jsonvalue
|
|
162
|
+
}], ["@context", context_jsonvalue]];
|
|
163
163
|
return {
|
|
164
164
|
Encode(helpers_3) {
|
|
165
|
-
const arg = map$
|
|
165
|
+
const arg = map$1((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_3)], values_1);
|
|
166
166
|
return helpers_3.encodeObject(arg);
|
|
167
167
|
}
|
|
168
168
|
};
|
|
@@ -173,7 +173,7 @@ const ROCrate_Affiliation_decoder = object((get$) => {
|
|
|
173
173
|
});
|
|
174
174
|
function ROCrate_encoder(oa) {
|
|
175
175
|
let value;
|
|
176
|
-
const values_1 = choose((tupledArg) => map
|
|
176
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = ROCrate_genID(oa), {
|
|
177
177
|
Encode(helpers) {
|
|
178
178
|
return helpers.encodeString(value);
|
|
179
179
|
}
|
|
@@ -213,10 +213,10 @@ function ROCrate_encoder(oa) {
|
|
|
213
213
|
Encode(helpers_9) {
|
|
214
214
|
return helpers_9.encodeString(value_16);
|
|
215
215
|
}
|
|
216
|
-
}), oa.Address), tryInclude("affiliation", ROCrate_Affiliation_encoder, oa.Affiliation), tryIncludeSeq("roles", OntologyAnnotation_ROCrate_encoderDefinedTerm, oa.Roles), tryIncludeSeq("comments", ROCrate_encoderDisambiguatingDescription, oa.Comments), ["@context", context_jsonvalue]]));
|
|
216
|
+
}), oa.Address), tryInclude("affiliation", ROCrate_Affiliation_encoder, oa.Affiliation), tryIncludeSeq("roles", OntologyAnnotation_ROCrate_encoderDefinedTerm, oa.Roles), tryIncludeSeq("comments", ROCrate_encoderDisambiguatingDescription, oa.Comments), ["@context", context_jsonvalue$1]]));
|
|
217
217
|
return {
|
|
218
218
|
Encode(helpers_10) {
|
|
219
|
-
const arg = map$
|
|
219
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_10)], values_1);
|
|
220
220
|
return helpers_10.encodeObject(arg);
|
|
221
221
|
}
|
|
222
222
|
};
|
|
@@ -226,8 +226,8 @@ const ROCrate_decoder = object((get$) => {
|
|
|
226
226
|
return new Person(unwrap((objectArg = get$.Optional, objectArg.Field("orcid", string))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("lastName", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("firstName", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("midInitials", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("email", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("phone", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("fax", string))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("address", string))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("affiliation", ROCrate_Affiliation_decoder))), unwrap((arg_19 = resizeArray(OntologyAnnotation_ROCrate_decoderDefinedTerm), objectArg_9 = get$.Optional, objectArg_9.Field("roles", arg_19))), unwrap((arg_21 = resizeArray(ROCrate_decoderDisambiguatingDescription), objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21))));
|
|
227
227
|
});
|
|
228
228
|
function ROCrate_encodeAuthorListString(authorList) {
|
|
229
|
-
const values_2 = map$
|
|
230
|
-
const values_1 = choose((tupledArg) => map
|
|
229
|
+
const values_2 = map$2((name) => {
|
|
230
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@type", {
|
|
231
231
|
Encode(helpers) {
|
|
232
232
|
return helpers.encodeString("Person");
|
|
233
233
|
}
|
|
@@ -238,19 +238,19 @@ function ROCrate_encodeAuthorListString(authorList) {
|
|
|
238
238
|
}), name), ["@context", contextMinimal_jsonValue]]));
|
|
239
239
|
return {
|
|
240
240
|
Encode(helpers_2) {
|
|
241
|
-
const arg = map$
|
|
241
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_2)], values_1);
|
|
242
242
|
return helpers_2.encodeObject(arg);
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
|
-
}, map$
|
|
245
|
+
}, map$2((s) => s.trim(), split(authorList, [authorList.indexOf(" ") >= 0 ? " " : authorList.indexOf(";") >= 0 ? ";" : ","], void 0, 0)));
|
|
246
246
|
return {
|
|
247
247
|
Encode(helpers_3) {
|
|
248
|
-
const arg_1 = map$
|
|
248
|
+
const arg_1 = map$2((v_3) => v_3.Encode(helpers_3), values_2);
|
|
249
249
|
return helpers_3.encodeArray(arg_1);
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
const ROCrate_decodeAuthorListString = map((v) => join(", ", v), array(object((get$) => {
|
|
253
|
+
const ROCrate_decodeAuthorListString = map$3((v) => join(", ", v), array(object((get$) => {
|
|
254
254
|
let objectArg;
|
|
255
255
|
return defaultArg((objectArg = get$.Optional, objectArg.Field("name", string)), "");
|
|
256
256
|
})));
|
|
@@ -258,7 +258,7 @@ const ISAJson_allowedFields = ofArray(["@id", "firstName", "lastName", "midIniti
|
|
|
258
258
|
function ISAJson_encoder(idMap, person) {
|
|
259
259
|
const f = (person_1) => {
|
|
260
260
|
const person_2 = Person_setCommentFromORCID(person_1);
|
|
261
|
-
const values_1 = choose((tupledArg) => map
|
|
261
|
+
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("@id", (value) => ({
|
|
262
262
|
Encode(helpers) {
|
|
263
263
|
return helpers.encodeString(value);
|
|
264
264
|
}
|
|
@@ -297,7 +297,7 @@ function ISAJson_encoder(idMap, person) {
|
|
|
297
297
|
}), person_2.Affiliation), tryIncludeSeq("roles", OntologyAnnotation_encoder, person_2.Roles), tryIncludeSeq("comments", encoder$1, person_2.Comments)]));
|
|
298
298
|
return {
|
|
299
299
|
Encode(helpers_9) {
|
|
300
|
-
const arg = map$
|
|
300
|
+
const arg = map$1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_9)], values_1);
|
|
301
301
|
return helpers_9.encodeObject(arg);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
-
import {
|
|
2
|
+
import { map, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { tryInclude } from '../Encode.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from '../OntologyAnnotation.js';
|
|
5
|
+
import { encoder as encoder$1, decoder as decoder$1 } from './Value.js';
|
|
6
6
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
7
|
-
import {
|
|
7
|
+
import { Component, Component_createAsPV, Component__get_ComponentName, Component_decomposeName_Z721C83C5 } from '../../Core/Process/Component.js';
|
|
8
8
|
import { object } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
9
|
-
import {
|
|
9
|
+
import { encoder as encoder$2, decoder as decoder$2, genID } from '../PropertyValue.js';
|
|
10
10
|
import { Decode_uri } from '../Decode.js';
|
|
11
11
|
|
|
12
12
|
function encoder(value) {
|
|
@@ -27,6 +27,9 @@ const decoder = object((get$) => {
|
|
|
27
27
|
});
|
|
28
28
|
const ROCrate_encoder = encoder$2;
|
|
29
29
|
const ROCrate_decoder = decoder$2(Component_createAsPV);
|
|
30
|
+
function ISAJson_genID(c) {
|
|
31
|
+
return genID(c);
|
|
32
|
+
}
|
|
30
33
|
function ISAJson_encoder(idMap, c) {
|
|
31
34
|
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("componentName", (value) => ({
|
|
32
35
|
Encode(helpers) {
|
|
@@ -55,4 +58,4 @@ const ISAJson_decoder = object((get$) => {
|
|
|
55
58
|
return new Component(patternInput_1[0], patternInput_1[1], (objectArg_1 = get$.Optional, objectArg_1.Field("componentType", OntologyAnnotation_ISAJson_decoder)));
|
|
56
59
|
});
|
|
57
60
|
|
|
58
|
-
export { ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, decoder, encoder };
|
|
61
|
+
export { ISAJson_decoder, ISAJson_encoder, ISAJson_genID, ROCrate_decoder, ROCrate_encoder, decoder, encoder };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { value,
|
|
2
|
-
import {
|
|
1
|
+
import { value, map, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { OntologyAnnotation_ROCrate_genID, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from '../OntologyAnnotation.js';
|
|
3
3
|
import { Factor } from '../../Core/Process/Factor.js';
|
|
4
4
|
import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
5
|
import { tryInclude, tryIncludeSeq } from '../Encode.js';
|
|
6
|
-
import {
|
|
6
|
+
import { ISAJson_encoder, ISAJson_decoder } from '../Comment.js';
|
|
7
7
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
8
8
|
import { encode } from '../IDTable.js';
|
|
9
9
|
import { object, string, resizeArray } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { encoder, decoder, genID } from '../PropertyValue.js';
|
|
2
|
+
import { FactorValue_createAsPV, FactorValue } from '../../Core/Process/FactorValue.js';
|
|
3
|
+
import { map, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
4
|
import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
5
|
import { tryInclude } from '../Encode.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { encoder as encoder$1, decoder as decoder$1 } from './Factor.js';
|
|
7
|
+
import { encoder as encoder$2, decoder as decoder$2 } from './Value.js';
|
|
8
|
+
import { OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from '../OntologyAnnotation.js';
|
|
9
9
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
10
10
|
import { encode } from '../IDTable.js';
|
|
11
11
|
import { object } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
12
|
import { Decode_uri } from '../Decode.js';
|
|
13
13
|
|
|
14
14
|
const ROCrate_encoder = encoder;
|
|
15
|
-
const ROCrate_decoder = decoder
|
|
15
|
+
const ROCrate_decoder = decoder(FactorValue_createAsPV);
|
|
16
16
|
function ISAJson_genID(fv) {
|
|
17
17
|
return genID(fv);
|
|
18
18
|
}
|
|
@@ -38,7 +38,7 @@ function ISAJson_encoder(idMap, fv) {
|
|
|
38
38
|
}
|
|
39
39
|
const ISAJson_decoder = object((get$) => {
|
|
40
40
|
let objectArg, objectArg_1, objectArg_2, objectArg_3;
|
|
41
|
-
return new FactorValue((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("category", decoder)), (objectArg_2 = get$.Optional, objectArg_2.Field("value", decoder$
|
|
41
|
+
return new FactorValue((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("category", decoder$1)), (objectArg_2 = get$.Optional, objectArg_2.Field("value", decoder$2)), (objectArg_3 = get$.Optional, objectArg_3.Field("unit", OntologyAnnotation_ISAJson_decoder)));
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
export { ISAJson_decoder, ISAJson_encoder, ISAJson_genID, ROCrate_decoder, ROCrate_encoder };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { value, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
2
|
import { replace } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
3
3
|
import { Material } from '../../Core/Process/Material.js';
|
|
4
|
-
import {
|
|
5
|
-
import { list
|
|
4
|
+
import { choose, ofArray, singleton } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
|
+
import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
6
6
|
import { tryInclude, tryIncludeListOpt } from '../Encode.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { ROCrate_encoder as ROCrate_encoder$1, ROCrate_decoder as ROCrate_decoder$1, ISAJson_encoder as ISAJson_encoder$1, ISAJson_decoder as ISAJson_decoder$1 } from './MaterialType.js';
|
|
8
|
+
import { ROCrate_encoder as ROCrate_encoder$2, ROCrate_decoder as ROCrate_decoder$2, ISAJson_encoder as ISAJson_encoder$2, ISAJson_decoder as ISAJson_decoder$2 } from './MaterialAttributeValue.js';
|
|
9
9
|
import { context_jsonvalue } from '../context/rocrate/isa_material_context.js';
|
|
10
10
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { object, unit, string, list as list$1 } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
|
+
import { Decode_uri, Decode_objectNoAdditionalProperties } from '../Decode.js';
|
|
13
13
|
import { encode } from '../IDTable.js';
|
|
14
14
|
|
|
15
15
|
function ROCrate_genID(m) {
|
|
@@ -31,7 +31,7 @@ function ROCrate_encoder(oa) {
|
|
|
31
31
|
Encode(helpers) {
|
|
32
32
|
return helpers.encodeString(value);
|
|
33
33
|
}
|
|
34
|
-
})], ["@type", list
|
|
34
|
+
})], ["@type", list(singleton({
|
|
35
35
|
Encode(helpers_1) {
|
|
36
36
|
return helpers_1.encodeString("Material");
|
|
37
37
|
}
|
|
@@ -72,7 +72,7 @@ const ROCrate_decoder = (() => {
|
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
return new Material((objectArg_2 = get$.Optional, objectArg_2.Field("@id", Decode_uri)), (objectArg_3 = get$.Optional, objectArg_3.Field("name", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("type", ROCrate_decoder$1)), (arg_11 = list(ROCrate_decoder$2), objectArg_5 = get$.Optional, objectArg_5.Field("characteristics", arg_11)), (arg_13 = list(decode()), objectArg_6 = get$.Optional, objectArg_6.Field("derivesFrom", arg_13)));
|
|
75
|
+
return new Material((objectArg_2 = get$.Optional, objectArg_2.Field("@id", Decode_uri)), (objectArg_3 = get$.Optional, objectArg_3.Field("name", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("type", ROCrate_decoder$1)), (arg_11 = list$1(ROCrate_decoder$2), objectArg_5 = get$.Optional, objectArg_5.Field("characteristics", arg_11)), (arg_13 = list$1(decode()), objectArg_6 = get$.Optional, objectArg_6.Field("derivesFrom", arg_13)));
|
|
76
76
|
});
|
|
77
77
|
return decode();
|
|
78
78
|
})();
|
|
@@ -104,7 +104,7 @@ const ISAJson_allowedFields = ofArray(["@id", "@type", "name", "type", "characte
|
|
|
104
104
|
const ISAJson_decoder = (() => {
|
|
105
105
|
const decode = () => Decode_objectNoAdditionalProperties(ISAJson_allowedFields, (get$) => {
|
|
106
106
|
let objectArg, objectArg_1, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4;
|
|
107
|
-
return new Material((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("type", ISAJson_decoder$1)), (arg_7 = list(ISAJson_decoder$2), objectArg_3 = get$.Optional, objectArg_3.Field("characteristics", arg_7)), (arg_9 = list(decode()), objectArg_4 = get$.Optional, objectArg_4.Field("derivesFrom", arg_9)));
|
|
107
|
+
return new Material((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("type", ISAJson_decoder$1)), (arg_7 = list$1(ISAJson_decoder$2), objectArg_3 = get$.Optional, objectArg_3.Field("characteristics", arg_7)), (arg_9 = list$1(decode()), objectArg_4 = get$.Optional, objectArg_4.Field("derivesFrom", arg_9)));
|
|
108
108
|
});
|
|
109
109
|
return decode();
|
|
110
110
|
})();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { value, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
-
import {
|
|
2
|
+
import { OntologyAnnotation_ROCrate_genID, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from '../OntologyAnnotation.js';
|
|
3
3
|
import { MaterialAttribute } from '../../Core/Process/MaterialAttribute.js';
|
|
4
4
|
import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
5
|
import { tryInclude } from '../Encode.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { encoder, decoder, genID } from '../PropertyValue.js';
|
|
2
|
+
import { MaterialAttributeValue_createAsPV, MaterialAttributeValue } from '../../Core/Process/MaterialAttributeValue.js';
|
|
3
|
+
import { map, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
4
4
|
import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
5
|
import { tryInclude } from '../Encode.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { encoder as encoder$1, decoder as decoder$1 } from './MaterialAttribute.js';
|
|
7
|
+
import { encoder as encoder$2, decoder as decoder$2 } from './Value.js';
|
|
8
|
+
import { OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from '../OntologyAnnotation.js';
|
|
9
9
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
10
10
|
import { encode } from '../IDTable.js';
|
|
11
11
|
import { object } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
12
|
import { Decode_uri } from '../Decode.js';
|
|
13
13
|
|
|
14
14
|
const ROCrate_encoder = encoder;
|
|
15
|
-
const ROCrate_decoder = decoder
|
|
15
|
+
const ROCrate_decoder = decoder(MaterialAttributeValue_createAsPV);
|
|
16
16
|
function ISAJson_genID(oa) {
|
|
17
17
|
return genID(oa);
|
|
18
18
|
}
|
|
@@ -38,7 +38,7 @@ function ISAJson_encoder(idMap, oa) {
|
|
|
38
38
|
}
|
|
39
39
|
const ISAJson_decoder = object((get$) => {
|
|
40
40
|
let objectArg, objectArg_1, objectArg_2, objectArg_3;
|
|
41
|
-
return new MaterialAttributeValue((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("category", decoder)), (objectArg_2 = get$.Optional, objectArg_2.Field("value", decoder$
|
|
41
|
+
return new MaterialAttributeValue((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("category", decoder$1)), (objectArg_2 = get$.Optional, objectArg_2.Field("value", decoder$2)), (objectArg_3 = get$.Optional, objectArg_3.Field("unit", OntologyAnnotation_ISAJson_decoder)));
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
export { ISAJson_decoder, ISAJson_encoder, ISAJson_genID, ROCrate_decoder, ROCrate_encoder };
|