@nfdi4plants/arctrl 1.2.0 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARC.js +53 -35
- package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
- package/Contract/ArcAssay.js +102 -0
- package/Contract/ArcInvestigation.js +78 -0
- package/Contract/ArcStudy.js +102 -0
- package/Contract/Contract.js +3 -3
- package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
- package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
- package/Core/Comment.js +97 -0
- package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
- package/Core/Conversion.js +1056 -0
- package/Core/Helper/Collections.js +318 -0
- package/Core/Helper/HashCodes.js +39 -0
- package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
- package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
- package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
- package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
- package/Core/OntologyAnnotation.js +186 -0
- package/Core/OntologySourceReference.js +92 -0
- package/Core/Person.js +194 -0
- package/Core/Process/ColumnIndex.js +248 -0
- package/Core/Process/Component.js +188 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
- package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
- package/Core/Process/Factor.js +109 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
- package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
- package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
- package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
- package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
- package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
- package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +13 -13
- package/Core/Publication.js +116 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +43 -149
- package/Core/Table/ArcTableAux.js +532 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +6 -6
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
- package/{Templates → Core}/Template.js +16 -17
- package/Core/Templates.js +84 -0
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +46 -8
- package/FileSystem/Path.js +10 -2
- package/Json/ARC.js +25 -0
- package/Json/Assay.js +202 -0
- package/Json/Comment.js +130 -0
- package/Json/ConverterOptions.js +18 -0
- package/Json/Decode.js +128 -0
- package/Json/Encode.js +45 -0
- package/Json/Investigation.js +220 -0
- package/Json/OntologyAnnotation.js +169 -0
- package/Json/OntologySourceReference.js +122 -0
- package/Json/Person.js +250 -0
- package/Json/Process/AssayMaterials.js +22 -0
- package/Json/Process/Component.js +79 -0
- package/Json/Process/Data.js +102 -0
- package/Json/Process/DataFile.js +81 -0
- package/Json/Process/Factor.js +48 -0
- package/Json/Process/FactorValue.js +53 -0
- package/Json/Process/Material.js +107 -0
- package/Json/Process/MaterialAttribute.js +45 -0
- package/Json/Process/MaterialAttributeValue.js +70 -0
- package/Json/Process/MaterialType.js +60 -0
- package/Json/Process/Process.js +107 -0
- package/Json/Process/ProcessInput.js +59 -0
- package/Json/Process/ProcessOutput.js +71 -0
- package/Json/Process/ProcessParameterValue.js +69 -0
- package/Json/Process/ProcessSequence.js +53 -0
- package/Json/Process/PropertyValue.js +82 -0
- package/Json/Process/Protocol.js +147 -0
- package/Json/Process/ProtocolParameter.js +45 -0
- package/Json/Process/Sample.js +134 -0
- package/Json/Process/Source.js +101 -0
- package/Json/Process/StudyMaterials.js +24 -0
- package/Json/Process/Value.js +42 -0
- package/Json/Publication.js +142 -0
- package/Json/StringTable.js +44 -0
- package/Json/Study.js +306 -0
- package/{ISA/ISA.Json/ArcTypes → Json/Table}/ArcTable.js +53 -49
- package/Json/Table/CellTable.js +40 -0
- package/Json/Table/CompositeCell.js +65 -0
- package/{ISA/ISA.Json/ArcTypes → Json/Table}/CompositeHeader.js +22 -19
- package/Json/Table/Compression.js +38 -0
- package/Json/Table/IOType.js +37 -0
- package/Json/Table/OATable.js +40 -0
- package/Json/Table/Templates.js +107 -0
- package/Json/context/rocrate/isa_assay_context.js +32 -0
- package/Json/context/rocrate/isa_comment_context.js +23 -0
- package/Json/context/rocrate/isa_component_context.js +24 -0
- package/Json/context/rocrate/isa_data_context.js +25 -0
- package/Json/context/rocrate/isa_factor_context.js +25 -0
- package/Json/context/rocrate/isa_factor_value_context.js +23 -0
- package/{ISA/ISA.Json → Json}/context/rocrate/isa_investigation_context.js +5 -5
- package/{ISA/ISA.Json → Json}/context/rocrate/isa_material_attribute_context.js +4 -4
- package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
- package/Json/context/rocrate/isa_material_context.js +26 -0
- package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/Json/context/rocrate/isa_organization_context.js +22 -0
- package/Json/context/rocrate/isa_person_context.js +33 -0
- package/Json/context/rocrate/isa_process_context.js +29 -0
- package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
- package/Json/context/rocrate/isa_protocol_context.js +28 -0
- package/{ISA/ISA.Json → Json}/context/rocrate/isa_protocol_parameter_context.js +4 -4
- package/Json/context/rocrate/isa_publication_context.js +25 -0
- package/Json/context/rocrate/isa_sample_context.js +24 -0
- package/Json/context/rocrate/isa_source_context.js +25 -0
- package/Json/context/rocrate/isa_study_context.js +40 -0
- package/Json/context/rocrate/property_value_context.js +4 -0
- package/Json/context/rocrate/rocrate_context.js +23 -0
- package/Json.js +193 -0
- package/README.md +33 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeColumn.js +10 -10
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +7 -7
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Comment.js +5 -5
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
- package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +23 -22
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
- package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
- package/Template.Web.js +27 -0
- package/WebRequest/WebRequest.Node.js +2 -2
- package/WebRequest/WebRequest.js +2 -2
- package/Xlsx.js +85 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +19 -19
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +5 -5
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +2 -2
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +1 -1
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +2 -2
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/CHANGELOG.md +18 -0
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.js +337 -40
- package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.js +2 -13
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/package.json +1 -1
- package/fable_modules/project_cracked.json +1 -1
- package/index.js +14 -12
- package/package.json +1 -1
- package/Contracts/Contracts.ArcTypes.js +0 -268
- package/FileSystemTree.js +0 -51
- package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
- package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
- package/ISA/ISA/Builder/Types.js +0 -243
- package/ISA/ISA/Fable.js +0 -123
- package/ISA/ISA/Helper.js +0 -505
- package/ISA/ISA/JsonTypes/Assay.js +0 -620
- package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
- package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
- package/ISA/ISA/JsonTypes/Comment.js +0 -58
- package/ISA/ISA/JsonTypes/Component.js +0 -165
- package/ISA/ISA/JsonTypes/Factor.js +0 -128
- package/ISA/ISA/JsonTypes/Investigation.js +0 -204
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
- package/ISA/ISA/JsonTypes/Person.js +0 -152
- package/ISA/ISA/JsonTypes/Publication.js +0 -105
- package/ISA/ISA/JsonTypes/Study.js +0 -942
- package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
- package/ISA/ISA/UIHelper.js +0 -19
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -303
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -122
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -203
- package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -40
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -62
- package/ISA/ISA.Json/ArcTypes/IOType.js +0 -33
- package/ISA/ISA.Json/ArcTypes/OATable.js +0 -42
- package/ISA/ISA.Json/Assay.js +0 -129
- package/ISA/ISA.Json/Comment.js +0 -80
- package/ISA/ISA.Json/ConverterOptions.js +0 -51
- package/ISA/ISA.Json/Data.js +0 -253
- package/ISA/ISA.Json/Decode.js +0 -61
- package/ISA/ISA.Json/Factor.js +0 -194
- package/ISA/ISA.Json/GEncode.js +0 -40
- package/ISA/ISA.Json/Investigation.js +0 -89
- package/ISA/ISA.Json/Material.js +0 -232
- package/ISA/ISA.Json/Ontology.js +0 -200
- package/ISA/ISA.Json/Person.js +0 -186
- package/ISA/ISA.Json/Process.js +0 -305
- package/ISA/ISA.Json/Protocol.js +0 -281
- package/ISA/ISA.Json/Publication.js +0 -86
- package/ISA/ISA.Json/StringTable.js +0 -44
- package/ISA/ISA.Json/Study.js +0 -186
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +0 -34
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +0 -23
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +0 -24
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +0 -22
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +0 -31
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +0 -31
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +0 -30
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +0 -27
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +0 -42
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +0 -25
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
- package/Path.js +0 -10
- package/Templates/Template.Json.js +0 -90
- package/Templates/Template.Web.js +0 -27
- package/Templates/Templates.js +0 -82
- package/fable_modules/fable-library-js.4.13.0/MapUtil.d.ts +0 -10
- /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/README.md +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { printf, toText, replace } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
2
|
+
import { ofArray, singleton, choose } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
3
|
+
import { equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
4
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
5
|
+
import { list as list_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
6
|
+
import { defaultSpaces, tryIncludeListOpt, tryInclude } from "../Encode.js";
|
|
7
|
+
import { MaterialType_ISAJson_decoder, MaterialType_ISAJson_encoder, MaterialType_ROCrate_decoder, MaterialType_ROCrate_encoder } from "./MaterialType.js";
|
|
8
|
+
import { MaterialAttributeValue_ISAJson_decoder, MaterialAttributeValue_ISAJson_encoder, MaterialAttributeValue_ROCrate_decoder, MaterialAttributeValue_ROCrate_encoder } from "./MaterialAttributeValue.js";
|
|
9
|
+
import { context_jsonvalue } from "../context/rocrate/isa_material_context.js";
|
|
10
|
+
import { list as list_2, string, object } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
11
|
+
import { Decode_objectNoAdditionalProperties, Decode_uri } from "../Decode.js";
|
|
12
|
+
import { Material } from "../../Core/Process/Material.js";
|
|
13
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
14
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
15
|
+
|
|
16
|
+
export function Material_ROCrate_genID(m) {
|
|
17
|
+
const matchValue = m.ID;
|
|
18
|
+
if (matchValue == null) {
|
|
19
|
+
const matchValue_1 = m.Name;
|
|
20
|
+
if (matchValue_1 == null) {
|
|
21
|
+
return "#EmptyMaterial";
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
return "#Material_" + replace(matchValue_1, " ", "_");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
return matchValue;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function Material_ROCrate_encoder(oa) {
|
|
33
|
+
return new Json(5, [choose((tupledArg) => {
|
|
34
|
+
const v = tupledArg[1];
|
|
35
|
+
if (equals(v, new Json(3, []))) {
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return [tupledArg[0], v];
|
|
40
|
+
}
|
|
41
|
+
}, ofArray([["@id", new Json(0, [Material_ROCrate_genID(oa)])], ["@type", list_1(singleton(new Json(0, ["Material"])))], tryInclude("name", (value_2) => (new Json(0, [value_2])), oa.Name), tryInclude("type", MaterialType_ROCrate_encoder, oa.MaterialType), tryIncludeListOpt("characteristics", MaterialAttributeValue_ROCrate_encoder, oa.Characteristics), tryIncludeListOpt("derivesFrom", Material_ROCrate_encoder, oa.DerivesFrom), ["@context", context_jsonvalue]]))]);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const Material_ROCrate_decoder = (() => {
|
|
45
|
+
const decode = () => object((get$) => {
|
|
46
|
+
let objectArg, objectArg_1, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4;
|
|
47
|
+
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", MaterialType_ROCrate_decoder)), (arg_7 = list_2(MaterialAttributeValue_ROCrate_decoder), (objectArg_3 = get$.Optional, objectArg_3.Field("characteristics", arg_7))), (arg_9 = list_2(decode()), (objectArg_4 = get$.Optional, objectArg_4.Field("derivesFrom", arg_9))));
|
|
48
|
+
});
|
|
49
|
+
return decode();
|
|
50
|
+
})();
|
|
51
|
+
|
|
52
|
+
export function Material_ISAJson_encoder(oa) {
|
|
53
|
+
return new Json(5, [choose((tupledArg) => {
|
|
54
|
+
const v = tupledArg[1];
|
|
55
|
+
if (equals(v, new Json(3, []))) {
|
|
56
|
+
return void 0;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
return [tupledArg[0], v];
|
|
60
|
+
}
|
|
61
|
+
}, ofArray([tryInclude("@id", (value) => (new Json(0, [value])), oa.ID), tryInclude("name", (value_2) => (new Json(0, [value_2])), oa.Name), tryInclude("type", MaterialType_ISAJson_encoder, oa.MaterialType), tryIncludeListOpt("characteristics", MaterialAttributeValue_ISAJson_encoder, oa.Characteristics), tryIncludeListOpt("derivesFrom", Material_ISAJson_encoder, oa.DerivesFrom)]))]);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const Material_ISAJson_allowedFields = ofArray(["@id", "@type", "name", "type", "characteristics", "derivesFrom", "@context"]);
|
|
65
|
+
|
|
66
|
+
export const Material_ISAJson_decoder = (() => {
|
|
67
|
+
const decode = () => Decode_objectNoAdditionalProperties(Material_ISAJson_allowedFields, (get$) => {
|
|
68
|
+
let objectArg, objectArg_1, objectArg_2, arg_7, objectArg_3, arg_9, objectArg_4;
|
|
69
|
+
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", MaterialType_ISAJson_decoder)), (arg_7 = list_2(MaterialAttributeValue_ISAJson_decoder), (objectArg_3 = get$.Optional, objectArg_3.Field("characteristics", arg_7))), (arg_9 = list_2(decode()), (objectArg_4 = get$.Optional, objectArg_4.Field("derivesFrom", arg_9))));
|
|
70
|
+
});
|
|
71
|
+
return decode();
|
|
72
|
+
})();
|
|
73
|
+
|
|
74
|
+
export function ARCtrl_Process_Material__Material_fromISAJsonString_Static_Z721C83C5(s) {
|
|
75
|
+
const matchValue = fromString(Material_ISAJson_decoder, s);
|
|
76
|
+
if (matchValue.tag === 1) {
|
|
77
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
return matchValue.fields[0];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ARCtrl_Process_Material__Material_toISAJsonString_Static_71136F3F(spaces) {
|
|
85
|
+
return (f) => {
|
|
86
|
+
const value = Material_ISAJson_encoder(f);
|
|
87
|
+
return toString(defaultSpaces(spaces), value);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ARCtrl_Process_Material__Material_fromROCrateJsonString_Static_Z721C83C5(s) {
|
|
92
|
+
const matchValue = fromString(Material_ROCrate_decoder, s);
|
|
93
|
+
if (matchValue.tag === 1) {
|
|
94
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
return matchValue.fields[0];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ARCtrl_Process_Material__Material_toROCrateJsonString_Static_71136F3F(spaces) {
|
|
102
|
+
return (f) => {
|
|
103
|
+
const value = Material_ROCrate_encoder(f);
|
|
104
|
+
return toString(defaultSpaces(spaces), value);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { singleton, choose } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
2
|
+
import { equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
3
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
4
|
+
import { defaultSpaces, tryInclude } from "../Encode.js";
|
|
5
|
+
import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_ISAJson_encoder } from "../OntologyAnnotation.js";
|
|
6
|
+
import { object } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
7
|
+
import { MaterialAttribute } from "../../Core/Process/MaterialAttribute.js";
|
|
8
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
9
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
10
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
11
|
+
|
|
12
|
+
export function MaterialAttribute_ISAJson_encoder(value) {
|
|
13
|
+
return new Json(5, [choose((tupledArg) => {
|
|
14
|
+
const v = tupledArg[1];
|
|
15
|
+
if (equals(v, new Json(3, []))) {
|
|
16
|
+
return void 0;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
return [tupledArg[0], v];
|
|
20
|
+
}
|
|
21
|
+
}, singleton(tryInclude("characteristicType", OntologyAnnotation_ISAJson_encoder, value.CharacteristicType)))]);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const MaterialAttribute_ISAJson_decoder = object((get$) => {
|
|
25
|
+
let objectArg;
|
|
26
|
+
return new MaterialAttribute(void 0, (objectArg = get$.Optional, objectArg.Field("characteristicType", OntologyAnnotation_ISAJson_decoder)));
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function ARCtrl_Process_MaterialAttribute__MaterialAttribute_fromISAJsonString_Static_Z721C83C5(s) {
|
|
30
|
+
const matchValue = fromString(MaterialAttribute_ISAJson_decoder, s);
|
|
31
|
+
if (matchValue.tag === 1) {
|
|
32
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
return matchValue.fields[0];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ARCtrl_Process_MaterialAttribute__MaterialAttribute_toISAJsonString_Static_71136F3F(spaces) {
|
|
40
|
+
return (v) => {
|
|
41
|
+
const value = MaterialAttribute_ISAJson_encoder(v);
|
|
42
|
+
return toString(defaultSpaces(spaces), value);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { decoder as decoder_1, encoder } from "./PropertyValue.js";
|
|
2
|
+
import { MaterialAttributeValue, MaterialAttributeValue_createAsPV } from "../../Core/Process/MaterialAttributeValue.js";
|
|
3
|
+
import { ofArray, choose } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
4
|
+
import { equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
5
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
6
|
+
import { defaultSpaces, tryInclude } from "../Encode.js";
|
|
7
|
+
import { MaterialAttribute_ISAJson_decoder, MaterialAttribute_ISAJson_encoder } from "./MaterialAttribute.js";
|
|
8
|
+
import { Value_ISAJson_decoder, Value_ISAJson_encoder } from "./Value.js";
|
|
9
|
+
import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_ISAJson_encoder } from "../OntologyAnnotation.js";
|
|
10
|
+
import { object } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
11
|
+
import { Decode_uri } from "../Decode.js";
|
|
12
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
13
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
14
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
15
|
+
|
|
16
|
+
export const MaterialAttributeValue_ROCrate_encoder = encoder;
|
|
17
|
+
|
|
18
|
+
export const MaterialAttributeValue_ROCrate_decoder = decoder_1(MaterialAttributeValue_createAsPV);
|
|
19
|
+
|
|
20
|
+
export function MaterialAttributeValue_ISAJson_encoder(oa) {
|
|
21
|
+
return new Json(5, [choose((tupledArg) => {
|
|
22
|
+
const v = tupledArg[1];
|
|
23
|
+
if (equals(v, new Json(3, []))) {
|
|
24
|
+
return void 0;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
return [tupledArg[0], v];
|
|
28
|
+
}
|
|
29
|
+
}, ofArray([tryInclude("@id", (value) => (new Json(0, [value])), oa.ID), tryInclude("category", MaterialAttribute_ISAJson_encoder, oa.Category), tryInclude("value", Value_ISAJson_encoder, oa.Value), tryInclude("unit", OntologyAnnotation_ISAJson_encoder, oa.Unit)]))]);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const MaterialAttributeValue_ISAJson_decoder = object((get$) => {
|
|
33
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3;
|
|
34
|
+
return new MaterialAttributeValue((objectArg = get$.Optional, objectArg.Field("@id", Decode_uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("category", MaterialAttribute_ISAJson_decoder)), (objectArg_2 = get$.Optional, objectArg_2.Field("value", Value_ISAJson_decoder)), (objectArg_3 = get$.Optional, objectArg_3.Field("unit", OntologyAnnotation_ISAJson_decoder)));
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function ARCtrl_Process_MaterialAttributeValue__MaterialAttributeValue_fromISAJsonString_Static_Z721C83C5(s) {
|
|
38
|
+
const matchValue = fromString(MaterialAttributeValue_ISAJson_decoder, s);
|
|
39
|
+
if (matchValue.tag === 1) {
|
|
40
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return matchValue.fields[0];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ARCtrl_Process_MaterialAttributeValue__MaterialAttributeValue_toISAJsonString_Static_71136F3F(spaces) {
|
|
48
|
+
return (f) => {
|
|
49
|
+
const value = MaterialAttributeValue_ISAJson_encoder(f);
|
|
50
|
+
return toString(defaultSpaces(spaces), value);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ARCtrl_Process_MaterialAttributeValue__MaterialAttributeValue_fromROCrateJsonString_Static_Z721C83C5(s) {
|
|
55
|
+
const matchValue = fromString(MaterialAttributeValue_ROCrate_decoder, s);
|
|
56
|
+
if (matchValue.tag === 1) {
|
|
57
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return matchValue.fields[0];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ARCtrl_Process_MaterialAttributeValue__MaterialAttributeValue_toROCrateJsonString_Static_71136F3F(spaces) {
|
|
65
|
+
return (f) => {
|
|
66
|
+
const value = MaterialAttributeValue_ROCrate_encoder(f);
|
|
67
|
+
return toString(defaultSpaces(spaces), value);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ErrorReason$1, Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
2
|
+
import { string } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
3
|
+
import { FSharpResult$2 } from "../../fable_modules/fable-library-js.4.16.0/Result.js";
|
|
4
|
+
import { MaterialType } from "../../Core/Process/MaterialType.js";
|
|
5
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
6
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
7
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
8
|
+
import { defaultSpaces } from "../Encode.js";
|
|
9
|
+
|
|
10
|
+
export function MaterialType_ROCrate_encoder(value) {
|
|
11
|
+
if (value.tag === 1) {
|
|
12
|
+
return new Json(0, ["Labeled Extract Name"]);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
return new Json(0, ["Extract Name"]);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const MaterialType_ROCrate_decoder = {
|
|
20
|
+
Decode(s, json) {
|
|
21
|
+
const matchValue = string.Decode(s, json);
|
|
22
|
+
if (matchValue.tag === 1) {
|
|
23
|
+
return new FSharpResult$2(1, [matchValue.fields[0]]);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
switch (matchValue.fields[0]) {
|
|
27
|
+
case "Extract Name":
|
|
28
|
+
return new FSharpResult$2(0, [new MaterialType(0, [])]);
|
|
29
|
+
case "Labeled Extract Name":
|
|
30
|
+
return new FSharpResult$2(0, [new MaterialType(1, [])]);
|
|
31
|
+
default: {
|
|
32
|
+
const s_1 = matchValue.fields[0];
|
|
33
|
+
return new FSharpResult$2(1, [[`Could not parse ${s_1}No other value than "Extract Name" or "Labeled Extract Name" allowed for materialtype`, new ErrorReason$1(0, [s_1, json])]]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const MaterialType_ISAJson_encoder = MaterialType_ROCrate_encoder;
|
|
41
|
+
|
|
42
|
+
export const MaterialType_ISAJson_decoder = MaterialType_ROCrate_decoder;
|
|
43
|
+
|
|
44
|
+
export function ARCtrl_Process_MaterialType__MaterialType_fromISAJsonString_Static_Z721C83C5(s) {
|
|
45
|
+
const matchValue = fromString(MaterialType_ISAJson_decoder, s);
|
|
46
|
+
if (matchValue.tag === 1) {
|
|
47
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
return matchValue.fields[0];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ARCtrl_Process_MaterialType__MaterialType_toISAJsonString_Static_71136F3F(spaces) {
|
|
55
|
+
return (f) => {
|
|
56
|
+
const value = MaterialType_ISAJson_encoder(f);
|
|
57
|
+
return toString(defaultSpaces(spaces), value);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { printf, toText, replace } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
2
|
+
import { URIModule_toString } from "../../Core/URI.js";
|
|
3
|
+
import { ofArray, singleton, choose } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
4
|
+
import { equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
5
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
6
|
+
import { list as list_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
7
|
+
import { defaultSpaces, tryIncludeListOpt, tryInclude } from "../Encode.js";
|
|
8
|
+
import { Protocol_ISAJson_decoder, Protocol_ISAJson_encoder, Protocol_ROCrate_decoder, Protocol_ROCrate_encoder } from "./Protocol.js";
|
|
9
|
+
import { ProcessParameterValue_ISAJson_decoder, ProcessParameterValue_ISAJson_encoder, ProcessParameterValue_ROCrate_decoder, ProcessParameterValue_ROCrate_encoder } from "./ProcessParameterValue.js";
|
|
10
|
+
import { Person_ROCrate_decodeAuthorListString, Person_ROCrate_encodeAuthorListString } from "../Person.js";
|
|
11
|
+
import { ProcessInput_ISAJson_decoder, ProcessInput_ISAJson_encoder, ProcessInput_ROCrate_decoder, ProcessInput_ROCrate_encoder } from "./ProcessInput.js";
|
|
12
|
+
import { ProcessOutput_ISAJson_decoder, ProcessOutput_ISAJson_encoder, ProcessOutput_ROCrate_decoder, ProcessOutput_ROCrate_encoder } from "./ProcessOutput.js";
|
|
13
|
+
import { Comment_ISAJson_decoder, Comment_ISAJson_encoder, Comment_ROCrate_decoder, Comment_ROCrate_encoder } from "../Comment.js";
|
|
14
|
+
import { context_jsonvalue } from "../context/rocrate/isa_process_context.js";
|
|
15
|
+
import { list as list_2, string, object } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
16
|
+
import { Decode_uri } from "../Decode.js";
|
|
17
|
+
import { Process } from "../../Core/Process/Process.js";
|
|
18
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
19
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
20
|
+
|
|
21
|
+
export function Process_ROCrate_genID(p) {
|
|
22
|
+
const matchValue = p.ID;
|
|
23
|
+
if (matchValue == null) {
|
|
24
|
+
const matchValue_1 = p.Name;
|
|
25
|
+
if (matchValue_1 == null) {
|
|
26
|
+
return "#EmptyProcess";
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return "#Process_" + replace(matchValue_1, " ", "_");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
return URIModule_toString(matchValue);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function Process_ROCrate_encoder(studyName, assayName, oa) {
|
|
38
|
+
return new Json(5, [choose((tupledArg) => {
|
|
39
|
+
const v = tupledArg[1];
|
|
40
|
+
if (equals(v, new Json(3, []))) {
|
|
41
|
+
return void 0;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return [tupledArg[0], v];
|
|
45
|
+
}
|
|
46
|
+
}, ofArray([["@id", new Json(0, [Process_ROCrate_genID(oa)])], ["@type", list_1(singleton(new Json(0, ["Process"])))], tryInclude("name", (value_2) => (new Json(0, [value_2])), oa.Name), tryInclude("executesProtocol", (oa_1) => Protocol_ROCrate_encoder(studyName, assayName, oa.Name, oa_1), oa.ExecutesProtocol), tryIncludeListOpt("parameterValues", ProcessParameterValue_ROCrate_encoder, oa.ParameterValues), tryInclude("performer", Person_ROCrate_encodeAuthorListString, oa.Performer), tryInclude("date", (value_4) => (new Json(0, [value_4])), oa.Date), tryIncludeListOpt("inputs", ProcessInput_ROCrate_encoder, oa.Inputs), tryIncludeListOpt("outputs", ProcessOutput_ROCrate_encoder, oa.Outputs), tryIncludeListOpt("comments", Comment_ROCrate_encoder, oa.Comments), ["@context", context_jsonvalue]]))]);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const Process_ROCrate_decoder = object((get$) => {
|
|
50
|
+
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;
|
|
51
|
+
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", Protocol_ROCrate_decoder)), (arg_7 = list_2(ProcessParameterValue_ROCrate_decoder), (objectArg_3 = get$.Optional, objectArg_3.Field("parameterValues", arg_7))), (objectArg_4 = get$.Optional, objectArg_4.Field("performer", Person_ROCrate_decodeAuthorListString)), (objectArg_5 = get$.Optional, objectArg_5.Field("date", string)), void 0, void 0, (arg_13 = list_2(ProcessInput_ROCrate_decoder), (objectArg_6 = get$.Optional, objectArg_6.Field("inputs", arg_13))), (arg_15 = list_2(ProcessOutput_ROCrate_decoder), (objectArg_7 = get$.Optional, objectArg_7.Field("outputs", arg_15))), (arg_17 = list_2(Comment_ROCrate_decoder), (objectArg_8 = get$.Optional, objectArg_8.Field("comments", arg_17))));
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function Process_ISAJson_encoder(oa) {
|
|
55
|
+
return new Json(5, [choose((tupledArg) => {
|
|
56
|
+
const v = tupledArg[1];
|
|
57
|
+
if (equals(v, new Json(3, []))) {
|
|
58
|
+
return void 0;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return [tupledArg[0], v];
|
|
62
|
+
}
|
|
63
|
+
}, ofArray([tryInclude("@id", (value) => (new Json(0, [value])), oa.ID), tryInclude("name", (value_2) => (new Json(0, [value_2])), oa.Name), tryInclude("executesProtocol", Protocol_ISAJson_encoder, oa.ExecutesProtocol), tryIncludeListOpt("parameterValues", ProcessParameterValue_ISAJson_encoder, oa.ParameterValues), tryInclude("performer", (value_4) => (new Json(0, [value_4])), oa.Performer), tryInclude("date", (value_6) => (new Json(0, [value_6])), oa.Date), tryInclude("previousProcess", Process_ISAJson_encoder, oa.PreviousProcess), tryInclude("nextProcess", Process_ISAJson_encoder, oa.NextProcess), tryIncludeListOpt("inputs", ProcessInput_ISAJson_encoder, oa.Inputs), tryIncludeListOpt("outputs", ProcessOutput_ISAJson_encoder, oa.Outputs), tryIncludeListOpt("comments", Comment_ISAJson_encoder, oa.Comments)]))]);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export const Process_ISAJson_decoder = (() => {
|
|
67
|
+
const decode = () => object((get$) => {
|
|
68
|
+
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;
|
|
69
|
+
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", Protocol_ISAJson_decoder)), (arg_7 = list_2(ProcessParameterValue_ISAJson_decoder), (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_2(ProcessInput_ISAJson_decoder), (objectArg_8 = get$.Optional, objectArg_8.Field("inputs", arg_17))), (arg_19 = list_2(ProcessOutput_ISAJson_decoder), (objectArg_9 = get$.Optional, objectArg_9.Field("outputs", arg_19))), (arg_21 = list_2(Comment_ISAJson_decoder), (objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21))));
|
|
70
|
+
});
|
|
71
|
+
return decode();
|
|
72
|
+
})();
|
|
73
|
+
|
|
74
|
+
export function ARCtrl_Process_Process__Process_fromISAJsonString_Static_Z721C83C5(s) {
|
|
75
|
+
const matchValue = fromString(Process_ISAJson_decoder, s);
|
|
76
|
+
if (matchValue.tag === 1) {
|
|
77
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
return matchValue.fields[0];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ARCtrl_Process_Process__Process_toISAJsonString_Static_71136F3F(spaces) {
|
|
85
|
+
return (f) => {
|
|
86
|
+
const value = Process_ISAJson_encoder(f);
|
|
87
|
+
return toString(defaultSpaces(spaces), value);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ARCtrl_Process_Process__Process_fromROCrateString_Static_Z721C83C5(s) {
|
|
92
|
+
const matchValue = fromString(Process_ROCrate_decoder, s);
|
|
93
|
+
if (matchValue.tag === 1) {
|
|
94
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
return matchValue.fields[0];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ARCtrl_Process_Process__Process_toROCrateString_Static_39E0BC3F(studyName, assayName, spaces) {
|
|
102
|
+
return (f) => {
|
|
103
|
+
const value = Process_ROCrate_encoder(studyName, assayName, f);
|
|
104
|
+
return toString(defaultSpaces(spaces), value);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Sample_ISAJson_decoder, Sample_ISAJson_encoder, Sample_ROCrate_decoder, Sample_ROCrate_encoder } from "./Sample.js";
|
|
2
|
+
import { Data_ISAJson_decoder, Data_ISAJson_encoder, Data_ROCrate_decoder, Data_ROCrate_encoder } from "./Data.js";
|
|
3
|
+
import { Material_ISAJson_decoder, Material_ISAJson_encoder, Material_ROCrate_decoder, Material_ROCrate_encoder } from "./Material.js";
|
|
4
|
+
import { Source_ISAJson_decoder, Source_ISAJson_encoder, Source_ROCrate_decoder, Source_ROCrate_encoder } from "./Source.js";
|
|
5
|
+
import { map, oneOf } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
6
|
+
import { ProcessInput } from "../../Core/Process/ProcessInput.js";
|
|
7
|
+
import { ofArray } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
8
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
9
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
10
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
11
|
+
import { defaultSpaces } from "../Encode.js";
|
|
12
|
+
|
|
13
|
+
export function ProcessInput_ROCrate_encoder(value) {
|
|
14
|
+
switch (value.tag) {
|
|
15
|
+
case 1:
|
|
16
|
+
return Sample_ROCrate_encoder(value.fields[0]);
|
|
17
|
+
case 2:
|
|
18
|
+
return Data_ROCrate_encoder(value.fields[0]);
|
|
19
|
+
case 3:
|
|
20
|
+
return Material_ROCrate_encoder(value.fields[0]);
|
|
21
|
+
default:
|
|
22
|
+
return Source_ROCrate_encoder(value.fields[0]);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const ProcessInput_ROCrate_decoder = oneOf(ofArray([map((Item) => (new ProcessInput(0, [Item])), Source_ROCrate_decoder), map((Item_1) => (new ProcessInput(1, [Item_1])), Sample_ROCrate_decoder), map((Item_2) => (new ProcessInput(2, [Item_2])), Data_ROCrate_decoder), map((Item_3) => (new ProcessInput(3, [Item_3])), Material_ROCrate_decoder)]));
|
|
27
|
+
|
|
28
|
+
export function ProcessInput_ISAJson_encoder(value) {
|
|
29
|
+
switch (value.tag) {
|
|
30
|
+
case 1:
|
|
31
|
+
return Sample_ISAJson_encoder(value.fields[0]);
|
|
32
|
+
case 2:
|
|
33
|
+
return Data_ISAJson_encoder(value.fields[0]);
|
|
34
|
+
case 3:
|
|
35
|
+
return Material_ISAJson_encoder(value.fields[0]);
|
|
36
|
+
default:
|
|
37
|
+
return Source_ISAJson_encoder(value.fields[0]);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const ProcessInput_ISAJson_decoder = oneOf(ofArray([map((Item) => (new ProcessInput(0, [Item])), Source_ISAJson_decoder), map((Item_1) => (new ProcessInput(1, [Item_1])), Sample_ISAJson_decoder), map((Item_2) => (new ProcessInput(2, [Item_2])), Data_ISAJson_decoder), map((Item_3) => (new ProcessInput(3, [Item_3])), Material_ISAJson_decoder)]));
|
|
42
|
+
|
|
43
|
+
export function ARCtrl_Process_ProcessInput__ProcessInput_fromISAJsonString_Static_Z721C83C5(s) {
|
|
44
|
+
const matchValue = fromString(ProcessInput_ISAJson_decoder, s);
|
|
45
|
+
if (matchValue.tag === 1) {
|
|
46
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return matchValue.fields[0];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ARCtrl_Process_ProcessInput__ProcessInput_toISAJsonString_Static_71136F3F(spaces) {
|
|
54
|
+
return (f) => {
|
|
55
|
+
const value = ProcessInput_ISAJson_encoder(f);
|
|
56
|
+
return toString(defaultSpaces(spaces), value);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Data_ISAJson_decoder, Data_ISAJson_encoder, Data_ROCrate_decoder, Data_ROCrate_encoder } from "./Data.js";
|
|
2
|
+
import { Material_ISAJson_decoder, Material_ISAJson_encoder, Material_ROCrate_decoder, Material_ROCrate_encoder } from "./Material.js";
|
|
3
|
+
import { Sample_ISAJson_decoder, Sample_ISAJson_encoder, Sample_ROCrate_decoder, Sample_ROCrate_encoder } from "./Sample.js";
|
|
4
|
+
import { map, oneOf } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
5
|
+
import { ProcessOutput } from "../../Core/Process/ProcessOutput.js";
|
|
6
|
+
import { ofArray } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
7
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
8
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
9
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
10
|
+
import { defaultSpaces } from "../Encode.js";
|
|
11
|
+
|
|
12
|
+
export function ProcessOutput_ROCrate_encoder(value) {
|
|
13
|
+
switch (value.tag) {
|
|
14
|
+
case 1:
|
|
15
|
+
return Data_ROCrate_encoder(value.fields[0]);
|
|
16
|
+
case 2:
|
|
17
|
+
return Material_ROCrate_encoder(value.fields[0]);
|
|
18
|
+
default:
|
|
19
|
+
return Sample_ROCrate_encoder(value.fields[0]);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const ProcessOutput_ROCrate_decoder = oneOf(ofArray([map((Item) => (new ProcessOutput(0, [Item])), Sample_ROCrate_decoder), map((Item_1) => (new ProcessOutput(1, [Item_1])), Data_ROCrate_decoder), map((Item_2) => (new ProcessOutput(2, [Item_2])), Material_ROCrate_decoder)]));
|
|
24
|
+
|
|
25
|
+
export function ProcessOutput_ISAJson_encoder(value) {
|
|
26
|
+
switch (value.tag) {
|
|
27
|
+
case 1:
|
|
28
|
+
return Data_ISAJson_encoder(value.fields[0]);
|
|
29
|
+
case 2:
|
|
30
|
+
return Material_ISAJson_encoder(value.fields[0]);
|
|
31
|
+
default:
|
|
32
|
+
return Sample_ISAJson_encoder(value.fields[0]);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const ProcessOutput_ISAJson_decoder = oneOf(ofArray([map((Item) => (new ProcessOutput(0, [Item])), Sample_ISAJson_decoder), map((Item_1) => (new ProcessOutput(1, [Item_1])), Data_ISAJson_decoder), map((Item_2) => (new ProcessOutput(2, [Item_2])), Material_ISAJson_decoder)]));
|
|
37
|
+
|
|
38
|
+
export function ARCtrl_Process_ProcessOutput__ProcessOutput_fromISAJsonString_Static_Z721C83C5(s) {
|
|
39
|
+
const matchValue = fromString(ProcessOutput_ISAJson_decoder, s);
|
|
40
|
+
if (matchValue.tag === 1) {
|
|
41
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return matchValue.fields[0];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ARCtrl_Process_ProcessOutput__ProcessOutput_toISAJsonString_Static_71136F3F(spaces) {
|
|
49
|
+
return (f) => {
|
|
50
|
+
const value = ProcessOutput_ISAJson_encoder(f);
|
|
51
|
+
return toString(defaultSpaces(spaces), value);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ARCtrl_Process_ProcessOutput__ProcessOutput_fromROCrateJsonString_Static_Z721C83C5(s) {
|
|
56
|
+
const matchValue = fromString(ProcessOutput_ROCrate_decoder, s);
|
|
57
|
+
if (matchValue.tag === 1) {
|
|
58
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return matchValue.fields[0];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ARCtrl_Process_ProcessOutput__ProcessOutput_toROCrateJsonString_Static_71136F3F(spaces) {
|
|
66
|
+
return (f) => {
|
|
67
|
+
const value = ProcessOutput_ROCrate_encoder(f);
|
|
68
|
+
return toString(defaultSpaces(spaces), value);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { decoder as decoder_1, encoder } from "./PropertyValue.js";
|
|
2
|
+
import { ProcessParameterValue } from "../../Core/Process/ProcessParameterValue.js";
|
|
3
|
+
import { ofArray, choose } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
4
|
+
import { equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
5
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
6
|
+
import { defaultSpaces, tryInclude } from "../Encode.js";
|
|
7
|
+
import { ProtocolParameter_ISAJson_decoder, ProtocolParameter_ISAJson_encoder } from "./ProtocolParameter.js";
|
|
8
|
+
import { Value_ISAJson_decoder, Value_ISAJson_encoder } from "./Value.js";
|
|
9
|
+
import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_ISAJson_encoder } from "../OntologyAnnotation.js";
|
|
10
|
+
import { object } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
11
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
12
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
13
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
14
|
+
|
|
15
|
+
export const ProcessParameterValue_ROCrate_encoder = encoder;
|
|
16
|
+
|
|
17
|
+
export const ProcessParameterValue_ROCrate_decoder = decoder_1((category, value, unit) => ProcessParameterValue.createAsPV(category, value, unit));
|
|
18
|
+
|
|
19
|
+
export function ProcessParameterValue_ISAJson_encoder(oa) {
|
|
20
|
+
return new Json(5, [choose((tupledArg) => {
|
|
21
|
+
const v = tupledArg[1];
|
|
22
|
+
if (equals(v, new Json(3, []))) {
|
|
23
|
+
return void 0;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
return [tupledArg[0], v];
|
|
27
|
+
}
|
|
28
|
+
}, ofArray([tryInclude("category", ProtocolParameter_ISAJson_encoder, oa.Category), tryInclude("value", Value_ISAJson_encoder, oa.Value), tryInclude("unit", OntologyAnnotation_ISAJson_encoder, oa.Unit)]))]);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const ProcessParameterValue_ISAJson_decoder = object((get$) => {
|
|
32
|
+
let objectArg, objectArg_1, objectArg_2;
|
|
33
|
+
return new ProcessParameterValue((objectArg = get$.Optional, objectArg.Field("category", ProtocolParameter_ISAJson_decoder)), (objectArg_1 = get$.Optional, objectArg_1.Field("value", Value_ISAJson_decoder)), (objectArg_2 = get$.Optional, objectArg_2.Field("unit", OntologyAnnotation_ISAJson_decoder)));
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function ARCtrl_Process_ProcessParameterValue__ProcessParameterValue_fromISAJsonString_Static_Z721C83C5(s) {
|
|
37
|
+
const matchValue = fromString(ProcessParameterValue_ISAJson_decoder, s);
|
|
38
|
+
if (matchValue.tag === 1) {
|
|
39
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
return matchValue.fields[0];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ARCtrl_Process_ProcessParameterValue__ProcessParameterValue_toISAJsonString_Static_71136F3F(spaces) {
|
|
47
|
+
return (f) => {
|
|
48
|
+
const value = ProcessParameterValue_ISAJson_encoder(f);
|
|
49
|
+
return toString(defaultSpaces(spaces), value);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ARCtrl_Process_ProcessParameterValue__ProcessParameterValue_fromROCrateJsonString_Static_Z721C83C5(s) {
|
|
54
|
+
const matchValue = fromString(ProcessParameterValue_ROCrate_decoder, s);
|
|
55
|
+
if (matchValue.tag === 1) {
|
|
56
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
return matchValue.fields[0];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ARCtrl_Process_ProcessParameterValue__ProcessParameterValue_toROCrateJsonString_Static_71136F3F(spaces) {
|
|
64
|
+
return (f) => {
|
|
65
|
+
const value = ProcessParameterValue_ROCrate_encoder(f);
|
|
66
|
+
return toString(defaultSpaces(spaces), value);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { class_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
2
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
3
|
+
import { list as list_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
4
|
+
import { Process_ROCrate_encoder, Process_ROCrate_decoder, Process_ISAJson_encoder, Process_ISAJson_decoder } from "./Process.js";
|
|
5
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
6
|
+
import { list as list_2 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
7
|
+
import { map } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
8
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
9
|
+
import { defaultSpaces } from "../Encode.js";
|
|
10
|
+
|
|
11
|
+
export class ProcessSequence {
|
|
12
|
+
constructor() {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function ProcessSequence_$reflection() {
|
|
17
|
+
return class_type("ARCtrl.Json.ProcessSequence", void 0, ProcessSequence);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function ProcessSequence_fromISAJsonString_Z721C83C5(s) {
|
|
21
|
+
const matchValue = fromString(list_1(Process_ISAJson_decoder), s);
|
|
22
|
+
if (matchValue.tag === 1) {
|
|
23
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
return matchValue.fields[0];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function ProcessSequence_toISAJsonString_71136F3F(spaces) {
|
|
31
|
+
return (f) => {
|
|
32
|
+
const value = list_2(map(Process_ISAJson_encoder, f));
|
|
33
|
+
return toString(defaultSpaces(spaces), value);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ProcessSequence_fromROCrateJsonString_Z721C83C5(s) {
|
|
38
|
+
const matchValue = fromString(list_1(Process_ROCrate_decoder), s);
|
|
39
|
+
if (matchValue.tag === 1) {
|
|
40
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return matchValue.fields[0];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ProcessSequence_toROCrateJsonString_39E0BC3F(studyName, assayName, spaces) {
|
|
48
|
+
return (f) => {
|
|
49
|
+
const value = list_2(map((oa) => Process_ROCrate_encoder(studyName, assayName, oa), f));
|
|
50
|
+
return toString(defaultSpaces(spaces), value);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|