@nfdi4plants/arctrl 1.0.7 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARC.js +47 -11
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcTypes.js +30 -18
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +8 -8
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +23 -31
- package/ISA/ISA/ArcTypes/ArcTableAux.js +27 -16
- package/ISA/ISA/ArcTypes/ArcTables.js +11 -11
- package/ISA/ISA/ArcTypes/ArcTypes.js +118 -83
- package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +8 -7
- package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
- package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
- package/ISA/ISA/Builder/Types.js +5 -5
- package/ISA/ISA/Fable.js +6 -6
- package/ISA/ISA/Helper.js +15 -13
- package/ISA/ISA/Identifier.js +1 -1
- package/ISA/ISA/JsonTypes/Assay.js +8 -8
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +5 -5
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +4 -4
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +6 -6
- package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
- package/ISA/ISA/JsonTypes/Investigation.js +6 -6
- package/ISA/ISA/JsonTypes/Material.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +3 -3
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +6 -6
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +6 -6
- package/ISA/ISA/JsonTypes/Person.js +23 -8
- package/ISA/ISA/JsonTypes/Process.js +13 -13
- package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessSequence.js +6 -6
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +3 -3
- package/ISA/ISA/JsonTypes/Publication.js +6 -6
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +8 -8
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +22 -29
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +157 -65
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +78 -49
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +136 -24
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +183 -21
- package/ISA/ISA.Json/ArcTypes/CellTable.js +40 -0
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +34 -23
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +18 -46
- package/ISA/ISA.Json/ArcTypes/IOType.js +11 -13
- package/ISA/ISA.Json/ArcTypes/OATable.js +42 -0
- package/ISA/ISA.Json/Assay.js +71 -47
- package/ISA/ISA.Json/Comment.js +31 -35
- package/ISA/ISA.Json/ConverterOptions.js +19 -1
- package/ISA/ISA.Json/Data.js +119 -137
- package/ISA/ISA.Json/Decode.js +51 -36
- package/ISA/ISA.Json/Factor.js +90 -90
- package/ISA/ISA.Json/GEncode.js +31 -6
- package/ISA/ISA.Json/Investigation.js +54 -79
- package/ISA/ISA.Json/Material.js +103 -104
- package/ISA/ISA.Json/Ontology.js +99 -92
- package/ISA/ISA.Json/Person.js +47 -65
- package/ISA/ISA.Json/Process.js +144 -130
- package/ISA/ISA.Json/Protocol.js +144 -105
- package/ISA/ISA.Json/Publication.js +34 -40
- package/ISA/ISA.Json/StringTable.js +44 -0
- package/ISA/ISA.Json/Study.js +70 -96
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +34 -0
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +24 -0
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_investigation_context.js +33 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +22 -0
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +30 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +27 -0
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +42 -0
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +25 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +56 -43
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +3 -3
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +11 -11
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +5 -5
- package/ISA/ISA.Spreadsheet/ArcAssay.js +100 -88
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +12 -12
- package/ISA/ISA.Spreadsheet/ArcStudy.js +36 -24
- package/ISA/ISA.Spreadsheet/CollectionAux.js +8 -8
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +31 -20
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +28 -23
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +8 -8
- package/README.md +20 -3
- package/SemVer.js +6 -6
- package/Templates/Template.Json.js +43 -36
- package/Templates/Template.Spreadsheet.js +12 -12
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +7 -7
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs.js +14 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs +22 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs.js +24 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs +12 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs.js +21 -17
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.js +124 -86
- package/fable_modules/fable-library-js.4.13.0/CHANGELOG.md +29 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.js +0 -43
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.js +3 -2
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.13.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.13.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.js +60 -8
- package/fable_modules/fable-library-js.4.13.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/ISA/ISA.Json/Validation/Fable.js +0 -69
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
- package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
- package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
- package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.js +0 -0
package/ISA/ISA.Json/Person.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { tryPick } from "../../fable_modules/fable-library.4.
|
|
2
|
-
import { replace } from "../../fable_modules/fable-library.4.
|
|
1
|
+
import { tryPick } from "../../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
2
|
+
import { printf, toText, replace } from "../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
3
3
|
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
4
|
+
import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID, ConverterOptions__get_IncludeContext, ConverterOptions__get_IsRoCrate } from "./ConverterOptions.js";
|
|
5
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
6
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
7
|
+
import { context_jsonvalue } from "./context/rocrate/isa_organization_context.js";
|
|
4
8
|
import { Person } from "../ISA/JsonTypes/Person.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.5.0/Seq.js";
|
|
9
|
-
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
10
|
-
import { tryInclude } from "./GEncode.js";
|
|
9
|
+
import { ofArray, choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
10
|
+
import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
11
|
+
import { tryIncludeArray, tryInclude } from "./GEncode.js";
|
|
11
12
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
|
|
12
|
-
import { decoder as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { decoder as decoder_2, encoder as encoder_1 } from "./Comment.js";
|
|
14
|
+
import { context_jsonvalue as context_jsonvalue_1 } from "./context/rocrate/isa_person_context.js";
|
|
15
|
+
import { uri, object } from "./Decode.js";
|
|
16
|
+
import { array as array_1, string } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
17
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
18
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
15
19
|
|
|
16
20
|
export function genID(p) {
|
|
17
21
|
const matchValue = p.ID;
|
|
@@ -114,66 +118,33 @@ export function genID(p) {
|
|
|
114
118
|
}
|
|
115
119
|
}
|
|
116
120
|
|
|
121
|
+
export function affiliationEncoder(options, affiliation) {
|
|
122
|
+
if (ConverterOptions__get_IsRoCrate(options)) {
|
|
123
|
+
return new Json(5, [toList(delay(() => append(singleton(["@type", new Json(0, ["Organization"])]), delay(() => append(singleton(["@id", new Json(0, [`Organization/${affiliation}`])]), delay(() => append(singleton(["name", new Json(0, [affiliation])]), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty())))))))))]);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
return new Json(0, [affiliation]);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
117
130
|
export function encoder(options, oa) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
oa_1 = Person.setCommentFromORCID(person);
|
|
121
|
-
return object_22(choose((tupledArg) => {
|
|
131
|
+
const oa_1 = Person.setCommentFromORCID(oa);
|
|
132
|
+
return new Json(5, [choose((tupledArg) => {
|
|
122
133
|
const v = tupledArg[1];
|
|
123
|
-
if (equals(v,
|
|
134
|
+
if (equals(v, new Json(3, []))) {
|
|
124
135
|
return void 0;
|
|
125
136
|
}
|
|
126
137
|
else {
|
|
127
138
|
return [tupledArg[0], v];
|
|
128
139
|
}
|
|
129
|
-
}, toList(delay(() =>
|
|
130
|
-
let value, s;
|
|
131
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = genID(oa_1), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
132
|
-
let s_1;
|
|
133
|
-
const value_3 = value_2;
|
|
134
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
135
|
-
}, oa_1["ID"])), delay(() => {
|
|
136
|
-
let value_5, s_2;
|
|
137
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Person", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("firstName", (value_7) => {
|
|
138
|
-
let s_3;
|
|
139
|
-
const value_8 = value_7;
|
|
140
|
-
return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
|
|
141
|
-
}, oa_1["FirstName"])), delay(() => append(singleton(tryInclude("lastName", (value_10) => {
|
|
142
|
-
let s_4;
|
|
143
|
-
const value_11 = value_10;
|
|
144
|
-
return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
|
|
145
|
-
}, oa_1["LastName"])), delay(() => append(singleton(tryInclude("midInitials", (value_13) => {
|
|
146
|
-
let s_5;
|
|
147
|
-
const value_14 = value_13;
|
|
148
|
-
return (typeof value_14 === "string") ? ((s_5 = value_14, s_5)) : nil;
|
|
149
|
-
}, oa_1["MidInitials"])), delay(() => append(singleton(tryInclude("email", (value_16) => {
|
|
150
|
-
let s_6;
|
|
151
|
-
const value_17 = value_16;
|
|
152
|
-
return (typeof value_17 === "string") ? ((s_6 = value_17, s_6)) : nil;
|
|
153
|
-
}, oa_1["EMail"])), delay(() => append(singleton(tryInclude("phone", (value_19) => {
|
|
154
|
-
let s_7;
|
|
155
|
-
const value_20 = value_19;
|
|
156
|
-
return (typeof value_20 === "string") ? ((s_7 = value_20, s_7)) : nil;
|
|
157
|
-
}, oa_1["Phone"])), delay(() => append(singleton(tryInclude("fax", (value_22) => {
|
|
158
|
-
let s_8;
|
|
159
|
-
const value_23 = value_22;
|
|
160
|
-
return (typeof value_23 === "string") ? ((s_8 = value_23, s_8)) : nil;
|
|
161
|
-
}, oa_1["Fax"])), delay(() => append(singleton(tryInclude("address", (value_25) => {
|
|
162
|
-
let s_9;
|
|
163
|
-
const value_26 = value_25;
|
|
164
|
-
return (typeof value_26 === "string") ? ((s_9 = value_26, s_9)) : nil;
|
|
165
|
-
}, oa_1["Address"])), delay(() => append(singleton(tryInclude("affiliation", (value_28) => {
|
|
166
|
-
let s_10;
|
|
167
|
-
const value_29 = value_28;
|
|
168
|
-
return (typeof value_29 === "string") ? ((s_10 = value_29, s_10)) : nil;
|
|
169
|
-
}, oa_1["Affiliation"])), delay(() => append(singleton(tryInclude("roles", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa_1["Roles"])), delay(() => singleton(tryInclude("comments", (comment) => encoder_1(options, comment), oa_1["Comments"]))))))))))))))))))))));
|
|
170
|
-
}));
|
|
171
|
-
}))));
|
|
140
|
+
}, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [genID(oa_1)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa_1.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", new Json(0, ["Person"])]) : empty(), delay(() => append(singleton(tryInclude("firstName", (value_4) => (new Json(0, [value_4])), oa_1.FirstName)), delay(() => append(singleton(tryInclude("lastName", (value_6) => (new Json(0, [value_6])), oa_1.LastName)), delay(() => append(singleton(tryInclude("midInitials", (value_8) => (new Json(0, [value_8])), oa_1.MidInitials)), delay(() => append(singleton(tryInclude("email", (value_10) => (new Json(0, [value_10])), oa_1.EMail)), delay(() => append(singleton(tryInclude("phone", (value_12) => (new Json(0, [value_12])), oa_1.Phone)), delay(() => append(singleton(tryInclude("fax", (value_14) => (new Json(0, [value_14])), oa_1.Fax)), delay(() => append(singleton(tryInclude("address", (value_16) => (new Json(0, [value_16])), oa_1.Address)), delay(() => append(singleton(tryInclude("affiliation", (affiliation) => affiliationEncoder(options, affiliation), oa_1.Affiliation)), delay(() => append(singleton(tryIncludeArray("roles", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa_1.Roles)), delay(() => append(singleton(tryIncludeArray("comments", (comment) => encoder_1(options, comment), oa_1.Comments)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue_1]) : empty()))))))))))))))))))))))))))))]);
|
|
172
141
|
}
|
|
173
142
|
|
|
143
|
+
export const allowedFields = ofArray(["@id", "firstName", "lastName", "midInitials", "email", "phone", "fax", "address", "affiliation", "roles", "comments", "@type", "@context"]);
|
|
144
|
+
|
|
174
145
|
export function decoder(options) {
|
|
175
|
-
return (
|
|
176
|
-
let objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, objectArg_7, objectArg_8, arg_19,
|
|
146
|
+
return object(allowedFields, (get$) => {
|
|
147
|
+
let objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, objectArg_7, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
177
148
|
let person;
|
|
178
149
|
let ID;
|
|
179
150
|
const objectArg = get$.Optional;
|
|
@@ -181,13 +152,19 @@ export function decoder(options) {
|
|
|
181
152
|
let FirstName;
|
|
182
153
|
const objectArg_1 = get$.Optional;
|
|
183
154
|
FirstName = objectArg_1.Field("firstName", string);
|
|
184
|
-
person = (new Person(ID, void 0, (objectArg_2 = get$.Optional, objectArg_2.Field("lastName", string)), FirstName, (objectArg_3 = get$.Optional, objectArg_3.Field("midInitials", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("email", string)), (objectArg_5 = get$.Optional, objectArg_5.Field("phone", string)), (objectArg_6 = get$.Optional, objectArg_6.Field("fax", string)), (objectArg_7 = get$.Optional, objectArg_7.Field("address", string)), (objectArg_8 = get$.Optional, objectArg_8.Field("affiliation", string)), (arg_19 = (
|
|
155
|
+
person = (new Person(ID, void 0, (objectArg_2 = get$.Optional, objectArg_2.Field("lastName", string)), FirstName, (objectArg_3 = get$.Optional, objectArg_3.Field("midInitials", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("email", string)), (objectArg_5 = get$.Optional, objectArg_5.Field("phone", string)), (objectArg_6 = get$.Optional, objectArg_6.Field("fax", string)), (objectArg_7 = get$.Optional, objectArg_7.Field("address", string)), (objectArg_8 = get$.Optional, objectArg_8.Field("affiliation", string)), (arg_19 = array_1(OntologyAnnotation_decoder(options)), (objectArg_9 = get$.Optional, objectArg_9.Field("roles", arg_19))), (arg_21 = array_1(decoder_2(options)), (objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21)))));
|
|
185
156
|
return Person.setOrcidFromComments(person);
|
|
186
|
-
}
|
|
157
|
+
});
|
|
187
158
|
}
|
|
188
159
|
|
|
189
160
|
export function fromJsonString(s) {
|
|
190
|
-
|
|
161
|
+
const matchValue = fromString(decoder(ConverterOptions_$ctor()), s);
|
|
162
|
+
if (matchValue.tag === 1) {
|
|
163
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
return matchValue.fields[0];
|
|
167
|
+
}
|
|
191
168
|
}
|
|
192
169
|
|
|
193
170
|
export function toJsonString(p) {
|
|
@@ -197,8 +174,13 @@ export function toJsonString(p) {
|
|
|
197
174
|
/**
|
|
198
175
|
* exports in json-ld format
|
|
199
176
|
*/
|
|
200
|
-
export function
|
|
177
|
+
export function toJsonldString(p) {
|
|
201
178
|
let returnVal;
|
|
202
179
|
return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), p));
|
|
203
180
|
}
|
|
204
181
|
|
|
182
|
+
export function toJsonldStringWithContext(a) {
|
|
183
|
+
let returnVal;
|
|
184
|
+
return toString(2, encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
|
|
185
|
+
}
|
|
186
|
+
|
package/ISA/ISA.Json/Process.js
CHANGED
|
@@ -1,25 +1,30 @@
|
|
|
1
|
-
import { replace } from "../../fable_modules/fable-library.4.
|
|
1
|
+
import { printf, toText, replace } from "../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
2
2
|
import { ProtocolParameter } from "../ISA/JsonTypes/ProtocolParameter.js";
|
|
3
3
|
import { Value } from "../ISA/JsonTypes/Value.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.
|
|
8
|
-
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
9
|
-
import {
|
|
4
|
+
import { map, ofArray, choose } from "../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
5
|
+
import { equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
6
|
+
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
7
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
8
|
+
import { ConverterOptions__set_IncludeContext_Z1FBCCD16, ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeContext, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
9
|
+
import { list as list_1 } from "../../fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js";
|
|
10
|
+
import { tryIncludeList, tryInclude } from "./GEncode.js";
|
|
10
11
|
import { Protocol_decoder, Protocol_encoder, ProtocolParameter_decoder, ProtocolParameter_encoder } from "./Protocol.js";
|
|
11
12
|
import { Value_decoder, Value_encoder } from "./Factor.js";
|
|
12
13
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
|
|
13
|
-
import {
|
|
14
|
+
import { context_jsonvalue } from "./context/rocrate/isa_process_parameter_value_context.js";
|
|
15
|
+
import { list as list_2, string, object } from "../../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
14
16
|
import { ProcessParameterValue } from "../ISA/JsonTypes/ProcessParameterValue.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
+
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
18
|
+
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
17
19
|
import { Data_decoder, Sample_decoder, Source_decoder, Source_encoder, Data_encoder, Sample_encoder } from "./Data.js";
|
|
18
20
|
import { Material_decoder, Material_encoder } from "./Material.js";
|
|
19
|
-
import { FSharpResult$2 } from "../../fable_modules/fable-library.4.
|
|
21
|
+
import { FSharpResult$2 } from "../../fable_modules/fable-library-js.4.13.0/Result.js";
|
|
22
|
+
import { ProcessInput } from "../ISA/JsonTypes/ProcessInput.js";
|
|
20
23
|
import { ProcessOutput } from "../ISA/JsonTypes/ProcessOutput.js";
|
|
21
24
|
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
22
|
-
import { decoder as
|
|
25
|
+
import { decoder as decoder_1, encoder } from "./Comment.js";
|
|
26
|
+
import { context_jsonvalue as context_jsonvalue_1 } from "./context/rocrate/isa_process_context.js";
|
|
27
|
+
import { uri } from "./Decode.js";
|
|
23
28
|
import { Process } from "../ISA/JsonTypes/Process.js";
|
|
24
29
|
|
|
25
30
|
export function ProcessParameterValue_genID(p) {
|
|
@@ -48,32 +53,32 @@ export function ProcessParameterValue_genID(p) {
|
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
export function ProcessParameterValue_encoder(options, oa) {
|
|
51
|
-
return
|
|
56
|
+
return new Json(5, [choose((tupledArg) => {
|
|
52
57
|
const v = tupledArg[1];
|
|
53
|
-
if (equals(v,
|
|
58
|
+
if (equals(v, new Json(3, []))) {
|
|
54
59
|
return void 0;
|
|
55
60
|
}
|
|
56
61
|
else {
|
|
57
62
|
return [tupledArg[0], v];
|
|
58
63
|
}
|
|
59
|
-
}, toList(delay(() =>
|
|
60
|
-
let value, s;
|
|
61
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = ProcessParameterValue_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : empty(), delay(() => {
|
|
62
|
-
let value_2, s_1;
|
|
63
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_2 = "ProcessParameterValue", (typeof value_2 === "string") ? ((s_1 = value_2, s_1)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("category", (oa_1) => ProtocolParameter_encoder(options, oa_1), oa["Category"])), delay(() => append(singleton(tryInclude("value", (value_4) => Value_encoder(options, value_4), oa["Value"])), delay(() => singleton(tryInclude("unit", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa["Unit"]))))))));
|
|
64
|
-
}));
|
|
65
|
-
}))));
|
|
64
|
+
}, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [ProcessParameterValue_genID(oa)])]) : empty(), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_1(ofArray([new Json(0, ["ProcessParameterValue"]), new Json(0, ["ArcProcessParameterValue"])]))]) : empty(), delay(() => append(singleton(tryInclude("category", (oa_1) => ProtocolParameter_encoder(options, oa_1), oa.Category)), delay(() => append(singleton(tryInclude("value", (value_3) => Value_encoder(options, value_3), oa.Value)), delay(() => append(singleton(tryInclude("unit", (oa_2) => OntologyAnnotation_encoder(options, oa_2), oa.Unit)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue]) : empty()))))))))))))))]);
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
export function ProcessParameterValue_decoder(options) {
|
|
69
|
-
return (
|
|
70
|
-
let arg_1, objectArg, objectArg_1, arg_5, objectArg_2;
|
|
71
|
-
return new ProcessParameterValue((arg_1 = ProtocolParameter_decoder(options), (objectArg = get$.Optional, objectArg.Field("category",
|
|
72
|
-
}
|
|
68
|
+
return object((get$) => {
|
|
69
|
+
let arg_1, objectArg, arg_3, objectArg_1, arg_5, objectArg_2;
|
|
70
|
+
return new ProcessParameterValue((arg_1 = ProtocolParameter_decoder(options), (objectArg = get$.Optional, objectArg.Field("category", arg_1))), (arg_3 = Value_decoder(options), (objectArg_1 = get$.Optional, objectArg_1.Field("value", arg_3))), (arg_5 = OntologyAnnotation_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("unit", arg_5))));
|
|
71
|
+
});
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
export function ProcessParameterValue_fromJsonString(s) {
|
|
76
|
-
|
|
75
|
+
const matchValue = fromString(ProcessParameterValue_decoder(ConverterOptions_$ctor()), 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
|
+
}
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
export function ProcessParameterValue_toJsonString(p) {
|
|
@@ -83,121 +88,131 @@ export function ProcessParameterValue_toJsonString(p) {
|
|
|
83
88
|
/**
|
|
84
89
|
* exports in json-ld format
|
|
85
90
|
*/
|
|
86
|
-
export function
|
|
91
|
+
export function ProcessParameterValue_toJsonldString(p) {
|
|
87
92
|
let returnVal;
|
|
88
93
|
return toString(2, ProcessParameterValue_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), p));
|
|
89
94
|
}
|
|
90
95
|
|
|
96
|
+
export function ProcessParameterValue_toJsonldStringWithContext(a) {
|
|
97
|
+
let returnVal;
|
|
98
|
+
return toString(2, ProcessParameterValue_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
|
|
99
|
+
}
|
|
100
|
+
|
|
91
101
|
export function ProcessInput_encoder(options, value) {
|
|
92
|
-
|
|
93
|
-
|
|
102
|
+
switch (value.tag) {
|
|
103
|
+
case 1:
|
|
94
104
|
return Sample_encoder(options, value.fields[0]);
|
|
95
|
-
|
|
96
|
-
else if (value.tag === 2) {
|
|
105
|
+
case 2:
|
|
97
106
|
return Data_encoder(options, value.fields[0]);
|
|
98
|
-
|
|
99
|
-
else if (value.tag === 3) {
|
|
107
|
+
case 3:
|
|
100
108
|
return Material_encoder(options, value.fields[0]);
|
|
101
|
-
|
|
102
|
-
else {
|
|
109
|
+
default:
|
|
103
110
|
return Source_encoder(options, value.fields[0]);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
return nil;
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
export function ProcessInput_decoder(options
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
export function ProcessInput_decoder(options) {
|
|
115
|
+
return {
|
|
116
|
+
Decode(s, json) {
|
|
117
|
+
const matchValue = Source_decoder(options).Decode(s, json);
|
|
118
|
+
if (matchValue.tag === 1) {
|
|
119
|
+
const matchValue_1 = Sample_decoder(options).Decode(s, json);
|
|
120
|
+
if (matchValue_1.tag === 1) {
|
|
121
|
+
const matchValue_2 = Data_decoder(options).Decode(s, json);
|
|
122
|
+
if (matchValue_2.tag === 1) {
|
|
123
|
+
const matchValue_3 = Material_decoder(options).Decode(s, json);
|
|
124
|
+
return (matchValue_3.tag === 1) ? (new FSharpResult$2(1, [matchValue_3.fields[0]])) : (new FSharpResult$2(0, [new ProcessInput(3, [matchValue_3.fields[0]])]));
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
return new FSharpResult$2(0, [new ProcessInput(2, [matchValue_2.fields[0]])]);
|
|
128
|
+
}
|
|
121
129
|
}
|
|
122
130
|
else {
|
|
123
|
-
return new FSharpResult$2(0, [new ProcessInput(
|
|
131
|
+
return new FSharpResult$2(0, [new ProcessInput(1, [matchValue_1.fields[0]])]);
|
|
124
132
|
}
|
|
125
133
|
}
|
|
126
134
|
else {
|
|
127
|
-
return new FSharpResult$2(0, [new ProcessInput(
|
|
135
|
+
return new FSharpResult$2(0, [new ProcessInput(0, [matchValue.fields[0]])]);
|
|
128
136
|
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return new FSharpResult$2(0, [new ProcessInput(1, [matchValue_1.fields[0]])]);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
return new FSharpResult$2(0, [new ProcessInput(0, [matchValue.fields[0]])]);
|
|
136
|
-
}
|
|
137
|
+
},
|
|
138
|
+
};
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
export function ProcessInput_fromJsonString(s) {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
const matchValue = fromString(ProcessInput_decoder(ConverterOptions_$ctor()), s);
|
|
143
|
+
if (matchValue.tag === 1) {
|
|
144
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
return matchValue.fields[0];
|
|
148
|
+
}
|
|
142
149
|
}
|
|
143
150
|
|
|
144
151
|
export function ProcessInput_toJsonString(m) {
|
|
145
152
|
return toString(2, ProcessInput_encoder(ConverterOptions_$ctor(), m));
|
|
146
153
|
}
|
|
147
154
|
|
|
148
|
-
export function
|
|
155
|
+
export function ProcessInput_toJsonldString(m) {
|
|
149
156
|
let returnVal;
|
|
150
157
|
return toString(2, ProcessInput_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), m));
|
|
151
158
|
}
|
|
152
159
|
|
|
160
|
+
export function ProcessInput_toJsonldStringWithContext(a) {
|
|
161
|
+
let returnVal;
|
|
162
|
+
return toString(2, ProcessInput_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
|
|
163
|
+
}
|
|
164
|
+
|
|
153
165
|
export function ProcessOutput_encoder(options, value) {
|
|
154
|
-
|
|
155
|
-
|
|
166
|
+
switch (value.tag) {
|
|
167
|
+
case 1:
|
|
156
168
|
return Data_encoder(options, value.fields[0]);
|
|
157
|
-
|
|
158
|
-
else if (value.tag === 2) {
|
|
169
|
+
case 2:
|
|
159
170
|
return Material_encoder(options, value.fields[0]);
|
|
160
|
-
|
|
161
|
-
else {
|
|
171
|
+
default:
|
|
162
172
|
return Sample_encoder(options, value.fields[0]);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return nil;
|
|
167
173
|
}
|
|
168
174
|
}
|
|
169
175
|
|
|
170
|
-
export function ProcessOutput_decoder(options
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
export function ProcessOutput_decoder(options) {
|
|
177
|
+
return {
|
|
178
|
+
Decode(s, json) {
|
|
179
|
+
const matchValue = Sample_decoder(options).Decode(s, json);
|
|
180
|
+
if (matchValue.tag === 1) {
|
|
181
|
+
const matchValue_1 = Data_decoder(options).Decode(s, json);
|
|
182
|
+
if (matchValue_1.tag === 1) {
|
|
183
|
+
const matchValue_2 = Material_decoder(options).Decode(s, json);
|
|
184
|
+
return (matchValue_2.tag === 1) ? (new FSharpResult$2(1, [matchValue_2.fields[0]])) : (new FSharpResult$2(0, [new ProcessOutput(2, [matchValue_2.fields[0]])]));
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
return new FSharpResult$2(0, [new ProcessOutput(1, [matchValue_1.fields[0]])]);
|
|
188
|
+
}
|
|
178
189
|
}
|
|
179
190
|
else {
|
|
180
|
-
return new FSharpResult$2(0, [new ProcessOutput(
|
|
191
|
+
return new FSharpResult$2(0, [new ProcessOutput(0, [matchValue.fields[0]])]);
|
|
181
192
|
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
return new FSharpResult$2(0, [new ProcessOutput(1, [matchValue_1.fields[0]])]);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
return new FSharpResult$2(0, [new ProcessOutput(0, [matchValue.fields[0]])]);
|
|
189
|
-
}
|
|
193
|
+
},
|
|
194
|
+
};
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
export function ProcessOutput_fromJsonString(s) {
|
|
193
|
-
|
|
194
|
-
|
|
198
|
+
const matchValue = fromString(ProcessOutput_decoder(ConverterOptions_$ctor()), s);
|
|
199
|
+
if (matchValue.tag === 1) {
|
|
200
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
return matchValue.fields[0];
|
|
204
|
+
}
|
|
195
205
|
}
|
|
196
206
|
|
|
197
207
|
export function ProcessOutput_toJsonString(m) {
|
|
198
208
|
return toString(2, ProcessOutput_encoder(ConverterOptions_$ctor(), m));
|
|
199
209
|
}
|
|
200
210
|
|
|
211
|
+
export function ProcessOutput_toJsonldStringWithContext(a) {
|
|
212
|
+
let returnVal;
|
|
213
|
+
return toString(2, ProcessOutput_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), a));
|
|
214
|
+
}
|
|
215
|
+
|
|
201
216
|
export function Process_genID(p) {
|
|
202
217
|
const matchValue = p.ID;
|
|
203
218
|
if (matchValue == null) {
|
|
@@ -214,78 +229,77 @@ export function Process_genID(p) {
|
|
|
214
229
|
}
|
|
215
230
|
}
|
|
216
231
|
|
|
217
|
-
export function Process_encoder(options, oa) {
|
|
218
|
-
return
|
|
232
|
+
export function Process_encoder(options, studyName, assayName, oa) {
|
|
233
|
+
return new Json(5, [choose((tupledArg) => {
|
|
219
234
|
const v = tupledArg[1];
|
|
220
|
-
if (equals(v,
|
|
235
|
+
if (equals(v, new Json(3, []))) {
|
|
221
236
|
return void 0;
|
|
222
237
|
}
|
|
223
238
|
else {
|
|
224
239
|
return [tupledArg[0], v];
|
|
225
240
|
}
|
|
226
|
-
}, toList(delay(() =>
|
|
227
|
-
let value, s;
|
|
228
|
-
return append(ConverterOptions__get_SetID(options) ? singleton(["@id", (value = Process_genID(oa), (typeof value === "string") ? ((s = value, s)) : nil)]) : singleton(tryInclude("@id", (value_2) => {
|
|
229
|
-
let s_1;
|
|
230
|
-
const value_3 = value_2;
|
|
231
|
-
return (typeof value_3 === "string") ? ((s_1 = value_3, s_1)) : nil;
|
|
232
|
-
}, oa["ID"])), delay(() => {
|
|
233
|
-
let value_5, s_2;
|
|
234
|
-
return append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", (value_5 = "Process", (typeof value_5 === "string") ? ((s_2 = value_5, s_2)) : nil)]) : empty(), delay(() => append(singleton(tryInclude("name", (value_7) => {
|
|
235
|
-
let s_3;
|
|
236
|
-
const value_8 = value_7;
|
|
237
|
-
return (typeof value_8 === "string") ? ((s_3 = value_8, s_3)) : nil;
|
|
238
|
-
}, oa["Name"])), delay(() => append(singleton(tryInclude("executesProtocol", (oa_1) => Protocol_encoder(options, oa_1), oa["ExecutesProtocol"])), delay(() => append(singleton(tryInclude("parameterValues", (oa_2) => ProcessParameterValue_encoder(options, oa_2), oa["ParameterValues"])), delay(() => append(singleton(tryInclude("performer", (value_10) => {
|
|
239
|
-
let s_4;
|
|
240
|
-
const value_11 = value_10;
|
|
241
|
-
return (typeof value_11 === "string") ? ((s_4 = value_11, s_4)) : nil;
|
|
242
|
-
}, oa["Performer"])), delay(() => append(singleton(tryInclude("date", (value_13) => {
|
|
243
|
-
let s_5;
|
|
244
|
-
const value_14 = value_13;
|
|
245
|
-
return (typeof value_14 === "string") ? ((s_5 = value_14, s_5)) : nil;
|
|
246
|
-
}, oa["Date"])), delay(() => append(singleton(tryInclude("previousProcess", (oa_3) => Process_encoder(options, oa_3), oa["PreviousProcess"])), delay(() => append(singleton(tryInclude("nextProcess", (oa_4) => Process_encoder(options, oa_4), oa["NextProcess"])), delay(() => append(singleton(tryInclude("inputs", (value_16) => ProcessInput_encoder(options, value_16), oa["Inputs"])), delay(() => append(singleton(tryInclude("outputs", (value_17) => ProcessOutput_encoder(options, value_17), oa["Outputs"])), delay(() => singleton(tryInclude("comments", (comment) => encoder(options, comment), oa["Comments"]))))))))))))))))))))));
|
|
247
|
-
}));
|
|
248
|
-
}))));
|
|
241
|
+
}, toList(delay(() => append(ConverterOptions__get_SetID(options) ? singleton(["@id", new Json(0, [Process_genID(oa)])]) : singleton(tryInclude("@id", (value_1) => (new Json(0, [value_1])), oa.ID)), delay(() => append(ConverterOptions__get_IncludeType(options) ? singleton(["@type", list_1(ofArray([new Json(0, ["Process"]), new Json(0, ["ArcProcess"])]))]) : empty(), delay(() => append(singleton(tryInclude("name", (value_5) => (new Json(0, [value_5])), oa.Name)), delay(() => append(singleton(tryInclude("executesProtocol", (oa_1) => Protocol_encoder(options, studyName, assayName, oa.Name, oa_1), oa.ExecutesProtocol)), delay(() => append(singleton(tryIncludeList("parameterValues", (oa_2) => ProcessParameterValue_encoder(options, oa_2), oa.ParameterValues)), delay(() => append(singleton(tryInclude("performer", (value_7) => (new Json(0, [value_7])), oa.Performer)), delay(() => append(singleton(tryInclude("date", (value_9) => (new Json(0, [value_9])), oa.Date)), delay(() => append(singleton(tryInclude("previousProcess", (oa_3) => Process_encoder(options, studyName, assayName, oa_3), oa.PreviousProcess)), delay(() => append(singleton(tryInclude("nextProcess", (oa_4) => Process_encoder(options, studyName, assayName, oa_4), oa.NextProcess)), delay(() => append(singleton(tryIncludeList("inputs", (value_11) => ProcessInput_encoder(options, value_11), oa.Inputs)), delay(() => append(singleton(tryIncludeList("outputs", (value_12) => ProcessOutput_encoder(options, value_12), oa.Outputs)), delay(() => append(singleton(tryIncludeList("comments", (comment) => encoder(options, comment), oa.Comments)), delay(() => (ConverterOptions__get_IncludeContext(options) ? singleton(["@context", context_jsonvalue_1]) : empty()))))))))))))))))))))))))))))]);
|
|
249
242
|
}
|
|
250
243
|
|
|
251
244
|
export function Process_decoder(options) {
|
|
252
|
-
return (
|
|
253
|
-
let objectArg, objectArg_1, arg_5, objectArg_2, arg_7,
|
|
254
|
-
return new Process((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = Protocol_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("executesProtocol",
|
|
255
|
-
}
|
|
245
|
+
return object((get$) => {
|
|
246
|
+
let objectArg, objectArg_1, arg_5, 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;
|
|
247
|
+
return new Process((objectArg = get$.Optional, objectArg.Field("@id", uri)), (objectArg_1 = get$.Optional, objectArg_1.Field("name", string)), (arg_5 = Protocol_decoder(options), (objectArg_2 = get$.Optional, objectArg_2.Field("executesProtocol", arg_5))), (arg_7 = list_2(ProcessParameterValue_decoder(options)), (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 = Process_decoder(options), (objectArg_6 = get$.Optional, objectArg_6.Field("previousProcess", arg_13))), (arg_15 = Process_decoder(options), (objectArg_7 = get$.Optional, objectArg_7.Field("nextProcess", arg_15))), (arg_17 = list_2(ProcessInput_decoder(options)), (objectArg_8 = get$.Optional, objectArg_8.Field("inputs", arg_17))), (arg_19 = list_2(ProcessOutput_decoder(options)), (objectArg_9 = get$.Optional, objectArg_9.Field("outputs", arg_19))), (arg_21 = list_2(decoder_1(options)), (objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21))));
|
|
248
|
+
});
|
|
256
249
|
}
|
|
257
250
|
|
|
258
251
|
export function Process_fromJsonString(s) {
|
|
259
|
-
|
|
252
|
+
const matchValue = fromString(Process_decoder(ConverterOptions_$ctor()), s);
|
|
253
|
+
if (matchValue.tag === 1) {
|
|
254
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
return matchValue.fields[0];
|
|
258
|
+
}
|
|
260
259
|
}
|
|
261
260
|
|
|
262
261
|
export function Process_toJsonString(p) {
|
|
263
|
-
return toString(2, Process_encoder(ConverterOptions_$ctor(), p));
|
|
262
|
+
return toString(2, Process_encoder(ConverterOptions_$ctor(), void 0, void 0, p));
|
|
264
263
|
}
|
|
265
264
|
|
|
266
265
|
/**
|
|
267
266
|
* exports in json-ld format
|
|
268
267
|
*/
|
|
269
|
-
export function
|
|
268
|
+
export function Process_toJsonldString(p) {
|
|
270
269
|
let returnVal;
|
|
271
|
-
return toString(2, Process_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), p));
|
|
270
|
+
return toString(2, Process_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), void 0, void 0, p));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function Process_toJsonldStringWithContext(a) {
|
|
274
|
+
let returnVal;
|
|
275
|
+
return toString(2, Process_encoder((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal)), void 0, void 0, a));
|
|
272
276
|
}
|
|
273
277
|
|
|
274
278
|
export function ProcessSequence_fromJsonString(s) {
|
|
275
|
-
|
|
276
|
-
|
|
279
|
+
const matchValue = fromString(list_2(Process_decoder(ConverterOptions_$ctor())), s);
|
|
280
|
+
if (matchValue.tag === 1) {
|
|
281
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
return matchValue.fields[0];
|
|
285
|
+
}
|
|
277
286
|
}
|
|
278
287
|
|
|
279
288
|
export function ProcessSequence_toJsonString(p) {
|
|
280
289
|
let options;
|
|
281
|
-
return toString(2,
|
|
290
|
+
return toString(2, list_1(map((options = ConverterOptions_$ctor(), (oa) => Process_encoder(options, void 0, void 0, oa)), p)));
|
|
282
291
|
}
|
|
283
292
|
|
|
284
293
|
/**
|
|
285
294
|
* exports in json-ld format
|
|
286
295
|
*/
|
|
287
|
-
export function
|
|
296
|
+
export function ProcessSequence_toJsonldString(p) {
|
|
297
|
+
let options, returnVal;
|
|
298
|
+
return toString(2, list_1(map((options = ((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal))), (oa) => Process_encoder(options, void 0, void 0, oa)), p)));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function ProcessSequence_toJsonldStringWithContext(p) {
|
|
288
302
|
let options, returnVal;
|
|
289
|
-
return toString(2,
|
|
303
|
+
return toString(2, list_1(map((options = ((returnVal = ConverterOptions_$ctor(), (((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), ConverterOptions__set_IncludeContext_Z1FBCCD16(returnVal, true)), returnVal))), (oa) => Process_encoder(options, void 0, void 0, oa)), p)));
|
|
290
304
|
}
|
|
291
305
|
|