@nfdi4plants/arctrl 2.0.1 → 2.1.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 +43 -108
- package/Contract/ARC.js +1 -1
- package/Contract/ArcAssay.js +37 -14
- package/Contract/ArcInvestigation.js +4 -4
- package/Contract/ArcStudy.js +37 -14
- package/Contract/Contract.js +6 -6
- package/Contract/Datamap.js +5 -5
- package/Contract/Git.js +6 -6
- package/Contract/ValidationPackagesConfig.js +5 -5
- package/Core/ArcTypes.js +17 -17
- package/Core/Comment.js +16 -9
- package/Core/CommentList.js +6 -6
- package/Core/Conversion.js +64 -64
- package/Core/Data.js +11 -11
- package/Core/DataContext.js +4 -4
- package/Core/DataFile.js +2 -2
- package/Core/DataMap.js +4 -4
- package/Core/Helper/Collections.js +11 -11
- package/Core/Helper/HashCodes.js +5 -5
- package/Core/Helper/Identifier.js +9 -9
- package/Core/Helper/Regex.js +38 -38
- package/Core/Helper/SemVer.js +8 -8
- package/Core/OntologyAnnotation.js +11 -11
- package/Core/OntologySourceReference.js +4 -4
- package/Core/Person.js +11 -11
- package/Core/Process/ColumnIndex.js +7 -7
- package/Core/Process/Component.js +10 -10
- package/Core/Process/Factor.js +6 -6
- package/Core/Process/FactorValue.js +10 -10
- package/Core/Process/Material.js +5 -5
- package/Core/Process/MaterialAttribute.js +4 -4
- package/Core/Process/MaterialAttributeValue.js +10 -10
- package/Core/Process/MaterialType.js +2 -2
- package/Core/Process/Process.js +19 -19
- package/Core/Process/ProcessInput.js +16 -16
- package/Core/Process/ProcessOutput.js +16 -16
- package/Core/Process/ProcessParameterValue.js +10 -10
- package/Core/Process/ProcessSequence.js +6 -6
- package/Core/Process/Protocol.js +5 -5
- package/Core/Process/ProtocolParameter.js +4 -4
- package/Core/Process/Sample.js +5 -5
- package/Core/Process/Source.js +5 -5
- package/Core/Publication.js +10 -10
- package/Core/Table/ArcTable.js +35 -28
- package/Core/Table/ArcTableAux.js +22 -22
- package/Core/Table/ArcTables.js +14 -14
- package/Core/Table/CompositeCell.js +6 -6
- package/Core/Table/CompositeColumn.js +5 -5
- package/Core/Table/CompositeHeader.js +9 -9
- package/Core/Template.js +7 -7
- package/Core/Templates.js +8 -8
- package/Core/Value.js +11 -11
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +14 -14
- package/FileSystem/Path.js +3 -3
- package/Json/ARC.js +21 -15
- package/Json/Assay.js +108 -169
- package/Json/Comment.js +84 -122
- package/Json/ConverterOptions.js +2 -2
- package/Json/Data.js +100 -107
- package/Json/DataFile.js +22 -57
- package/Json/DataMap/DataContext.js +25 -16
- package/Json/DataMap/DataMap.js +11 -7
- package/Json/Decode.js +11 -14
- package/Json/Encode.js +24 -13
- package/Json/IDTable.js +14 -3
- package/Json/Investigation.js +194 -176
- package/Json/OntologyAnnotation.js +113 -127
- package/Json/OntologySourceReference.js +93 -111
- package/Json/Person.js +204 -135
- package/Json/Process/AssayMaterials.js +12 -14
- package/Json/Process/Component.js +23 -68
- package/Json/Process/Factor.js +28 -46
- package/Json/Process/FactorValue.js +28 -50
- package/Json/Process/Material.js +56 -83
- package/Json/Process/MaterialAttribute.js +23 -45
- package/Json/Process/MaterialAttributeValue.js +28 -71
- package/Json/Process/MaterialType.js +17 -35
- package/Json/Process/Process.js +70 -85
- package/Json/Process/ProcessInput.js +18 -45
- package/Json/Process/ProcessOutput.js +15 -63
- package/Json/Process/ProcessParameterValue.js +21 -70
- package/Json/Process/Protocol.js +80 -83
- package/Json/Process/ProtocolParameter.js +23 -44
- package/Json/Process/Sample.js +66 -93
- package/Json/Process/Source.js +54 -81
- package/Json/Process/StudyMaterials.js +13 -15
- package/Json/Process/Value.js +19 -29
- package/Json/PropertyValue.js +86 -28
- package/Json/Publication.js +92 -115
- package/Json/ROCrateObject.js +146 -0
- package/Json/StringTable.js +27 -10
- package/Json/Study.js +193 -182
- package/Json/Table/ArcTable.js +119 -115
- package/Json/Table/CellTable.js +24 -11
- package/Json/Table/CompositeCell.js +40 -41
- package/Json/Table/CompositeHeader.js +24 -36
- package/Json/Table/IOType.js +9 -31
- package/Json/Table/OATable.js +23 -10
- package/Json/Table/Templates.js +82 -90
- package/Json/context/rocrate/isa_assay_context.js +60 -4
- package/Json/context/rocrate/isa_comment_context.js +28 -4
- package/Json/context/rocrate/isa_component_context.js +44 -4
- package/Json/context/rocrate/isa_data_context.js +40 -4
- package/Json/context/rocrate/isa_factor_context.js +40 -4
- package/Json/context/rocrate/isa_factor_value_context.js +52 -4
- package/Json/context/rocrate/isa_investigation_context.js +68 -4
- package/Json/context/rocrate/isa_material_attribute_context.js +32 -4
- package/Json/context/rocrate/isa_material_attribute_value_context.js +48 -4
- package/Json/context/rocrate/isa_material_context.js +36 -4
- package/Json/context/rocrate/isa_ontology_annotation_context.js +36 -4
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +40 -4
- package/Json/context/rocrate/isa_organization_context.js +24 -4
- package/Json/context/rocrate/isa_person_context.js +85 -5
- package/Json/context/rocrate/isa_process_context.js +56 -4
- package/Json/context/rocrate/isa_process_parameter_value_context.js +48 -4
- package/Json/context/rocrate/isa_protocol_context.js +60 -4
- package/Json/context/rocrate/isa_protocol_parameter_context.js +32 -4
- package/Json/context/rocrate/isa_publication_context.js +44 -4
- package/Json/context/rocrate/isa_sample_context.js +32 -4
- package/Json/context/rocrate/isa_source_context.js +32 -4
- package/Json/context/rocrate/isa_study_context.js +72 -4
- package/Json/context/rocrate/property_value_context.js +58 -2
- package/Json/context/rocrate/rocrate_context.js +45 -5
- package/Json.js +12 -12
- package/JsonIO/ARC.js +31 -0
- package/JsonIO/Assay.js +99 -0
- package/JsonIO/Comment.js +73 -0
- package/JsonIO/Data.js +50 -0
- package/JsonIO/DataFile.js +49 -0
- package/JsonIO/DataMap/DataMap.js +29 -0
- package/JsonIO/Decode.js +4 -0
- package/JsonIO/Investigation.js +99 -0
- package/JsonIO/OntologyAnnotation.js +73 -0
- package/JsonIO/OntologySourceReference.js +73 -0
- package/JsonIO/Person.js +74 -0
- package/JsonIO/Process/Component.js +50 -0
- package/JsonIO/Process/Factor.js +28 -0
- package/JsonIO/Process/FactorValue.js +29 -0
- package/JsonIO/Process/Material.js +50 -0
- package/JsonIO/Process/MaterialAttribute.js +29 -0
- package/JsonIO/Process/MaterialAttributeValue.js +50 -0
- package/JsonIO/Process/MaterialType.js +28 -0
- package/JsonIO/Process/Process.js +50 -0
- package/JsonIO/Process/ProcessInput.js +29 -0
- package/JsonIO/Process/ProcessOutput.js +50 -0
- package/JsonIO/Process/ProcessParameterValue.js +50 -0
- package/{Json → JsonIO}/Process/ProcessSequence.js +16 -16
- package/JsonIO/Process/Protocol.js +50 -0
- package/JsonIO/Process/ProtocolParameter.js +28 -0
- package/JsonIO/Process/Sample.js +50 -0
- package/JsonIO/Process/Source.js +50 -0
- package/JsonIO/Process/StudyMaterials.js +22 -0
- package/JsonIO/Process/Value.js +23 -0
- package/JsonIO/Publication.js +74 -0
- package/JsonIO/ROCrateObject.js +146 -0
- package/JsonIO/Study.js +99 -0
- package/JsonIO/Table/ArcTable.js +82 -0
- package/JsonIO/Table/CompositeCell.js +28 -0
- package/JsonIO/Table/CompositeHeader.js +28 -0
- package/{Json → JsonIO}/Table/Compression.js +20 -10
- package/JsonIO/Table/IOType.js +28 -0
- package/JsonIO/Table/Templates.js +88 -0
- package/ROCrate/ISAProfile/Assay.js +32 -0
- package/ROCrate/ISAProfile/Data.js +28 -0
- package/ROCrate/ISAProfile/Dataset.js +18 -0
- package/ROCrate/ISAProfile/Investigation.js +35 -0
- package/ROCrate/ISAProfile/LabProcess.js +32 -0
- package/ROCrate/ISAProfile/LabProtocol.js +33 -0
- package/ROCrate/ISAProfile/Person.js +35 -0
- package/ROCrate/ISAProfile/PropertyValue.js +30 -0
- package/ROCrate/ISAProfile/Sample.js +27 -0
- package/ROCrate/ISAProfile/ScholarlyArticle.js +30 -0
- package/ROCrate/ISAProfile/Study.js +35 -0
- package/ROCrate/ROCrateObject.js +61 -0
- package/Spreadsheet/AnnotationTable/ArcTable.js +16 -16
- package/Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +7 -7
- package/Spreadsheet/AnnotationTable/CompositeHeader.js +25 -25
- package/Spreadsheet/ArcAssay.js +9 -9
- package/Spreadsheet/ArcInvestigation.js +14 -14
- package/Spreadsheet/ArcStudy.js +7 -7
- package/Spreadsheet/CollectionAux.js +11 -11
- package/Spreadsheet/DataMap.js +3 -3
- package/Spreadsheet/DataMapTable/DataMapColumn.js +6 -6
- package/Spreadsheet/DataMapTable/DataMapHeader.js +23 -23
- package/Spreadsheet/DataMapTable/DataMapTable.js +13 -13
- package/Spreadsheet/Metadata/Assays.js +11 -11
- package/Spreadsheet/Metadata/Comment.js +5 -5
- package/Spreadsheet/Metadata/Contacts.js +7 -7
- package/Spreadsheet/Metadata/Conversions.js +7 -7
- package/Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/Spreadsheet/Metadata/Factors.js +8 -8
- package/Spreadsheet/Metadata/OntologyAnnotation.js +6 -6
- package/Spreadsheet/Metadata/OntologySourceReference.js +6 -6
- package/Spreadsheet/Metadata/Protocols.js +9 -9
- package/Spreadsheet/Metadata/Publication.js +7 -7
- package/Spreadsheet/Metadata/SparseTable.js +21 -21
- package/Spreadsheet/Metadata/Study.js +12 -12
- package/Spreadsheet/Template.js +21 -21
- package/Template.Web.js +6 -6
- package/ValidationPackages/ValidationPackage.js +6 -6
- package/ValidationPackages/ValidationPackagesConfig.js +9 -9
- package/WebRequest/WebRequest.Node.js +2 -2
- package/WebRequest/WebRequest.js +2 -2
- package/Xlsx.js +9 -9
- package/Yaml/Encode.js +1 -1
- package/Yaml/ValidationPackage.js +5 -5
- package/Yaml/ValidationPackagesConfig.js +5 -5
- package/fable_modules/DynamicObj.4.0.0/DynObj.fs +219 -0
- package/fable_modules/DynamicObj.4.0.0/DynObj.fs.js +209 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fableproj +47 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fs +310 -0
- package/fable_modules/DynamicObj.4.0.0/DynamicObj.fs.js +166 -0
- package/fable_modules/DynamicObj.4.0.0/FableJS.fs +162 -0
- package/fable_modules/DynamicObj.4.0.0/FableJS.fs.js +141 -0
- package/fable_modules/DynamicObj.4.0.0/FablePy.fs +215 -0
- package/fable_modules/DynamicObj.4.0.0/HashCodes.fs +46 -0
- package/fable_modules/DynamicObj.4.0.0/HashCodes.fs.js +43 -0
- package/fable_modules/DynamicObj.4.0.0/PropertyHelper.fs +33 -0
- package/fable_modules/DynamicObj.4.0.0/PropertyHelper.fs.js +21 -0
- package/fable_modules/DynamicObj.4.0.0/ReflectionUtils.fs +72 -0
- package/fable_modules/DynamicObj.4.0.0/ReflectionUtils.fs.js +86 -0
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0/obj/Release → DynamicObj.4.0.0/obj/Debug}/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +1 -1
- package/fable_modules/DynamicObj.4.0.0/obj/Debug/netstandard2.0/DynamicObj.AssemblyInfo.fs +19 -0
- package/fable_modules/{Thoth.Json.Core.0.2.1/obj/Debug → DynamicObj.4.0.0/obj/Release}/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +1 -1
- package/fable_modules/DynamicObj.4.0.0/obj/Release/netstandard2.0/DynamicObj.AssemblyInfo.fs +19 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +6 -6
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +11 -11
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCell.fs.js +15 -15
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCellsCollection.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/CellBuilder.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/ColumnBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/DSL.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/DSL/Operators.fs.js +6 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/RowBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/SheetBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/TableBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Transform.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Types.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/WorkbookBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsAddress.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsColumn.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsRow.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsSpreadsheet.fableproj +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorkbook.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorksheet.fs.js +11 -11
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Cell.fs.js +64 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Column.fs.js +39 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Row.fs.js +39 -0
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Table.fs.js +30 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Value.fs.js +38 -13
- package/fable_modules/FsSpreadsheet.6.3.0-alpha.4/Json/Workbook.fs.js +46 -0
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Worksheet.fs.js +33 -8
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRange.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeAddress.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeBase.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeColumn.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeRow.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/SheetBuilder.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTable.fs.js +11 -11
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableField.fs.js +5 -5
- package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableRow.fs.js +2 -2
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Decode.fs +67 -28
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Decode.fs.js +79 -50
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Encode.fs +139 -54
- package/fable_modules/Thoth.Json.Core.0.4.0/Encode.fs.js +192 -0
- package/fable_modules/Thoth.Json.Core.0.4.0/Thoth.Json.Core.fableproj +33 -0
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Types.fs +12 -5
- package/fable_modules/{Thoth.Json.Core.0.2.1 → Thoth.Json.Core.0.4.0}/Types.fs.js +2 -2
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Decode.fs +9 -0
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Decode.fs.js +16 -2
- package/fable_modules/{Thoth.Json.JavaScript.0.1.0 → Thoth.Json.JavaScript.0.3.0}/Encode.fs +13 -5
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Encode.fs.js +58 -0
- package/fable_modules/Thoth.Json.JavaScript.0.3.0/Thoth.Json.JavaScript.fableproj +28 -0
- package/fable_modules/YAMLicious.0.0.1/Decode.fs.js +17 -17
- package/fable_modules/YAMLicious.0.0.1/Encode.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.1/Library.fs.js +1 -1
- package/fable_modules/YAMLicious.0.0.1/Persil.fs.js +4 -4
- package/fable_modules/YAMLicious.0.0.1/Preprocessing.fs.js +6 -6
- package/fable_modules/YAMLicious.0.0.1/Reader.fs.js +9 -9
- package/fable_modules/YAMLicious.0.0.1/RegexActivePatterns.fs.js +36 -36
- package/fable_modules/YAMLicious.0.0.1/Writer.fs.js +4 -4
- package/fable_modules/YAMLicious.0.0.1/YAMLiciousTypes.fs.js +6 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Array.js +10 -10
- package/fable_modules/fable-library-js.4.22.0/Async.d.ts +27 -0
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Async.js +1 -7
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/AsyncBuilder.d.ts +13 -13
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BigInt.js +4 -3
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/CHANGELOG.md +40 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Choice.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Date.js +4 -5
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Decimal.js +6 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/List.js +31 -31
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MailboxProcessor.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Map.js +10 -10
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableMap.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableSet.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Random.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Range.js +4 -4
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Reflection.d.ts +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/RegExp.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Result.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq.js +47 -48
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Set.js +3 -3
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/String.d.ts +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/String.js +17 -6
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Text.js +1 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeSpan.js +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Types.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Uri.d.ts +2 -0
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Uri.js +19 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Util.d.ts +2 -2
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Util.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/lib/big.js +0 -1
- package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/package.json +1 -1
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/fable_modules/FsSpreadsheet.6.2.0/DSL/Operators.fs.js +0 -6
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Cell.fs.js +0 -38
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Column.fs.js +0 -24
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Row.fs.js +0 -24
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Table.fs.js +0 -15
- package/fable_modules/FsSpreadsheet.6.2.0/Json/Workbook.fs.js +0 -35
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +0 -113
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +0 -28
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs +0 -20
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +0 -45
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +0 -21
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +0 -18
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +0 -19
- package/fable_modules/fable-library-js.4.16.0/Async.d.ts +0 -32
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/FsWorksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Cell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Column.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Row.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Table.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Value.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Workbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Json/Worksheet.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.6.2.0 → FsSpreadsheet.6.3.0-alpha.4}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Char.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/ConditionalWeakTable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/ConditionalWeakTable.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Double.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Event.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.CompilerServices.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Global.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Long.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Native.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Option.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/README.md +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Result.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Types.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.16.0 → fable-library-js.4.22.0}/lib/big.d.ts +0 -0
package/Json/Person.js
CHANGED
|
@@ -1,41 +1,71 @@
|
|
|
1
|
-
import { ofArray, choose } from "../fable_modules/fable-library-js.4.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { defaultSpaces, tryIncludeSeq, tryInclude } from "./Encode.js";
|
|
1
|
+
import { ofArray, choose } from "../fable_modules/fable-library-js.4.22.0/List.js";
|
|
2
|
+
import { defaultArg, unwrap, map } from "../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
3
|
+
import { tryIncludeSeq, tryInclude } from "./Encode.js";
|
|
5
4
|
import { OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./OntologyAnnotation.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { ROCrate_decoderDisambiguatingDescription, ROCrate_encoderDisambiguatingDescription, decoder as decoder_1, encoder as encoder_1 } from "./Comment.js";
|
|
6
|
+
import { tryPick, map as map_1 } from "../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
7
|
+
import { array as array_3, map as map_3, resizeArray, string, object } from "../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
8
8
|
import { Person } from "../Core/Person.js";
|
|
9
|
-
import {
|
|
10
|
-
import { Decode_objectNoAdditionalProperties, Decode_resizeArray } from "./Decode.js";
|
|
11
|
-
import { tryPick } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
12
|
-
import { printf, toText, join, split, replace } from "../fable_modules/fable-library-js.4.16.0/String.js";
|
|
9
|
+
import { join, split, replace } from "../fable_modules/fable-library-js.4.22.0/String.js";
|
|
13
10
|
import { context_jsonvalue } from "./context/rocrate/isa_organization_context.js";
|
|
14
11
|
import { contextMinimal_jsonValue, context_jsonvalue as context_jsonvalue_1 } from "./context/rocrate/isa_person_context.js";
|
|
15
|
-
import { map } from "../fable_modules/fable-library-js.4.
|
|
12
|
+
import { map as map_2 } from "../fable_modules/fable-library-js.4.22.0/Array.js";
|
|
16
13
|
import { Person_setOrcidFromComments, Person_setCommentFromORCID } from "../Core/Conversion.js";
|
|
17
14
|
import { encode } from "./IDTable.js";
|
|
18
|
-
import {
|
|
19
|
-
import { toString } from "../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
15
|
+
import { Decode_objectNoAdditionalProperties } from "./Decode.js";
|
|
20
16
|
|
|
21
|
-
export function
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return
|
|
29
|
-
}
|
|
30
|
-
}
|
|
17
|
+
export function encoder(person) {
|
|
18
|
+
const values = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("firstName", (value) => ({
|
|
19
|
+
Encode(helpers) {
|
|
20
|
+
return helpers.encodeString(value);
|
|
21
|
+
},
|
|
22
|
+
}), person.FirstName), tryInclude("lastName", (value_2) => ({
|
|
23
|
+
Encode(helpers_1) {
|
|
24
|
+
return helpers_1.encodeString(value_2);
|
|
25
|
+
},
|
|
26
|
+
}), person.LastName), tryInclude("midInitials", (value_4) => ({
|
|
27
|
+
Encode(helpers_2) {
|
|
28
|
+
return helpers_2.encodeString(value_4);
|
|
29
|
+
},
|
|
30
|
+
}), person.MidInitials), tryInclude("orcid", (value_6) => ({
|
|
31
|
+
Encode(helpers_3) {
|
|
32
|
+
return helpers_3.encodeString(value_6);
|
|
33
|
+
},
|
|
34
|
+
}), person.ORCID), tryInclude("email", (value_8) => ({
|
|
35
|
+
Encode(helpers_4) {
|
|
36
|
+
return helpers_4.encodeString(value_8);
|
|
37
|
+
},
|
|
38
|
+
}), person.EMail), tryInclude("phone", (value_10) => ({
|
|
39
|
+
Encode(helpers_5) {
|
|
40
|
+
return helpers_5.encodeString(value_10);
|
|
41
|
+
},
|
|
42
|
+
}), person.Phone), tryInclude("fax", (value_12) => ({
|
|
43
|
+
Encode(helpers_6) {
|
|
44
|
+
return helpers_6.encodeString(value_12);
|
|
45
|
+
},
|
|
46
|
+
}), person.Fax), tryInclude("address", (value_14) => ({
|
|
47
|
+
Encode(helpers_7) {
|
|
48
|
+
return helpers_7.encodeString(value_14);
|
|
49
|
+
},
|
|
50
|
+
}), person.Address), tryInclude("affiliation", (value_16) => ({
|
|
51
|
+
Encode(helpers_8) {
|
|
52
|
+
return helpers_8.encodeString(value_16);
|
|
53
|
+
},
|
|
54
|
+
}), person.Affiliation), tryIncludeSeq("roles", OntologyAnnotation_encoder, person.Roles), tryIncludeSeq("comments", encoder_1, person.Comments)]));
|
|
55
|
+
return {
|
|
56
|
+
Encode(helpers_9) {
|
|
57
|
+
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_9)], values);
|
|
58
|
+
return helpers_9.encodeObject(arg);
|
|
59
|
+
},
|
|
60
|
+
};
|
|
31
61
|
}
|
|
32
62
|
|
|
33
|
-
export const
|
|
63
|
+
export const decoder = object((get$) => {
|
|
34
64
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, objectArg_7, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
35
|
-
return new Person(unwrap((objectArg = get$.Optional, objectArg.Field("orcid", string))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("lastName", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("firstName", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("midInitials", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("email", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("phone", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("fax", string))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("address", string))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("affiliation", string))), unwrap((arg_19 =
|
|
65
|
+
return new Person(unwrap((objectArg = get$.Optional, objectArg.Field("orcid", string))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("lastName", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("firstName", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("midInitials", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("email", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("phone", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("fax", string))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("address", string))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("affiliation", string))), unwrap((arg_19 = resizeArray(OntologyAnnotation_decoder), (objectArg_9 = get$.Optional, objectArg_9.Field("roles", arg_19)))), unwrap((arg_21 = resizeArray(decoder_1), (objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21)))));
|
|
36
66
|
});
|
|
37
67
|
|
|
38
|
-
export function
|
|
68
|
+
export function ROCrate_genID(p) {
|
|
39
69
|
const orcid = tryPick((c) => {
|
|
40
70
|
const matchValue = c.Name;
|
|
41
71
|
const matchValue_1 = c.Value;
|
|
@@ -59,10 +89,10 @@ export function Person_ROCrate_genID(p) {
|
|
|
59
89
|
return v;
|
|
60
90
|
}
|
|
61
91
|
else {
|
|
62
|
-
return
|
|
92
|
+
return undefined;
|
|
63
93
|
}
|
|
64
94
|
default:
|
|
65
|
-
return
|
|
95
|
+
return undefined;
|
|
66
96
|
}
|
|
67
97
|
}, p.Comments);
|
|
68
98
|
if (orcid == null) {
|
|
@@ -128,145 +158,184 @@ export function Person_ROCrate_genID(p) {
|
|
|
128
158
|
}
|
|
129
159
|
}
|
|
130
160
|
|
|
131
|
-
export function
|
|
132
|
-
|
|
161
|
+
export function ROCrate_Affiliation_encoder(affiliation) {
|
|
162
|
+
let value_1;
|
|
163
|
+
const values = ofArray([["@type", {
|
|
164
|
+
Encode(helpers) {
|
|
165
|
+
return helpers.encodeString("Organization");
|
|
166
|
+
},
|
|
167
|
+
}], ["@id", (value_1 = replace(`#Organization_${affiliation}`, " ", "_"), {
|
|
168
|
+
Encode(helpers_1) {
|
|
169
|
+
return helpers_1.encodeString(value_1);
|
|
170
|
+
},
|
|
171
|
+
})], ["name", {
|
|
172
|
+
Encode(helpers_2) {
|
|
173
|
+
return helpers_2.encodeString(affiliation);
|
|
174
|
+
},
|
|
175
|
+
}], ["@context", context_jsonvalue]]);
|
|
176
|
+
return {
|
|
177
|
+
Encode(helpers_3) {
|
|
178
|
+
const arg = map_1((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_3)], values);
|
|
179
|
+
return helpers_3.encodeObject(arg);
|
|
180
|
+
},
|
|
181
|
+
};
|
|
133
182
|
}
|
|
134
183
|
|
|
135
|
-
export const
|
|
184
|
+
export const ROCrate_Affiliation_decoder = object((get$) => {
|
|
136
185
|
const objectArg = get$.Required;
|
|
137
186
|
return objectArg.Field("name", string);
|
|
138
187
|
});
|
|
139
188
|
|
|
140
|
-
export function
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
return
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
189
|
+
export function ROCrate_encoder(oa) {
|
|
190
|
+
let value;
|
|
191
|
+
const values = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = ROCrate_genID(oa), {
|
|
192
|
+
Encode(helpers) {
|
|
193
|
+
return helpers.encodeString(value);
|
|
194
|
+
},
|
|
195
|
+
})], ["@type", {
|
|
196
|
+
Encode(helpers_1) {
|
|
197
|
+
return helpers_1.encodeString("Person");
|
|
198
|
+
},
|
|
199
|
+
}], tryInclude("orcid", (value_2) => ({
|
|
200
|
+
Encode(helpers_2) {
|
|
201
|
+
return helpers_2.encodeString(value_2);
|
|
202
|
+
},
|
|
203
|
+
}), oa.ORCID), tryInclude("firstName", (value_4) => ({
|
|
204
|
+
Encode(helpers_3) {
|
|
205
|
+
return helpers_3.encodeString(value_4);
|
|
206
|
+
},
|
|
207
|
+
}), oa.FirstName), tryInclude("lastName", (value_6) => ({
|
|
208
|
+
Encode(helpers_4) {
|
|
209
|
+
return helpers_4.encodeString(value_6);
|
|
210
|
+
},
|
|
211
|
+
}), oa.LastName), tryInclude("midInitials", (value_8) => ({
|
|
212
|
+
Encode(helpers_5) {
|
|
213
|
+
return helpers_5.encodeString(value_8);
|
|
214
|
+
},
|
|
215
|
+
}), oa.MidInitials), tryInclude("email", (value_10) => ({
|
|
216
|
+
Encode(helpers_6) {
|
|
217
|
+
return helpers_6.encodeString(value_10);
|
|
218
|
+
},
|
|
219
|
+
}), oa.EMail), tryInclude("phone", (value_12) => ({
|
|
220
|
+
Encode(helpers_7) {
|
|
221
|
+
return helpers_7.encodeString(value_12);
|
|
222
|
+
},
|
|
223
|
+
}), oa.Phone), tryInclude("fax", (value_14) => ({
|
|
224
|
+
Encode(helpers_8) {
|
|
225
|
+
return helpers_8.encodeString(value_14);
|
|
226
|
+
},
|
|
227
|
+
}), oa.Fax), tryInclude("address", (value_16) => ({
|
|
228
|
+
Encode(helpers_9) {
|
|
229
|
+
return helpers_9.encodeString(value_16);
|
|
230
|
+
},
|
|
231
|
+
}), oa.Address), tryInclude("affiliation", ROCrate_Affiliation_encoder, oa.Affiliation), tryIncludeSeq("roles", OntologyAnnotation_ROCrate_encoderDefinedTerm, oa.Roles), tryIncludeSeq("comments", ROCrate_encoderDisambiguatingDescription, oa.Comments), ["@context", context_jsonvalue_1]]));
|
|
232
|
+
return {
|
|
233
|
+
Encode(helpers_10) {
|
|
234
|
+
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_10)], values);
|
|
235
|
+
return helpers_10.encodeObject(arg);
|
|
236
|
+
},
|
|
237
|
+
};
|
|
150
238
|
}
|
|
151
239
|
|
|
152
|
-
export const
|
|
240
|
+
export const ROCrate_decoder = object((get$) => {
|
|
153
241
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, objectArg_7, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10;
|
|
154
|
-
return new Person(unwrap((objectArg = get$.Optional, objectArg.Field("orcid", string))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("lastName", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("firstName", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("midInitials", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("email", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("phone", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("fax", string))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("address", string))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("affiliation",
|
|
242
|
+
return new Person(unwrap((objectArg = get$.Optional, objectArg.Field("orcid", string))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("lastName", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("firstName", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("midInitials", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("email", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("phone", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("fax", string))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("address", string))), unwrap((objectArg_8 = get$.Optional, objectArg_8.Field("affiliation", ROCrate_Affiliation_decoder))), unwrap((arg_19 = resizeArray(OntologyAnnotation_ROCrate_decoderDefinedTerm), (objectArg_9 = get$.Optional, objectArg_9.Field("roles", arg_19)))), unwrap((arg_21 = resizeArray(ROCrate_decoderDisambiguatingDescription), (objectArg_10 = get$.Optional, objectArg_10.Field("comments", arg_21)))));
|
|
155
243
|
});
|
|
156
244
|
|
|
157
245
|
/**
|
|
158
246
|
* This is only used for ro-crate creation. In ISA publication authors are only a string. ro-crate requires person object.
|
|
159
247
|
* Therefore, we try to split the string by common separators and create a minimal person object for ro-crate.
|
|
160
248
|
*/
|
|
161
|
-
export function
|
|
162
|
-
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
249
|
+
export function ROCrate_encodeAuthorListString(authorList) {
|
|
250
|
+
const values_2 = map_2((name) => {
|
|
251
|
+
const values = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@type", {
|
|
252
|
+
Encode(helpers) {
|
|
253
|
+
return helpers.encodeString("Person");
|
|
254
|
+
},
|
|
255
|
+
}], tryInclude("name", (value_1) => ({
|
|
256
|
+
Encode(helpers_1) {
|
|
257
|
+
return helpers_1.encodeString(value_1);
|
|
258
|
+
},
|
|
259
|
+
}), name), ["@context", contextMinimal_jsonValue]]));
|
|
260
|
+
return {
|
|
261
|
+
Encode(helpers_2) {
|
|
262
|
+
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_2)], values);
|
|
263
|
+
return helpers_2.encodeObject(arg);
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
}, map_2((s) => s.trim(), split(authorList, [(authorList.indexOf("\t") >= 0) ? "\t" : ((authorList.indexOf(";") >= 0) ? ";" : ",")], undefined, 0)));
|
|
267
|
+
return {
|
|
268
|
+
Encode(helpers_3) {
|
|
269
|
+
const arg_1 = map_2((v_3) => v_3.Encode(helpers_3), values_2);
|
|
270
|
+
return helpers_3.encodeArray(arg_1);
|
|
271
|
+
},
|
|
272
|
+
};
|
|
171
273
|
}
|
|
172
274
|
|
|
173
|
-
export const
|
|
275
|
+
export const ROCrate_decodeAuthorListString = map_3((v) => join(", ", v), array_3(object((get$) => {
|
|
174
276
|
let objectArg;
|
|
175
277
|
return defaultArg((objectArg = get$.Optional, objectArg.Field("name", string)), "");
|
|
176
278
|
})));
|
|
177
279
|
|
|
178
|
-
export const
|
|
280
|
+
export const ISAJson_allowedFields = ofArray(["@id", "firstName", "lastName", "midInitials", "email", "phone", "fax", "address", "affiliation", "roles", "comments", "@type", "@context"]);
|
|
179
281
|
|
|
180
|
-
export function
|
|
282
|
+
export function ISAJson_encoder(idMap, person) {
|
|
181
283
|
const f = (person_1) => {
|
|
182
284
|
const person_2 = Person_setCommentFromORCID(person_1);
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return
|
|
190
|
-
}
|
|
191
|
-
}
|
|
285
|
+
const values = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("@id", (value) => ({
|
|
286
|
+
Encode(helpers) {
|
|
287
|
+
return helpers.encodeString(value);
|
|
288
|
+
},
|
|
289
|
+
}), ROCrate_genID(person_2)), tryInclude("firstName", (value_2) => ({
|
|
290
|
+
Encode(helpers_1) {
|
|
291
|
+
return helpers_1.encodeString(value_2);
|
|
292
|
+
},
|
|
293
|
+
}), person_2.FirstName), tryInclude("lastName", (value_4) => ({
|
|
294
|
+
Encode(helpers_2) {
|
|
295
|
+
return helpers_2.encodeString(value_4);
|
|
296
|
+
},
|
|
297
|
+
}), person_2.LastName), tryInclude("midInitials", (value_6) => ({
|
|
298
|
+
Encode(helpers_3) {
|
|
299
|
+
return helpers_3.encodeString(value_6);
|
|
300
|
+
},
|
|
301
|
+
}), person_2.MidInitials), tryInclude("email", (value_8) => ({
|
|
302
|
+
Encode(helpers_4) {
|
|
303
|
+
return helpers_4.encodeString(value_8);
|
|
304
|
+
},
|
|
305
|
+
}), person_2.EMail), tryInclude("phone", (value_10) => ({
|
|
306
|
+
Encode(helpers_5) {
|
|
307
|
+
return helpers_5.encodeString(value_10);
|
|
308
|
+
},
|
|
309
|
+
}), person_2.Phone), tryInclude("fax", (value_12) => ({
|
|
310
|
+
Encode(helpers_6) {
|
|
311
|
+
return helpers_6.encodeString(value_12);
|
|
312
|
+
},
|
|
313
|
+
}), person_2.Fax), tryInclude("address", (value_14) => ({
|
|
314
|
+
Encode(helpers_7) {
|
|
315
|
+
return helpers_7.encodeString(value_14);
|
|
316
|
+
},
|
|
317
|
+
}), person_2.Address), tryInclude("affiliation", (value_16) => ({
|
|
318
|
+
Encode(helpers_8) {
|
|
319
|
+
return helpers_8.encodeString(value_16);
|
|
320
|
+
},
|
|
321
|
+
}), person_2.Affiliation), tryIncludeSeq("roles", OntologyAnnotation_encoder, person_2.Roles), tryIncludeSeq("comments", encoder_1, person_2.Comments)]));
|
|
322
|
+
return {
|
|
323
|
+
Encode(helpers_9) {
|
|
324
|
+
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_9)], values);
|
|
325
|
+
return helpers_9.encodeObject(arg);
|
|
326
|
+
},
|
|
327
|
+
};
|
|
192
328
|
};
|
|
193
329
|
if (idMap != null) {
|
|
194
|
-
return encode(
|
|
330
|
+
return encode(ROCrate_genID, f, person, idMap);
|
|
195
331
|
}
|
|
196
332
|
else {
|
|
197
333
|
return f(person);
|
|
198
334
|
}
|
|
199
335
|
}
|
|
200
336
|
|
|
201
|
-
export const
|
|
337
|
+
export const ISAJson_decoder = Decode_objectNoAdditionalProperties(ISAJson_allowedFields, (get$) => {
|
|
202
338
|
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9;
|
|
203
|
-
return Person_setOrcidFromComments(new Person(
|
|
339
|
+
return Person_setOrcidFromComments(new Person(undefined, unwrap((objectArg = get$.Optional, objectArg.Field("lastName", string))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("firstName", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("midInitials", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("email", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("phone", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("fax", string))), unwrap((objectArg_6 = get$.Optional, objectArg_6.Field("address", string))), unwrap((objectArg_7 = get$.Optional, objectArg_7.Field("affiliation", string))), unwrap((arg_17 = resizeArray(OntologyAnnotation_decoder), (objectArg_8 = get$.Optional, objectArg_8.Field("roles", arg_17)))), unwrap((arg_19 = resizeArray(decoder_1), (objectArg_9 = get$.Optional, objectArg_9.Field("comments", arg_19))))));
|
|
204
340
|
});
|
|
205
341
|
|
|
206
|
-
export function ARCtrl_Person__Person_fromJsonString_Static_Z721C83C5(s) {
|
|
207
|
-
const matchValue = fromString(Person_decoder, s);
|
|
208
|
-
if (matchValue.tag === 1) {
|
|
209
|
-
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
return matchValue.fields[0];
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export function ARCtrl_Person__Person_toJsonString_Static_71136F3F(spaces) {
|
|
217
|
-
return (obj) => {
|
|
218
|
-
const value = Person_encoder(obj);
|
|
219
|
-
return toString(defaultSpaces(spaces), value);
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export function ARCtrl_Person__Person_toJsonString_71136F3F(this$, spaces) {
|
|
224
|
-
return ARCtrl_Person__Person_toJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export function ARCtrl_Person__Person_fromROCrateJsonString_Static_Z721C83C5(s) {
|
|
228
|
-
const matchValue = fromString(Person_ROCrate_decoder, s);
|
|
229
|
-
if (matchValue.tag === 1) {
|
|
230
|
-
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
231
|
-
}
|
|
232
|
-
else {
|
|
233
|
-
return matchValue.fields[0];
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* exports in json-ld format
|
|
239
|
-
*/
|
|
240
|
-
export function ARCtrl_Person__Person_toROCrateJsonString_Static_71136F3F(spaces) {
|
|
241
|
-
return (obj) => {
|
|
242
|
-
const value = Person_ROCrate_encoder(obj);
|
|
243
|
-
return toString(defaultSpaces(spaces), value);
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export function ARCtrl_Person__Person_toROCrateJsonString_71136F3F(this$, spaces) {
|
|
248
|
-
return ARCtrl_Person__Person_toROCrateJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export function ARCtrl_Person__Person_fromISAJsonString_Static_Z721C83C5(s) {
|
|
252
|
-
const matchValue = fromString(Person_ISAJson_decoder, 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
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export function ARCtrl_Person__Person_toISAJsonString_Static_Z3B036AA(spaces, useIDReferencing) {
|
|
262
|
-
const idMap = defaultArg(useIDReferencing, false) ? (new Map([])) : void 0;
|
|
263
|
-
return (obj) => {
|
|
264
|
-
const value = Person_ISAJson_encoder(idMap, obj);
|
|
265
|
-
return toString(defaultSpaces(spaces), value);
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
export function ARCtrl_Person__Person_toISAJsonString_Z3B036AA(this$, spaces, useIDReferencing) {
|
|
270
|
-
return ARCtrl_Person__Person_toISAJsonString_Static_Z3B036AA(unwrap(spaces), unwrap(useIDReferencing))(this$);
|
|
271
|
-
}
|
|
272
|
-
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { getMaterials, getSamples } from "../../Core/Process/ProcessSequence.js";
|
|
2
|
-
import { ofArray, choose } from "../../fable_modules/fable-library-js.4.
|
|
3
|
-
import {
|
|
4
|
-
import { Json } from "../../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
2
|
+
import { ofArray, choose } from "../../fable_modules/fable-library-js.4.22.0/List.js";
|
|
3
|
+
import { map } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
5
4
|
import { tryIncludeList } from "../Encode.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { ISAJson_encoder } from "./Sample.js";
|
|
6
|
+
import { ISAJson_encoder as ISAJson_encoder_1 } from "./Material.js";
|
|
7
|
+
import { map as map_1 } from "../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
8
8
|
|
|
9
9
|
export function encoder(idMap, ps) {
|
|
10
10
|
const samples = getSamples(ps);
|
|
11
11
|
const materials = getMaterials(ps);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
}, ofArray([tryIncludeList("samples", (oa) => Sample_ISAJson_encoder(idMap, oa), samples), tryIncludeList("otherMaterials", (c) => Material_ISAJson_encoder(idMap, c), materials)]))]);
|
|
12
|
+
const values = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryIncludeList("samples", (oa) => ISAJson_encoder(idMap, oa), samples), tryIncludeList("otherMaterials", (c) => ISAJson_encoder_1(idMap, c), materials)]));
|
|
13
|
+
return {
|
|
14
|
+
Encode(helpers) {
|
|
15
|
+
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers)], values);
|
|
16
|
+
return helpers.encodeObject(arg);
|
|
17
|
+
},
|
|
18
|
+
};
|
|
21
19
|
}
|
|
22
20
|
|
|
@@ -1,45 +1,43 @@
|
|
|
1
|
-
import { genID, decoder
|
|
1
|
+
import { genID, decoder, encoder } from "../PropertyValue.js";
|
|
2
2
|
import { Component, Component_decomposeName_Z721C83C5, Component__get_ComponentName, Component_createAsPV } from "../../Core/Process/Component.js";
|
|
3
|
-
import { ofArray, choose } from "../../fable_modules/fable-library-js.4.
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { defaultSpaces, tryInclude } from "../Encode.js";
|
|
3
|
+
import { ofArray, choose } from "../../fable_modules/fable-library-js.4.22.0/List.js";
|
|
4
|
+
import { map } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
5
|
+
import { tryInclude } from "../Encode.js";
|
|
7
6
|
import { OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_ISAJson_encoder } from "../OntologyAnnotation.js";
|
|
8
|
-
import {
|
|
7
|
+
import { map as map_1 } from "../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
8
|
+
import { object } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
9
9
|
import { Decode_uri } from "../Decode.js";
|
|
10
|
-
import { fromString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
11
|
-
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
12
|
-
import { unwrap, defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
13
|
-
import { toString } from "../../fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
14
10
|
|
|
15
|
-
export const
|
|
11
|
+
export const ROCrate_encoder = encoder;
|
|
16
12
|
|
|
17
|
-
export const
|
|
13
|
+
export const ROCrate_decoder = decoder(Component_createAsPV);
|
|
18
14
|
|
|
19
|
-
export function
|
|
15
|
+
export function ISAJson_genID(c) {
|
|
20
16
|
return genID(c);
|
|
21
17
|
}
|
|
22
18
|
|
|
23
|
-
export function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
export function ISAJson_encoder(idMap, c) {
|
|
20
|
+
const values = choose((tupledArg) => map((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("componentName", (value) => ({
|
|
21
|
+
Encode(helpers) {
|
|
22
|
+
return helpers.encodeString(value);
|
|
23
|
+
},
|
|
24
|
+
}), Component__get_ComponentName(c)), tryInclude("componentType", (oa) => OntologyAnnotation_ISAJson_encoder(idMap, oa), c.ComponentType)]));
|
|
25
|
+
return {
|
|
26
|
+
Encode(helpers_1) {
|
|
27
|
+
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_1)], values);
|
|
28
|
+
return helpers_1.encodeObject(arg);
|
|
29
|
+
},
|
|
30
|
+
};
|
|
33
31
|
}
|
|
34
32
|
|
|
35
|
-
export const
|
|
33
|
+
export const ISAJson_decoder = object((get$) => {
|
|
36
34
|
let objectArg_1;
|
|
37
35
|
let name;
|
|
38
36
|
const objectArg = get$.Optional;
|
|
39
37
|
name = objectArg.Field("componentName", Decode_uri);
|
|
40
38
|
let patternInput_1;
|
|
41
39
|
if (name == null) {
|
|
42
|
-
patternInput_1 = [
|
|
40
|
+
patternInput_1 = [undefined, undefined];
|
|
43
41
|
}
|
|
44
42
|
else {
|
|
45
43
|
const patternInput = Component_decomposeName_Z721C83C5(name);
|
|
@@ -48,46 +46,3 @@ export const Component_ISAJson_decoder = object((get$) => {
|
|
|
48
46
|
return new Component(patternInput_1[0], patternInput_1[1], (objectArg_1 = get$.Optional, objectArg_1.Field("componentType", OntologyAnnotation_ISAJson_decoder)));
|
|
49
47
|
});
|
|
50
48
|
|
|
51
|
-
export function ARCtrl_Process_Component__Component_fromISAJsonString_Static_Z721C83C5(s) {
|
|
52
|
-
const matchValue = fromString(Component_ISAJson_decoder, s);
|
|
53
|
-
if (matchValue.tag === 1) {
|
|
54
|
-
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return matchValue.fields[0];
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function ARCtrl_Process_Component__Component_toISAJsonString_Static_Z3B036AA(spaces, useIDReferencing) {
|
|
62
|
-
const idMap = defaultArg(useIDReferencing, false) ? (new Map([])) : void 0;
|
|
63
|
-
return (f) => {
|
|
64
|
-
const value = Component_ISAJson_encoder(idMap, f);
|
|
65
|
-
return toString(defaultSpaces(spaces), value);
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function ARCtrl_Process_Component__Component_toISAJsonString_71136F3F(this$, spaces) {
|
|
70
|
-
return ARCtrl_Process_Component__Component_toISAJsonString_Static_Z3B036AA(spaces)(this$);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function ARCtrl_Process_Component__Component_fromROCrateJsonString_Static_Z721C83C5(s) {
|
|
74
|
-
const matchValue = fromString(Component_ROCrate_decoder, s);
|
|
75
|
-
if (matchValue.tag === 1) {
|
|
76
|
-
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return matchValue.fields[0];
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function ARCtrl_Process_Component__Component_toROCrateJsonString_Static_71136F3F(spaces) {
|
|
84
|
-
return (f) => {
|
|
85
|
-
const value = Component_ROCrate_encoder(f);
|
|
86
|
-
return toString(defaultSpaces(spaces), value);
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function ARCtrl_Process_Component__Component_toROCrateJsonString_71136F3F(this$, spaces) {
|
|
91
|
-
return ARCtrl_Process_Component__Component_toROCrateJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
92
|
-
}
|
|
93
|
-
|