@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,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
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 { URIModule_toString } from '../../Core/URI.js';
|
|
4
4
|
import { Process } from '../../Core/Process/Process.js';
|
|
5
5
|
import { choose, ofArray, singleton } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
6
|
-
import { list
|
|
6
|
+
import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
7
7
|
import { tryInclude, tryIncludeListOpt } from '../Encode.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
8
|
+
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 './Protocol.js';
|
|
9
|
+
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 './ProcessParameterValue.js';
|
|
10
|
+
import { ROCrate_encodeAuthorListString, ROCrate_decodeAuthorListString } from '../Person.js';
|
|
11
|
+
import { ROCrate_encoder as ROCrate_encoder$3, ROCrate_decoder as ROCrate_decoder$3, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$3 } from './ProcessInput.js';
|
|
12
|
+
import { ROCrate_encoder as ROCrate_encoder$4, ROCrate_decoder as ROCrate_decoder$4, ISAJson_encoder as ISAJson_encoder$4, ISAJson_decoder as ISAJson_decoder$4 } from './ProcessOutput.js';
|
|
13
|
+
import { 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';
|
|
14
14
|
import { context_jsonvalue } from '../context/rocrate/isa_process_context.js';
|
|
15
15
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
16
|
-
import { object, string, list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
16
|
+
import { object, string, list as list$1 } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
17
17
|
import { Decode_uri } from '../Decode.js';
|
|
18
18
|
import { encode } from '../IDTable.js';
|
|
19
19
|
|
|
@@ -36,7 +36,7 @@ function ROCrate_encoder(studyName, assayName, oa) {
|
|
|
36
36
|
Encode(helpers) {
|
|
37
37
|
return helpers.encodeString(value);
|
|
38
38
|
}
|
|
39
|
-
})], ["@type", list
|
|
39
|
+
})], ["@type", list(singleton({
|
|
40
40
|
Encode(helpers_1) {
|
|
41
41
|
return helpers_1.encodeString("Process");
|
|
42
42
|
}
|
|
@@ -58,7 +58,7 @@ function ROCrate_encoder(studyName, assayName, oa) {
|
|
|
58
58
|
}
|
|
59
59
|
const ROCrate_decoder = object((get$) => {
|
|
60
60
|
let objectArg, objectArg_1, objectArg_2, arg_7, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8;
|
|
61
|
-
return new Process((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("executesProtocol", ROCrate_decoder$1)), (arg_7 = list(ROCrate_decoder$2), objectArg_3 = get$.Optional, objectArg_3.Field("parameterValues", arg_7)), (objectArg_4 = get$.Optional, objectArg_4.Field("performer", ROCrate_decodeAuthorListString)), (objectArg_5 = get$.Optional, objectArg_5.Field("date", string)), void 0, void 0, (arg_13 = list(ROCrate_decoder$3), objectArg_6 = get$.Optional, objectArg_6.Field("inputs", arg_13)), (arg_15 = list(ROCrate_decoder$4), objectArg_7 = get$.Optional, objectArg_7.Field("outputs", arg_15)), (arg_17 = list(ROCrate_decoder$5), objectArg_8 = get$.Optional, objectArg_8.Field("comments", arg_17)));
|
|
61
|
+
return new Process((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("executesProtocol", ROCrate_decoder$1)), (arg_7 = list$1(ROCrate_decoder$2), objectArg_3 = get$.Optional, objectArg_3.Field("parameterValues", arg_7)), (objectArg_4 = get$.Optional, objectArg_4.Field("performer", ROCrate_decodeAuthorListString)), (objectArg_5 = get$.Optional, objectArg_5.Field("date", string)), void 0, void 0, (arg_13 = list$1(ROCrate_decoder$3), objectArg_6 = get$.Optional, objectArg_6.Field("inputs", arg_13)), (arg_15 = list$1(ROCrate_decoder$4), objectArg_7 = get$.Optional, objectArg_7.Field("outputs", arg_15)), (arg_17 = list$1(ROCrate_decoder$5), objectArg_8 = get$.Optional, objectArg_8.Field("comments", arg_17)));
|
|
62
62
|
});
|
|
63
63
|
function ISAJson_encoder(studyName, assayName, idMap, oa) {
|
|
64
64
|
const f = (oa_1) => {
|
|
@@ -95,7 +95,7 @@ function ISAJson_encoder(studyName, assayName, idMap, oa) {
|
|
|
95
95
|
const ISAJson_decoder = (() => {
|
|
96
96
|
const decode = () => object((get$) => {
|
|
97
97
|
let objectArg, objectArg_1, objectArg_2, arg_7, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
98
|
-
return new Process((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("executesProtocol", ISAJson_decoder$1)), (arg_7 = list(ISAJson_decoder$2), objectArg_3 = get$.Optional, objectArg_3.Field("parameterValues", arg_7)), (objectArg_4 = get$.Optional, objectArg_4.Field("performer", string)), (objectArg_5 = get$.Optional, objectArg_5.Field("date", string)), (arg_13 = decode(), objectArg_6 = get$.Optional, objectArg_6.Field("previousProcess", arg_13)), (arg_15 = decode(), objectArg_7 = get$.Optional, objectArg_7.Field("nextProcess", arg_15)), (arg_17 = list(ISAJson_decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("inputs", arg_17)), (arg_19 = list(ISAJson_decoder$4), objectArg_9 = get$.Optional, objectArg_9.Field("outputs", arg_19)), (arg_21 = list(ISAJson_decoder$5), objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21)));
|
|
98
|
+
return new Process((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("executesProtocol", ISAJson_decoder$1)), (arg_7 = list$1(ISAJson_decoder$2), objectArg_3 = get$.Optional, objectArg_3.Field("parameterValues", arg_7)), (objectArg_4 = get$.Optional, objectArg_4.Field("performer", string)), (objectArg_5 = get$.Optional, objectArg_5.Field("date", string)), (arg_13 = decode(), objectArg_6 = get$.Optional, objectArg_6.Field("previousProcess", arg_13)), (arg_15 = decode(), objectArg_7 = get$.Optional, objectArg_7.Field("nextProcess", arg_15)), (arg_17 = list$1(ISAJson_decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("inputs", arg_17)), (arg_19 = list$1(ISAJson_decoder$4), objectArg_9 = get$.Optional, objectArg_9.Field("outputs", arg_19)), (arg_21 = list$1(ISAJson_decoder$5), objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21)));
|
|
99
99
|
});
|
|
100
100
|
return decode();
|
|
101
101
|
})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ROCrate_encoder as ROCrate_encoder$4, ROCrate_decoder as ROCrate_decoder$1, ISAJson_encoder as ISAJson_encoder$4, ISAJson_decoder as ISAJson_decoder$2 } from './Sample.js';
|
|
2
|
+
import { ROCrate_encoder as ROCrate_encoder$3, ROCrate_decoder as ROCrate_decoder$3, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$3 } from '../Data.js';
|
|
3
|
+
import { ROCrate_encoder as ROCrate_encoder$2, ROCrate_decoder as ROCrate_decoder$4, ISAJson_encoder as ISAJson_encoder$2, ISAJson_decoder as ISAJson_decoder$4 } from './Material.js';
|
|
4
|
+
import { ROCrate_encoder as ROCrate_encoder$1, ROCrate_decoder as ROCrate_decoder$2, ISAJson_encoder as ISAJson_encoder$1, ISAJson_decoder as ISAJson_decoder$1 } from './Source.js';
|
|
5
5
|
import { ProcessInput_Sample, ProcessInput_Source, ProcessInput_Data, ProcessInput_Material } from '../../Core/Process/ProcessInput.js';
|
|
6
6
|
import { oneOf, map } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
7
7
|
import { ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ROCrate_encoder as ROCrate_encoder$3, ROCrate_decoder as ROCrate_decoder$2, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$2 } from '../Data.js';
|
|
2
|
+
import { 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 './Material.js';
|
|
3
|
+
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 './Sample.js';
|
|
4
4
|
import { ProcessOutput_Sample, ProcessOutput_Data, ProcessOutput_Material } from '../../Core/Process/ProcessOutput.js';
|
|
5
5
|
import { oneOf, map } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
6
6
|
import { ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { encoder, decoder } from '../PropertyValue.js';
|
|
2
2
|
import { ProcessParameterValue } from '../../Core/Process/ProcessParameterValue.js';
|
|
3
3
|
import { map } 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 { ISAJson_encoder as ISAJson_encoder$1, ISAJson_decoder as ISAJson_decoder$1 } from './ProtocolParameter.js';
|
|
7
|
+
import { encoder as encoder$1, decoder as decoder$1 } 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 { object } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
11
11
|
|
|
12
12
|
const ROCrate_encoder = encoder;
|
|
13
|
-
const ROCrate_decoder = decoder
|
|
13
|
+
const ROCrate_decoder = decoder((alternateName, measurementMethod, description, category, value, unit) => ProcessParameterValue.createAsPV(alternateName, measurementMethod, description, category, value, unit));
|
|
14
|
+
function ISAJson_genID(oa) {
|
|
15
|
+
throw new Error("Not implemented");
|
|
16
|
+
}
|
|
14
17
|
function ISAJson_encoder(idMap, oa) {
|
|
15
18
|
const values_1 = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("category", (value) => ISAJson_encoder$1(idMap, value), oa.Category), tryInclude("value", (value_1) => encoder$1(idMap, value_1), oa.Value), tryInclude("unit", (oa_1) => OntologyAnnotation_ISAJson_encoder(idMap, oa_1), oa.Unit)]));
|
|
16
19
|
return {
|
|
@@ -22,7 +25,7 @@ function ISAJson_encoder(idMap, oa) {
|
|
|
22
25
|
}
|
|
23
26
|
const ISAJson_decoder = object((get$) => {
|
|
24
27
|
let objectArg, objectArg_1, objectArg_2;
|
|
25
|
-
return new ProcessParameterValue((objectArg = get$.Optional, objectArg.Field("category", ISAJson_decoder$1)), (objectArg_1 = get$.Optional, objectArg_1.Field("value", decoder)), (objectArg_2 = get$.Optional, objectArg_2.Field("unit", OntologyAnnotation_ISAJson_decoder)));
|
|
28
|
+
return new ProcessParameterValue((objectArg = get$.Optional, objectArg.Field("category", ISAJson_decoder$1)), (objectArg_1 = get$.Optional, objectArg_1.Field("value", decoder$1)), (objectArg_2 = get$.Optional, objectArg_2.Field("unit", OntologyAnnotation_ISAJson_decoder)));
|
|
26
29
|
});
|
|
27
30
|
|
|
28
|
-
export { ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder };
|
|
31
|
+
export { ISAJson_decoder, ISAJson_encoder, ISAJson_genID, ROCrate_decoder, ROCrate_encoder };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { value, map, defaultArg } 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 { Protocol } from '../../Core/Process/Protocol.js';
|
|
4
|
-
import {
|
|
5
|
-
import { list
|
|
4
|
+
import { choose, ofArray, singleton, empty, append } 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 {
|
|
9
|
-
import {
|
|
7
|
+
import { OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from '../OntologyAnnotation.js';
|
|
8
|
+
import { ROCrate_encoder as ROCrate_encoder$1, ROCrate_decoder as ROCrate_decoder$1, ISAJson_encoder as ISAJson_encoder$2, ISAJson_decoder as ISAJson_decoder$2 } from './Component.js';
|
|
9
|
+
import { ROCrate_encoder as ROCrate_encoder$2, ROCrate_decoder as ROCrate_decoder$2, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$3 } from '../Comment.js';
|
|
10
10
|
import { context_jsonvalue } from '../context/rocrate/isa_protocol_context.js';
|
|
11
11
|
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
12
|
-
import { object,
|
|
12
|
+
import { object, list as list$1, string } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
13
13
|
import { Option_fromValueWithDefault } from '../../Core/Helper/Collections.js';
|
|
14
14
|
import { Decode_uri } from '../Decode.js';
|
|
15
|
-
import {
|
|
15
|
+
import { ISAJson_encoder as ISAJson_encoder$1, ISAJson_decoder as ISAJson_decoder$1 } from './ProtocolParameter.js';
|
|
16
16
|
import { encode } from '../IDTable.js';
|
|
17
17
|
|
|
18
18
|
function ROCrate_genID(studyName, assayName, processName, p) {
|
|
@@ -89,7 +89,7 @@ function ROCrate_encoder(studyName, assayName, processName, oa) {
|
|
|
89
89
|
Encode(helpers) {
|
|
90
90
|
return helpers.encodeString(value);
|
|
91
91
|
}
|
|
92
|
-
})], ["@type", list
|
|
92
|
+
})], ["@type", list(singleton({
|
|
93
93
|
Encode(helpers_1) {
|
|
94
94
|
return helpers_1.encodeString("Protocol");
|
|
95
95
|
}
|
|
@@ -119,8 +119,8 @@ function ROCrate_encoder(studyName, assayName, processName, oa) {
|
|
|
119
119
|
}
|
|
120
120
|
const ROCrate_decoder = object((get$) => {
|
|
121
121
|
let list_3, list_1, arg_1, objectArg, arg_3, objectArg_1, arg_5, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, objectArg_7, objectArg_8, arg_19, objectArg_9;
|
|
122
|
-
const components = Option_fromValueWithDefault(empty(), (list_3 = (list_1 = defaultArg((arg_1 = list(ROCrate_decoder$1), objectArg = get$.Optional, objectArg.Field("components", arg_1)), empty()), append(defaultArg((arg_3 = list(ROCrate_decoder$1), objectArg_1 = get$.Optional, objectArg_1.Field("reagents", arg_3)), empty()), list_1)), append(defaultArg((arg_5 = list(ROCrate_decoder$1), objectArg_2 = get$.Optional, objectArg_2.Field("computationalTools", arg_5)), empty()), list_3)));
|
|
123
|
-
return new Protocol((objectArg_3 = get$.Optional, objectArg_3.Field("@id", Decode_uri)), (objectArg_4 = get$.Optional, objectArg_4.Field("name", string)), (objectArg_5 = get$.Optional, objectArg_5.Field("protocolType", OntologyAnnotation_ROCrate_decoderDefinedTerm)), (objectArg_6 = get$.Optional, objectArg_6.Field("description", string)), (objectArg_7 = get$.Optional, objectArg_7.Field("uri", Decode_uri)), (objectArg_8 = get$.Optional, objectArg_8.Field("version", string)), void 0, components, (arg_19 = list(ROCrate_decoder$2), objectArg_9 = get$.Optional, objectArg_9.Field("comments", arg_19)));
|
|
122
|
+
const components = Option_fromValueWithDefault(empty(), (list_3 = (list_1 = defaultArg((arg_1 = list$1(ROCrate_decoder$1), objectArg = get$.Optional, objectArg.Field("components", arg_1)), empty()), append(defaultArg((arg_3 = list$1(ROCrate_decoder$1), objectArg_1 = get$.Optional, objectArg_1.Field("reagents", arg_3)), empty()), list_1)), append(defaultArg((arg_5 = list$1(ROCrate_decoder$1), objectArg_2 = get$.Optional, objectArg_2.Field("computationalTools", arg_5)), empty()), list_3)));
|
|
123
|
+
return new Protocol((objectArg_3 = get$.Optional, objectArg_3.Field("@id", Decode_uri)), (objectArg_4 = get$.Optional, objectArg_4.Field("name", string)), (objectArg_5 = get$.Optional, objectArg_5.Field("protocolType", OntologyAnnotation_ROCrate_decoderDefinedTerm)), (objectArg_6 = get$.Optional, objectArg_6.Field("description", string)), (objectArg_7 = get$.Optional, objectArg_7.Field("uri", Decode_uri)), (objectArg_8 = get$.Optional, objectArg_8.Field("version", string)), void 0, components, (arg_19 = list$1(ROCrate_decoder$2), objectArg_9 = get$.Optional, objectArg_9.Field("comments", arg_19)));
|
|
124
124
|
});
|
|
125
125
|
function ISAJson_encoder(studyName, assayName, processName, idMap, oa) {
|
|
126
126
|
const f = (oa_1) => {
|
|
@@ -160,7 +160,7 @@ function ISAJson_encoder(studyName, assayName, processName, idMap, oa) {
|
|
|
160
160
|
}
|
|
161
161
|
const ISAJson_decoder = object((get$) => {
|
|
162
162
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8;
|
|
163
|
-
return new Protocol((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("protocolType", OntologyAnnotation_ISAJson_decoder)), (objectArg_3 = get$.Optional, objectArg_3.Field("description", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("uri", Decode_uri)), (objectArg_5 = get$.Optional, objectArg_5.Field("version", string)), (arg_13 = list(ISAJson_decoder$1), objectArg_6 = get$.Optional, objectArg_6.Field("parameters", arg_13)), (arg_15 = list(ISAJson_decoder$2), objectArg_7 = get$.Optional, objectArg_7.Field("components", arg_15)), (arg_17 = list(ISAJson_decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("comments", arg_17)));
|
|
163
|
+
return new Protocol((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("protocolType", OntologyAnnotation_ISAJson_decoder)), (objectArg_3 = get$.Optional, objectArg_3.Field("description", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("uri", Decode_uri)), (objectArg_5 = get$.Optional, objectArg_5.Field("version", string)), (arg_13 = list$1(ISAJson_decoder$1), objectArg_6 = get$.Optional, objectArg_6.Field("parameters", arg_13)), (arg_15 = list$1(ISAJson_decoder$2), objectArg_7 = get$.Optional, objectArg_7.Field("components", arg_15)), (arg_17 = list$1(ISAJson_decoder$3), objectArg_8 = get$.Optional, objectArg_8.Field("comments", arg_17)));
|
|
164
164
|
});
|
|
165
165
|
|
|
166
166
|
export { ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, ROCrate_genID };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder, OntologyAnnotation_ROCrate_genID, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from '../OntologyAnnotation.js';
|
|
2
|
+
import { defaultArg, unwrap, value, map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { OntologyAnnotation } from '../../Core/OntologyAnnotation.js';
|
|
4
4
|
import { ProtocolParameter } from '../../Core/Process/ProtocolParameter.js';
|
|
5
|
-
import {
|
|
5
|
+
import { map, object } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
6
6
|
import { Option_fromValueWithDefault } from '../../Core/Helper/Collections.js';
|
|
7
7
|
import { choose, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
8
8
|
import { tryInclude } from '../Encode.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { value, defaultArg, map as map$1 } 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 { Sample } from '../../Core/Process/Sample.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { list
|
|
4
|
+
import { map, empty, append, choose, ofArray, singleton, isEmpty, head, tail } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
|
+
import { ROCrate_encoder as ROCrate_encoder$1, ROCrate_decoder as ROCrate_decoder$2, ISAJson_encoder as ISAJson_encoder$1, ISAJson_decoder as ISAJson_decoder$1 } from './MaterialAttributeValue.js';
|
|
6
|
+
import { ROCrate_encoder as ROCrate_encoder$2, ROCrate_decoder as ROCrate_decoder$1, ISAJson_encoder as ISAJson_encoder$2, ISAJson_decoder as ISAJson_decoder$2 } from './FactorValue.js';
|
|
7
|
+
import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
8
8
|
import { tryInclude, tryIncludeList, tryIncludeListOpt } from '../Encode.js';
|
|
9
9
|
import { context_jsonvalue } from '../context/rocrate/isa_sample_context.js';
|
|
10
10
|
import { map as map$2 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
11
|
-
import { string,
|
|
11
|
+
import { string, object, unit, list as list$1 } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
12
|
import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
13
|
-
import {
|
|
13
|
+
import { Decode_uri, Decode_objectNoAdditionalProperties } from '../Decode.js';
|
|
14
14
|
import { Option_fromValueWithDefault } from '../../Core/Helper/Collections.js';
|
|
15
|
-
import {
|
|
15
|
+
import { ROCrate_decoder as ROCrate_decoder$3, ISAJson_encoder as ISAJson_encoder$3, ISAJson_decoder as ISAJson_decoder$3 } from './Source.js';
|
|
16
16
|
import { encode } from '../IDTable.js';
|
|
17
17
|
|
|
18
18
|
function ROCrate_genID(s) {
|
|
@@ -37,7 +37,7 @@ function ROCrate_encoder(oa) {
|
|
|
37
37
|
Encode(helpers) {
|
|
38
38
|
return helpers.encodeString(value_2);
|
|
39
39
|
}
|
|
40
|
-
})], ["@type", list
|
|
40
|
+
})], ["@type", list(singleton({
|
|
41
41
|
Encode(helpers_1) {
|
|
42
42
|
return helpers_1.encodeString("Sample");
|
|
43
43
|
}
|
|
@@ -62,11 +62,11 @@ const ROCrate_additionalPropertyDecoder = {
|
|
|
62
62
|
let matchValue;
|
|
63
63
|
if ((s.hasProperty("additionalType", json) ? (matchValue = string.Decode(s, s.getProperty("additionalType", json)), matchValue.tag === /* Ok */
|
|
64
64
|
0 ? matchValue.fields[0] : "") : "") === "FactorValue") {
|
|
65
|
-
const matchValue_1 = ROCrate_decoder$
|
|
65
|
+
const matchValue_1 = ROCrate_decoder$1.Decode(s, json);
|
|
66
66
|
return matchValue_1.tag === /* Error */
|
|
67
67
|
1 ? FSharpResult$2_Error(matchValue_1.fields[0]) : FSharpResult$2_Ok([void 0, matchValue_1.fields[0]]);
|
|
68
68
|
} else {
|
|
69
|
-
const matchValue_2 = ROCrate_decoder$
|
|
69
|
+
const matchValue_2 = ROCrate_decoder$2.Decode(s, json);
|
|
70
70
|
return matchValue_2.tag === /* Error */
|
|
71
71
|
1 ? FSharpResult$2_Error(matchValue_2.fields[0]) : FSharpResult$2_Ok([matchValue_2.fields[0], void 0]);
|
|
72
72
|
}
|
|
@@ -93,7 +93,7 @@ const ROCrate_decoder = object((get$) => {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
let matchValue_1;
|
|
96
|
-
const arg_5 = list(string);
|
|
96
|
+
const arg_5 = list$1(string);
|
|
97
97
|
const objectArg_2 = get$.Optional;
|
|
98
98
|
matchValue_1 = objectArg_2.Field("@type", arg_5);
|
|
99
99
|
let matchResult_1;
|
|
@@ -120,7 +120,7 @@ const ROCrate_decoder = object((get$) => {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
let additionalProperties;
|
|
123
|
-
const arg_9 = list(ROCrate_additionalPropertyDecoder);
|
|
123
|
+
const arg_9 = list$1(ROCrate_additionalPropertyDecoder);
|
|
124
124
|
const objectArg_4 = get$.Optional;
|
|
125
125
|
additionalProperties = objectArg_4.Field("additionalProperties", arg_9);
|
|
126
126
|
let patternInput;
|
|
@@ -130,7 +130,7 @@ const ROCrate_decoder = object((get$) => {
|
|
|
130
130
|
} else {
|
|
131
131
|
patternInput = [void 0, void 0];
|
|
132
132
|
}
|
|
133
|
-
return new Sample((objectArg_5 = get$.Optional, objectArg_5.Field("@id", Decode_uri)), (objectArg_6 = get$.Optional, objectArg_6.Field("name", string)), patternInput[0], patternInput[1], (arg_15 = list(ROCrate_decoder$
|
|
133
|
+
return new Sample((objectArg_5 = get$.Optional, objectArg_5.Field("@id", Decode_uri)), (objectArg_6 = get$.Optional, objectArg_6.Field("name", string)), patternInput[0], patternInput[1], (arg_15 = list$1(ROCrate_decoder$3), objectArg_7 = get$.Optional, objectArg_7.Field("derivesFrom", arg_15)));
|
|
134
134
|
});
|
|
135
135
|
function ISAJson_encoder(idMap, oa) {
|
|
136
136
|
const f = (oa_1) => {
|
|
@@ -159,7 +159,7 @@ function ISAJson_encoder(idMap, oa) {
|
|
|
159
159
|
const ISAJson_allowedFields = ofArray(["@id", "name", "characteristics", "factorValues", "derivesFrom", "@type", "@context"]);
|
|
160
160
|
const ISAJson_decoder = Decode_objectNoAdditionalProperties(ISAJson_allowedFields, (get$) => {
|
|
161
161
|
let objectArg, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4;
|
|
162
|
-
return new Sample((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = list(ISAJson_decoder$1), objectArg_2 = get$.Optional, objectArg_2.Field("characteristics", arg_5)), (arg_7 = list(ISAJson_decoder$2), objectArg_3 = get$.Optional, objectArg_3.Field("factorValues", arg_7)), (arg_9 = list(ISAJson_decoder$3), objectArg_4 = get$.Optional, objectArg_4.Field("derivesFrom", arg_9)));
|
|
162
|
+
return new Sample((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = list$1(ISAJson_decoder$1), objectArg_2 = get$.Optional, objectArg_2.Field("characteristics", arg_5)), (arg_7 = list$1(ISAJson_decoder$2), objectArg_3 = get$.Optional, objectArg_3.Field("factorValues", arg_7)), (arg_9 = list$1(ISAJson_decoder$3), objectArg_4 = get$.Optional, objectArg_4.Field("derivesFrom", arg_9)));
|
|
163
163
|
});
|
|
164
164
|
|
|
165
165
|
export { ISAJson_allowedFields, ISAJson_decoder, ISAJson_encoder, ROCrate_additionalPropertyDecoder, ROCrate_decoder, ROCrate_encoder, ROCrate_genID };
|
|
@@ -2,14 +2,14 @@ import { value, map } from '../../../node_modules/@fable-org/fable-library-js/Op
|
|
|
2
2
|
import { replace } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
3
3
|
import { URIModule_toString } from '../../Core/URI.js';
|
|
4
4
|
import { Source } from '../../Core/Process/Source.js';
|
|
5
|
-
import { ofArray, isEmpty, head, tail
|
|
6
|
-
import { list
|
|
5
|
+
import { choose, ofArray, singleton, isEmpty, head, tail } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
6
|
+
import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
7
7
|
import { tryInclude, tryIncludeListOpt } from '../Encode.js';
|
|
8
|
-
import {
|
|
8
|
+
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 './MaterialAttributeValue.js';
|
|
9
9
|
import { context_jsonvalue } from '../context/rocrate/isa_source_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, list as list$1, string } 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(s) {
|
|
@@ -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("Source");
|
|
37
37
|
}
|
|
@@ -72,7 +72,7 @@ const ROCrate_decoder = object((get$) => {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
let matchValue_1;
|
|
75
|
-
const arg_5 = list(string);
|
|
75
|
+
const arg_5 = list$1(string);
|
|
76
76
|
const objectArg_2 = get$.Optional;
|
|
77
77
|
matchValue_1 = objectArg_2.Field("@type", arg_5);
|
|
78
78
|
let matchResult_1;
|
|
@@ -98,7 +98,7 @@ const ROCrate_decoder = object((get$) => {
|
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
return new Source((objectArg_4 = get$.Optional, objectArg_4.Field("@id", Decode_uri)), (objectArg_5 = get$.Optional, objectArg_5.Field("name", string)), (arg_13 = list(ROCrate_decoder$1), objectArg_6 = get$.Optional, objectArg_6.Field("characteristics", arg_13)));
|
|
101
|
+
return new Source((objectArg_4 = get$.Optional, objectArg_4.Field("@id", Decode_uri)), (objectArg_5 = get$.Optional, objectArg_5.Field("name", string)), (arg_13 = list$1(ROCrate_decoder$1), objectArg_6 = get$.Optional, objectArg_6.Field("characteristics", arg_13)));
|
|
102
102
|
});
|
|
103
103
|
function ISAJson_encoder(idMap, oa) {
|
|
104
104
|
const f = (oa_1) => {
|
|
@@ -127,7 +127,7 @@ function ISAJson_encoder(idMap, oa) {
|
|
|
127
127
|
const ISAJson_allowedFields = ofArray(["@id", "name", "characteristics", "@type", "@context"]);
|
|
128
128
|
const ISAJson_decoder = Decode_objectNoAdditionalProperties(ISAJson_allowedFields, (get$) => {
|
|
129
129
|
let objectArg, objectArg_1, arg_5, objectArg_2;
|
|
130
|
-
return new Source((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = list(ISAJson_decoder$1), objectArg_2 = get$.Optional, objectArg_2.Field("characteristics", arg_5)));
|
|
130
|
+
return new Source((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = list$1(ISAJson_decoder$1), objectArg_2 = get$.Optional, objectArg_2.Field("characteristics", arg_5)));
|
|
131
131
|
});
|
|
132
132
|
|
|
133
133
|
export { ISAJson_allowedFields, ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, ROCrate_genID };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ISAJson_decoder } from '../OntologyAnnotation.js';
|
|
2
2
|
import { Value_Int, Value_Float, Value_Ontology, Value_Name } from '../../Core/Value.js';
|
|
3
3
|
import { oneOf, map, int, float, string } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
4
4
|
import { ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { value,
|
|
1
|
+
import { value, map, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
2
|
import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
|
|
3
3
|
import { Value } from '../Core/Value.js';
|
|
4
4
|
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
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 {
|
|
5
|
-
import {
|
|
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, ISAJson_encoder as ISAJson_encoder$1 } from './Comment.js';
|
|
6
6
|
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
7
7
|
import { Publication } from '../Core/Publication.js';
|
|
8
8
|
import { object, string, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
9
|
-
import {
|
|
9
|
+
import { Decode_uri, Decode_noAdditionalProperties } from './Decode.js';
|
|
10
10
|
import { replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
11
|
-
import {
|
|
11
|
+
import { ROCrate_encodeAuthorListString, ROCrate_decodeAuthorListString } from './Person.js';
|
|
12
12
|
import { context_jsonvalue } from './context/rocrate/isa_publication_context.js';
|
|
13
13
|
|
|
14
14
|
function encoder(oa) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { choose, isEmpty, length, head } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
2
|
import { map, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { ErrorReason$1_BadOneOf, ErrorReason$1_BadPrimitive } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
4
|
-
import { toList, delay,
|
|
4
|
+
import { toList, delay, append, singleton, collect, empty, map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
5
5
|
import { tryInclude } from '../Encode.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { encoder as encoder$1, decoder as decoder$1 } from './LDContext.js';
|
|
7
|
+
import { genericEncoder, encoder as encoder$2, decoder as decoder$2, genericDecoder } from './LDNode.js';
|
|
8
8
|
import { seq } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
9
9
|
import { LDGraph } from '../../ROCrate/LDObject.js';
|
|
10
10
|
import { Getters$2_$ctor_Z4BE6C149, string, resizeArray, Getters$2__get_Errors } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ErrorReason$1_BadOneOf, ErrorReason$1_BadPrimitive } from '../../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { dateTime, resizeArrayOrSingleton } from '../Encode.js';
|
|
3
|
+
import { LDValue, LDRef, LDNode } from '../../ROCrate/LDObject.js';
|
|
4
|
+
import { encoder as encoder$1, decoder as decoder$2 } from './LDValue.js';
|
|
5
|
+
import { encoder as encoder$2, decoder as decoder$3 } from './LDRef.js';
|
|
6
|
+
import { equals, defaultOf, isIterable, getEnumerator, disposeSafe, int32ToString } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
7
7
|
import { list } from '../../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
8
|
-
import { toList, delay, map
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { toList, delay, map, enumerateFromFunctions, append, singleton, empty, collect } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
9
|
+
import { encoder as encoder$3, decoder as decoder$1 } from './LDContext.js';
|
|
10
|
+
import { value, unwrap } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
11
|
+
import { Getters$2_$ctor_Z4BE6C149, string, Getters$2__get_Errors, map as map$1, oneOf, int, decimal } from '../../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
12
12
|
import { Decode_resizeArrayOrSingleton, Helpers_prependPath } from '../Decode.js';
|
|
13
|
-
import {
|
|
13
|
+
import { isEmpty, length, head, ofArray } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
14
14
|
import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../../../node_modules/@fable-org/fable-library-js/Result.js';
|
|
15
15
|
import { fold } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
16
16
|
|
|
@@ -48,10 +48,10 @@ function genericEncoder(obj) {
|
|
|
48
48
|
return dateTime(d);
|
|
49
49
|
} else if (obj instanceof LDValue) {
|
|
50
50
|
const v = obj;
|
|
51
|
-
return encoder$
|
|
51
|
+
return encoder$1(v);
|
|
52
52
|
} else if (obj instanceof LDRef) {
|
|
53
53
|
const r = obj;
|
|
54
|
-
return encoder$
|
|
54
|
+
return encoder$2(r);
|
|
55
55
|
} else if (obj instanceof LDNode) {
|
|
56
56
|
const o = obj;
|
|
57
57
|
return encoder(o);
|
|
@@ -63,7 +63,7 @@ function genericEncoder(obj) {
|
|
|
63
63
|
};
|
|
64
64
|
} else if (isIterable(obj)) {
|
|
65
65
|
const l = obj;
|
|
66
|
-
return list(toList(delay(() => map
|
|
66
|
+
return list(toList(delay(() => map(genericEncoder, enumerateFromFunctions(() => getEnumerator(l), (enumerator) => enumerator["System.Collections.IEnumerator.MoveNext"](), (enumerator_1) => enumerator_1["System.Collections.IEnumerator.get_Current"]())))));
|
|
67
67
|
} else {
|
|
68
68
|
throw new Error("Unknown type");
|
|
69
69
|
}
|
|
@@ -85,7 +85,7 @@ function encoder(obj) {
|
|
|
85
85
|
}
|
|
86
86
|
}), obj.AdditionalType)]) : empty(), delay(() => {
|
|
87
87
|
let matchValue;
|
|
88
|
-
return append((matchValue = obj.TryGetContext(), matchValue != null ? singleton(["@context", encoder$
|
|
88
|
+
return append((matchValue = obj.TryGetContext(), matchValue != null ? singleton(["@context", encoder$3(value(matchValue))]) : empty()), delay(() => collect((kv) => {
|
|
89
89
|
const l = kv[0].toLocaleLowerCase();
|
|
90
90
|
return l !== "id" && l !== "schematype" && l !== "additionaltype" && l !== "@context" && !l.startsWith("init@") && !l.startsWith("init_") ? singleton([kv[0], genericEncoder(kv[1])]) : empty();
|
|
91
91
|
}, obj.GetProperties(true))));
|
|
@@ -93,7 +93,7 @@ function encoder(obj) {
|
|
|
93
93
|
}));
|
|
94
94
|
return {
|
|
95
95
|
Encode(helpers_3) {
|
|
96
|
-
const arg = map
|
|
96
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_3)], values_1);
|
|
97
97
|
return helpers_3.encodeObject(arg);
|
|
98
98
|
}
|
|
99
99
|
};
|
|
@@ -117,7 +117,7 @@ function getDecoder(expectObject) {
|
|
|
117
117
|
id = objectArg_1.Field("@id", string);
|
|
118
118
|
let context;
|
|
119
119
|
const objectArg_2 = get$.Optional;
|
|
120
|
-
context = objectArg_2.Field("@context", decoder$
|
|
120
|
+
context = objectArg_2.Field("@context", decoder$1);
|
|
121
121
|
const o = new LDNode(id, t, unwrap((arg_7 = Decode_resizeArrayOrSingleton(string), objectArg_3 = get$.Optional, objectArg_3.Field("additionalType", arg_7))));
|
|
122
122
|
const enumerator = getEnumerator(properties);
|
|
123
123
|
try {
|
|
@@ -177,14 +177,14 @@ function getDecoder(expectObject) {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
if (expectObject_1) {
|
|
180
|
-
return map((value_4) => value_4, decodeObject);
|
|
180
|
+
return map$1((value_4) => value_4, decodeObject);
|
|
181
181
|
} else {
|
|
182
|
-
return oneOf(ofArray([map((value_5) => value_5, decoder$
|
|
182
|
+
return oneOf(ofArray([map$1((value_5) => value_5, decoder$2), map$1((value_6) => value_6, decodeObject), map$1((value_7) => value_7, decoder$3), map$1((value_8) => value_8, resizeArray), map$1((value_9) => value_9, string), map$1((value_10) => value_10, int), map$1((value_11) => value_11, decimal)]));
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
return decode(expectObject);
|
|
186
186
|
}
|
|
187
|
-
const decoder = map((value) => value, getDecoder(true));
|
|
187
|
+
const decoder = map$1((value) => value, getDecoder(true));
|
|
188
188
|
const genericDecoder = getDecoder(false);
|
|
189
189
|
|
|
190
190
|
export { decoder, encoder, genericDecoder, genericEncoder, getDecoder };
|
package/dist/ts/ts/Json/Run.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
-
import {
|
|
2
|
+
import { map, unwrap } 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 {
|
|
8
|
-
import {
|
|
4
|
+
import { OntologyAnnotation_encoder, OntologyAnnotation_decoder } from './OntologyAnnotation.js';
|
|
5
|
+
import { encoder as encoder$1, decoder as decoder$2, encoderCompressed as encoderCompressed$1, decoderCompressed as decoderCompressed$2 } from './DataMap/DataMap.js';
|
|
6
|
+
import { encoder as encoder$2, decoder as decoder$1, encoderCompressed as encoderCompressed$2, decoderCompressed as decoderCompressed$1 } from './Table/ArcTable.js';
|
|
7
|
+
import { encoder as encoder$3, decoder as decoder$3 } from './Person.js';
|
|
8
|
+
import { encoder as encoder$4, decoder as decoder$4 } from './Comment.js';
|
|
9
9
|
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
10
10
|
import { ArcRun } from '../Core/ArcTypes.js';
|
|
11
11
|
import { object, string, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
@@ -69,7 +69,7 @@ function encoderCompressed(stringTable, oaTable, cellTable, run) {
|
|
|
69
69
|
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
70
70
|
return object((get$) => {
|
|
71
71
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
72
|
-
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((arg_17 = decoderCompressed$2(), objectArg_8 = get$.Optional, objectArg_8.Field("DataMap", arg_17))), unwrap((arg_19 = resizeArray(decoder$3), objectArg_9 = get$.Optional, objectArg_9.Field("Performers", arg_19))), unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Comments", arg_21))));
|
|
72
|
+
return ArcRun.create((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("MeasurementType", OntologyAnnotation_decoder))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("TechnologyType", OntologyAnnotation_decoder))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("TechnologyPlatform", OntologyAnnotation_decoder))), unwrap((arg_13 = resizeArray(string), objectArg_6 = get$.Optional, objectArg_6.Field("WorkflowIdentifiers", arg_13))), unwrap((arg_15 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_7 = get$.Optional, objectArg_7.Field("Tables", arg_15))), unwrap((arg_17 = decoderCompressed$2(stringTable, oaTable, cellTable), objectArg_8 = get$.Optional, objectArg_8.Field("DataMap", arg_17))), unwrap((arg_19 = resizeArray(decoder$3), objectArg_9 = get$.Optional, objectArg_9.Field("Performers", arg_19))), unwrap((arg_21 = resizeArray(decoder$4), objectArg_10 = get$.Optional, objectArg_10.Field("Comments", arg_21))));
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fill, setItem, map, item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
2
2
|
import { iterate } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
3
|
import { defaultOf } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
4
4
|
import { array, string, int } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|