@nfdi4plants/arctrl 1.1.0 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARC.js +53 -35
- package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
- package/Contract/ArcAssay.js +102 -0
- package/Contract/ArcInvestigation.js +78 -0
- package/Contract/ArcStudy.js +102 -0
- package/Contract/Contract.js +3 -3
- package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
- package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
- package/Core/Comment.js +97 -0
- package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
- package/Core/Conversion.js +1056 -0
- package/Core/Helper/Collections.js +318 -0
- package/Core/Helper/HashCodes.js +39 -0
- package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
- package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
- package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
- package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
- package/Core/OntologyAnnotation.js +186 -0
- package/Core/OntologySourceReference.js +92 -0
- package/Core/Person.js +194 -0
- package/Core/Process/ColumnIndex.js +248 -0
- package/Core/Process/Component.js +188 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
- package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
- package/Core/Process/Factor.js +109 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
- package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
- package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
- package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
- package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
- package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
- package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +24 -31
- package/Core/Publication.js +116 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +49 -155
- package/Core/Table/ArcTableAux.js +532 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +9 -8
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
- package/{Templates → Core}/Template.js +16 -17
- package/Core/Templates.js +84 -0
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +46 -8
- package/FileSystem/Path.js +10 -2
- package/Json/ARC.js +25 -0
- package/Json/Assay.js +202 -0
- package/Json/Comment.js +130 -0
- package/Json/ConverterOptions.js +18 -0
- package/Json/Decode.js +128 -0
- package/Json/Encode.js +45 -0
- package/Json/Investigation.js +220 -0
- package/Json/OntologyAnnotation.js +169 -0
- package/Json/OntologySourceReference.js +122 -0
- package/Json/Person.js +250 -0
- package/Json/Process/AssayMaterials.js +22 -0
- package/Json/Process/Component.js +79 -0
- package/Json/Process/Data.js +102 -0
- package/Json/Process/DataFile.js +81 -0
- package/Json/Process/Factor.js +48 -0
- package/Json/Process/FactorValue.js +53 -0
- package/Json/Process/Material.js +107 -0
- package/Json/Process/MaterialAttribute.js +45 -0
- package/Json/Process/MaterialAttributeValue.js +70 -0
- package/Json/Process/MaterialType.js +60 -0
- package/Json/Process/Process.js +107 -0
- package/Json/Process/ProcessInput.js +59 -0
- package/Json/Process/ProcessOutput.js +71 -0
- package/Json/Process/ProcessParameterValue.js +69 -0
- package/Json/Process/ProcessSequence.js +53 -0
- package/Json/Process/PropertyValue.js +82 -0
- package/Json/Process/Protocol.js +147 -0
- package/Json/Process/ProtocolParameter.js +45 -0
- package/Json/Process/Sample.js +134 -0
- package/Json/Process/Source.js +101 -0
- package/Json/Process/StudyMaterials.js +24 -0
- package/Json/Process/Value.js +42 -0
- package/Json/Publication.js +142 -0
- package/Json/StringTable.js +44 -0
- package/Json/Study.js +306 -0
- package/Json/Table/ArcTable.js +223 -0
- package/Json/Table/CellTable.js +40 -0
- package/Json/Table/CompositeCell.js +65 -0
- package/Json/Table/CompositeHeader.js +57 -0
- package/Json/Table/Compression.js +38 -0
- package/Json/Table/IOType.js +37 -0
- package/Json/Table/OATable.js +40 -0
- package/Json/Table/Templates.js +107 -0
- package/Json/context/rocrate/isa_assay_context.js +32 -0
- package/Json/context/rocrate/isa_comment_context.js +23 -0
- package/Json/context/rocrate/isa_component_context.js +24 -0
- package/Json/context/rocrate/isa_data_context.js +25 -0
- package/Json/context/rocrate/isa_factor_context.js +25 -0
- package/Json/context/rocrate/isa_factor_value_context.js +23 -0
- package/Json/context/rocrate/isa_investigation_context.js +33 -0
- package/Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
- package/Json/context/rocrate/isa_material_context.js +26 -0
- package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/Json/context/rocrate/isa_organization_context.js +22 -0
- package/Json/context/rocrate/isa_person_context.js +33 -0
- package/Json/context/rocrate/isa_process_context.js +29 -0
- package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
- package/Json/context/rocrate/isa_protocol_context.js +28 -0
- package/Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/Json/context/rocrate/isa_publication_context.js +25 -0
- package/Json/context/rocrate/isa_sample_context.js +24 -0
- package/Json/context/rocrate/isa_source_context.js +25 -0
- package/Json/context/rocrate/isa_study_context.js +40 -0
- package/Json/context/rocrate/property_value_context.js +4 -0
- package/Json/context/rocrate/rocrate_context.js +23 -0
- package/Json.js +193 -0
- package/README.md +50 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +8 -8
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
- package/Spreadsheet/Metadata/Comment.js +71 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
- package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +34 -28
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
- package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
- package/Template.Web.js +27 -0
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/Xlsx.js +85 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +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.16.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.js +124 -86
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
- package/fable_modules/fable-library-js.4.16.0/CHANGELOG.md +47 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.js +0 -43
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.js +340 -42
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.js +3 -3
- package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.16.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.16.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.js +60 -8
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.js +2 -13
- package/fable_modules/fable-library-js.4.16.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/index.js +14 -12
- package/package.json +1 -1
- package/Contracts/Contracts.ArcTypes.js +0 -268
- package/FileSystemTree.js +0 -51
- package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
- package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
- package/ISA/ISA/Builder/Types.js +0 -243
- package/ISA/ISA/Fable.js +0 -123
- package/ISA/ISA/Helper.js +0 -503
- package/ISA/ISA/JsonTypes/Assay.js +0 -620
- package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
- package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
- package/ISA/ISA/JsonTypes/Comment.js +0 -58
- package/ISA/ISA/JsonTypes/Component.js +0 -165
- package/ISA/ISA/JsonTypes/Factor.js +0 -128
- package/ISA/ISA/JsonTypes/Investigation.js +0 -204
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
- package/ISA/ISA/JsonTypes/Person.js +0 -137
- package/ISA/ISA/JsonTypes/Publication.js +0 -105
- package/ISA/ISA/JsonTypes/Study.js +0 -942
- package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
- package/ISA/ISA/UIHelper.js +0 -19
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -282
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -93
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -170
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +0 -178
- package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -46
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -77
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +0 -82
- package/ISA/ISA.Json/ArcTypes/IOType.js +0 -35
- package/ISA/ISA.Json/ArcTypes/OATable.js +0 -48
- package/ISA/ISA.Json/Assay.js +0 -105
- package/ISA/ISA.Json/Comment.js +0 -84
- package/ISA/ISA.Json/ConverterOptions.js +0 -33
- package/ISA/ISA.Json/Data.js +0 -271
- package/ISA/ISA.Json/Decode.js +0 -46
- package/ISA/ISA.Json/Factor.js +0 -194
- package/ISA/ISA.Json/GEncode.js +0 -15
- package/ISA/ISA.Json/Investigation.js +0 -114
- package/ISA/ISA.Json/Material.js +0 -233
- package/ISA/ISA.Json/Ontology.js +0 -223
- package/ISA/ISA.Json/Person.js +0 -204
- package/ISA/ISA.Json/Process.js +0 -291
- package/ISA/ISA.Json/Protocol.js +0 -242
- package/ISA/ISA.Json/Publication.js +0 -92
- package/ISA/ISA.Json/StringTable.js +0 -43
- package/ISA/ISA.Json/Study.js +0 -212
- 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/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +0 -59
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +0 -60
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
- package/Path.js +0 -10
- package/Templates/Template.Json.js +0 -83
- package/Templates/Template.Web.js +0 -27
- package/Templates/Templates.js +0 -82
- 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/fable-library.4.5.0/MapUtil.d.ts +0 -10
- /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { Record } from "../../../fable_modules/fable-library.4.5.0/Types.js";
|
|
2
|
-
import { getRecordFields, makeRecord, record_type, list_type, option_type, string_type } from "../../../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
3
|
-
import { OntologySourceReference_$reflection } from "./OntologySourceReference.js";
|
|
4
|
-
import { Publication_$reflection } from "./Publication.js";
|
|
5
|
-
import { Person_$reflection } from "./Person.js";
|
|
6
|
-
import { Study_update_7312BC8B, Study_$reflection } from "./Study.js";
|
|
7
|
-
import { Remark_$reflection, Comment$_$reflection } from "./Comment.js";
|
|
8
|
-
import { map, defaultArg } from "../../../fable_modules/fable-library.4.5.0/Option.js";
|
|
9
|
-
import { map as map_1, empty } from "../../../fable_modules/fable-library.4.5.0/List.js";
|
|
10
|
-
import { Option_mapDefault } from "../Helper.js";
|
|
11
|
-
import { map2 } from "../../../fable_modules/fable-library.4.5.0/Array.js";
|
|
12
|
-
import { Update_updateOnlyByExistingAppend, Update_updateOnlyByExisting, Update_updateAppend } from "../Helper.js";
|
|
13
|
-
import { toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
|
|
14
|
-
|
|
15
|
-
export class Investigation extends Record {
|
|
16
|
-
constructor(ID, FileName, Identifier, Title, Description, SubmissionDate, PublicReleaseDate, OntologySourceReferences, Publications, Contacts, Studies, Comments, Remarks) {
|
|
17
|
-
super();
|
|
18
|
-
this.ID = ID;
|
|
19
|
-
this.FileName = FileName;
|
|
20
|
-
this.Identifier = Identifier;
|
|
21
|
-
this.Title = Title;
|
|
22
|
-
this.Description = Description;
|
|
23
|
-
this.SubmissionDate = SubmissionDate;
|
|
24
|
-
this.PublicReleaseDate = PublicReleaseDate;
|
|
25
|
-
this.OntologySourceReferences = OntologySourceReferences;
|
|
26
|
-
this.Publications = Publications;
|
|
27
|
-
this.Contacts = Contacts;
|
|
28
|
-
this.Studies = Studies;
|
|
29
|
-
this.Comments = Comments;
|
|
30
|
-
this.Remarks = Remarks;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function Investigation_$reflection() {
|
|
35
|
-
return record_type("ARCtrl.ISA.Investigation", [], Investigation, () => [["ID", option_type(string_type)], ["FileName", option_type(string_type)], ["Identifier", option_type(string_type)], ["Title", option_type(string_type)], ["Description", option_type(string_type)], ["SubmissionDate", option_type(string_type)], ["PublicReleaseDate", option_type(string_type)], ["OntologySourceReferences", option_type(list_type(OntologySourceReference_$reflection()))], ["Publications", option_type(list_type(Publication_$reflection()))], ["Contacts", option_type(list_type(Person_$reflection()))], ["Studies", option_type(list_type(Study_$reflection()))], ["Comments", option_type(list_type(Comment$_$reflection()))], ["Remarks", list_type(Remark_$reflection())]]);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function Investigation_make(id, filename, identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReference, publications, contacts, studies, comments, remarks) {
|
|
39
|
-
return new Investigation(id, filename, identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReference, publications, contacts, studies, comments, remarks);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function Investigation_create_4AD66BBE(Id, FileName, Identifier, Title, Description, SubmissionDate, PublicReleaseDate, OntologySourceReferences, Publications, Contacts, Studies, Comments, Remarks) {
|
|
43
|
-
return Investigation_make(Id, FileName, Identifier, Title, Description, SubmissionDate, PublicReleaseDate, OntologySourceReferences, Publications, Contacts, Studies, Comments, defaultArg(Remarks, empty()));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function Investigation_get_empty() {
|
|
47
|
-
return Investigation_create_4AD66BBE();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Returns contacts of an investigation
|
|
52
|
-
*/
|
|
53
|
-
export function Investigation_getContacts_33B81164(investigation) {
|
|
54
|
-
return investigation.Contacts;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Applies function f on person of an investigation
|
|
59
|
-
*/
|
|
60
|
-
export function Investigation_mapContacts(f, investigation) {
|
|
61
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, Option_mapDefault(empty(), f, investigation.Contacts), investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Replaces persons of an investigation with the given person list
|
|
66
|
-
*/
|
|
67
|
-
export function Investigation_setContacts(investigation, persons) {
|
|
68
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, persons, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Returns publications of an investigation
|
|
73
|
-
*/
|
|
74
|
-
export function Investigation_getPublications_33B81164(investigation) {
|
|
75
|
-
return investigation.Publications;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Applies function f on publications of an investigation
|
|
80
|
-
*/
|
|
81
|
-
export function Investigation_mapPublications(f, investigation) {
|
|
82
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, Option_mapDefault(empty(), f, investigation.Publications), investigation.Contacts, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Replaces publications of an investigation with the given publication list
|
|
87
|
-
*/
|
|
88
|
-
export function Investigation_setPublications(investigation, publications) {
|
|
89
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, publications, investigation.Contacts, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Returns ontology source ref of an investigation
|
|
94
|
-
*/
|
|
95
|
-
export function Investigation_getOntologies_33B81164(investigation) {
|
|
96
|
-
return investigation.OntologySourceReferences;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Applies function f on ontology source ref of an investigation
|
|
101
|
-
*/
|
|
102
|
-
export function Investigation_mapOntologies(f, investigation) {
|
|
103
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, Option_mapDefault(empty(), f, investigation.OntologySourceReferences), investigation.Publications, investigation.Contacts, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Replaces ontology source ref of an investigation with the given ontology source ref list
|
|
108
|
-
*/
|
|
109
|
-
export function Investigation_setOntologies(investigation, ontologies) {
|
|
110
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, ontologies, investigation.Publications, investigation.Contacts, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Returns studies of an investigation
|
|
115
|
-
*/
|
|
116
|
-
export function Investigation_getStudies_33B81164(investigation) {
|
|
117
|
-
return defaultArg(investigation.Studies, empty());
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Applies function f on studies of an investigation
|
|
122
|
-
*/
|
|
123
|
-
export function Investigation_mapStudies(f, investigation) {
|
|
124
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, Option_mapDefault(empty(), f, investigation.Studies), investigation.Comments, investigation.Remarks);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Replaces studies of an investigation with the given study list
|
|
129
|
-
*/
|
|
130
|
-
export function Investigation_setStudies(investigation, studies) {
|
|
131
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, studies, investigation.Comments, investigation.Remarks);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Returns comments of an investigation
|
|
136
|
-
*/
|
|
137
|
-
export function Investigation_getComments_33B81164(investigation) {
|
|
138
|
-
return investigation.Comments;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Applies function f on comments of an investigation
|
|
143
|
-
*/
|
|
144
|
-
export function Investigation_mapComments(f, investigation) {
|
|
145
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, investigation.Studies, Option_mapDefault(empty(), f, investigation.Comments), investigation.Remarks);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Replaces comments of an investigation with the given comment list
|
|
150
|
-
*/
|
|
151
|
-
export function Investigation_setComments(investigation, comments) {
|
|
152
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, investigation.Studies, comments, investigation.Remarks);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Returns remarks of an investigation
|
|
157
|
-
*/
|
|
158
|
-
export function Investigation_getRemarks_33B81164(investigation) {
|
|
159
|
-
return investigation.Remarks;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Applies function f on remarks of an investigation
|
|
164
|
-
*/
|
|
165
|
-
export function Investigation_mapRemarks(f, investigation) {
|
|
166
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, investigation.Studies, investigation.Comments, f(investigation.Remarks));
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Replaces remarks of an investigation with the given remark list
|
|
171
|
-
*/
|
|
172
|
-
export function Investigation_setRemarks(investigation, remarks) {
|
|
173
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, investigation.Studies, investigation.Comments, remarks);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Update the investigation with the values of the given newInvestigation
|
|
178
|
-
*/
|
|
179
|
-
export function Investigation_updateBy(updateOption, investigation, newInvestigation) {
|
|
180
|
-
const this$ = updateOption;
|
|
181
|
-
const recordType_1 = investigation;
|
|
182
|
-
const recordType_2 = newInvestigation;
|
|
183
|
-
switch (this$.tag) {
|
|
184
|
-
case 2:
|
|
185
|
-
return makeRecord(Investigation_$reflection(), map2(Update_updateAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
186
|
-
case 1:
|
|
187
|
-
return makeRecord(Investigation_$reflection(), map2(Update_updateOnlyByExisting, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
188
|
-
case 3:
|
|
189
|
-
return makeRecord(Investigation_$reflection(), map2(Update_updateOnlyByExistingAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
190
|
-
default:
|
|
191
|
-
return recordType_2;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export function Investigation_update_33B81164(investigation) {
|
|
196
|
-
try {
|
|
197
|
-
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, map((list) => map_1(Study_update_7312BC8B, list), investigation.Studies), investigation.Comments, investigation.Remarks);
|
|
198
|
-
}
|
|
199
|
-
catch (err) {
|
|
200
|
-
return toFail(`Could not update investigation ${investigation.Identifier}:
|
|
201
|
-
${err.message}`);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { map as map_1, value as value_4, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.5.0/Option.js";
|
|
2
|
-
import { Pattern_TermAnnotationShortPattern, ActivePatterns_$007CRegex$007C_$007C, tryParseTermAnnotation } from "../Regex.js";
|
|
3
|
-
import { equals, stringHash } from "../../../fable_modules/fable-library.4.5.0/Util.js";
|
|
4
|
-
import { filter, map, singleton, append, exists, tryFind } from "../../../fable_modules/fable-library.4.5.0/List.js";
|
|
5
|
-
import { record_type, array_type, option_type, string_type, getRecordFields, makeRecord } from "../../../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
6
|
-
import { map as map_2, map2 } from "../../../fable_modules/fable-library.4.5.0/Array.js";
|
|
7
|
-
import { Update_updateOnlyByExistingAppend, Update_updateOnlyByExisting, Update_updateAppend } from "../Helper.js";
|
|
8
|
-
import { Option_mapDefault } from "../Helper.js";
|
|
9
|
-
import { Record, toString } from "../../../fable_modules/fable-library.4.5.0/Types.js";
|
|
10
|
-
import { Comment$_$reflection } from "./Comment.js";
|
|
11
|
-
|
|
12
|
-
export class OntologyAnnotation extends Record {
|
|
13
|
-
constructor(ID, Name, TermSourceREF, TermAccessionNumber, Comments) {
|
|
14
|
-
super();
|
|
15
|
-
this.ID = ID;
|
|
16
|
-
this.Name = Name;
|
|
17
|
-
this.TermSourceREF = TermSourceREF;
|
|
18
|
-
this.TermAccessionNumber = TermAccessionNumber;
|
|
19
|
-
this.Comments = Comments;
|
|
20
|
-
}
|
|
21
|
-
static make(id, name, termSourceREF, termAccessionNumber, comments) {
|
|
22
|
-
return new OntologyAnnotation(id, name, termSourceREF, termAccessionNumber, comments);
|
|
23
|
-
}
|
|
24
|
-
static create(Id, Name, TermSourceREF, TermAccessionNumber, Comments) {
|
|
25
|
-
return OntologyAnnotation.make(Id, Name, TermSourceREF, TermAccessionNumber, Comments);
|
|
26
|
-
}
|
|
27
|
-
static get empty() {
|
|
28
|
-
return OntologyAnnotation.create();
|
|
29
|
-
}
|
|
30
|
-
get TANInfo() {
|
|
31
|
-
let matchValue;
|
|
32
|
-
const this$ = this;
|
|
33
|
-
return unwrap((matchValue = this$.TermAccessionNumber, (matchValue == null) ? void 0 : tryParseTermAnnotation(matchValue)));
|
|
34
|
-
}
|
|
35
|
-
get NameText() {
|
|
36
|
-
const this$ = this;
|
|
37
|
-
return defaultArg(this$.Name, "");
|
|
38
|
-
}
|
|
39
|
-
get TermSourceREFString() {
|
|
40
|
-
const this$ = this;
|
|
41
|
-
return defaultArg(this$.TermSourceREF, "");
|
|
42
|
-
}
|
|
43
|
-
get TermAccessionString() {
|
|
44
|
-
const this$ = this;
|
|
45
|
-
return defaultArg(this$.TermAccessionNumber, "");
|
|
46
|
-
}
|
|
47
|
-
static createUriAnnotation(termSourceRef, localTAN) {
|
|
48
|
-
return `${"http://purl.obolibrary.org/obo/"}${termSourceRef}_${localTAN}`;
|
|
49
|
-
}
|
|
50
|
-
static fromString(termName, tsr, tan, comments) {
|
|
51
|
-
return OntologyAnnotation.make(void 0, termName, tsr, tan, comments);
|
|
52
|
-
}
|
|
53
|
-
static fromTermAnnotation(termAnnotation) {
|
|
54
|
-
const r = value_4(tryParseTermAnnotation(termAnnotation));
|
|
55
|
-
const accession = (r.IDSpace + ":") + r.LocalID;
|
|
56
|
-
return OntologyAnnotation.fromString("", r.IDSpace, accession);
|
|
57
|
-
}
|
|
58
|
-
get TermAccessionShort() {
|
|
59
|
-
const this$ = this;
|
|
60
|
-
const matchValue = this$.TANInfo;
|
|
61
|
-
if (matchValue != null) {
|
|
62
|
-
const id = matchValue;
|
|
63
|
-
return `${id.IDSpace}:${id.LocalID}`;
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
return "";
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
get TermAccessionOntobeeUrl() {
|
|
70
|
-
const this$ = this;
|
|
71
|
-
const matchValue = this$.TANInfo;
|
|
72
|
-
if (matchValue != null) {
|
|
73
|
-
const id = matchValue;
|
|
74
|
-
return OntologyAnnotation.createUriAnnotation(id.IDSpace, id.LocalID);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return "";
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
get TermAccessionAndOntobeeUrlIfShort() {
|
|
81
|
-
const this$ = this;
|
|
82
|
-
const matchValue = this$.TermAccessionNumber;
|
|
83
|
-
if (matchValue != null) {
|
|
84
|
-
const tan = matchValue;
|
|
85
|
-
return (ActivePatterns_$007CRegex$007C_$007C(Pattern_TermAnnotationShortPattern, tan) != null) ? this$.TermAccessionOntobeeUrl : tan;
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
return "";
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
static toString(oa, asOntobeePurlUrlIfShort) {
|
|
92
|
-
let url;
|
|
93
|
-
const asOntobeePurlUrlIfShort_1 = defaultArg(asOntobeePurlUrlIfShort, false);
|
|
94
|
-
const TermName = defaultArg(oa.Name, "");
|
|
95
|
-
const TermSourceREF = defaultArg(oa.TermSourceREF, "");
|
|
96
|
-
return {
|
|
97
|
-
TermAccessionNumber: asOntobeePurlUrlIfShort_1 ? ((url = oa.TermAccessionAndOntobeeUrlIfShort, (url === "") ? defaultArg(oa.TermAccessionNumber, "") : url)) : defaultArg(oa.TermAccessionNumber, ""),
|
|
98
|
-
TermName: TermName,
|
|
99
|
-
TermSourceREF: TermSourceREF,
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
Equals(other) {
|
|
103
|
-
const this$ = this;
|
|
104
|
-
if (other instanceof OntologyAnnotation) {
|
|
105
|
-
return this$["System.IEquatable`1.Equals2B595"](other);
|
|
106
|
-
}
|
|
107
|
-
else if (typeof other === "string") {
|
|
108
|
-
const s = other;
|
|
109
|
-
return ((this$.NameText === s) ? true : (this$.TermAccessionShort === s)) ? true : (this$.TermAccessionOntobeeUrl === s);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return false;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
GetHashCode() {
|
|
116
|
-
const this$ = this;
|
|
117
|
-
return stringHash(this$.NameText + this$.TermAccessionShort) | 0;
|
|
118
|
-
}
|
|
119
|
-
static tryGetName(oa) {
|
|
120
|
-
return oa.Name;
|
|
121
|
-
}
|
|
122
|
-
static getNameText(oa) {
|
|
123
|
-
return oa.NameText;
|
|
124
|
-
}
|
|
125
|
-
static nameEqualsString(name, oa) {
|
|
126
|
-
return oa.NameText === name;
|
|
127
|
-
}
|
|
128
|
-
static tryGetByName(name, annotations) {
|
|
129
|
-
return tryFind((d) => equals(d.Name, name), annotations);
|
|
130
|
-
}
|
|
131
|
-
static existsByName(name, annotations) {
|
|
132
|
-
return exists((d) => equals(d.Name, name), annotations);
|
|
133
|
-
}
|
|
134
|
-
static add(onotolgyAnnotations, onotolgyAnnotation) {
|
|
135
|
-
return append(onotolgyAnnotations, singleton(onotolgyAnnotation));
|
|
136
|
-
}
|
|
137
|
-
static updateBy(predicate, updateOption, design, annotations) {
|
|
138
|
-
return exists(predicate, annotations) ? map((d) => {
|
|
139
|
-
if (predicate(d)) {
|
|
140
|
-
const this$ = updateOption;
|
|
141
|
-
const recordType_1 = d;
|
|
142
|
-
const recordType_2 = design;
|
|
143
|
-
switch (this$.tag) {
|
|
144
|
-
case 2:
|
|
145
|
-
return makeRecord(OntologyAnnotation_$reflection(), map2(Update_updateAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
146
|
-
case 1:
|
|
147
|
-
return makeRecord(OntologyAnnotation_$reflection(), map2(Update_updateOnlyByExisting, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
148
|
-
case 3:
|
|
149
|
-
return makeRecord(OntologyAnnotation_$reflection(), map2(Update_updateOnlyByExistingAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
150
|
-
default:
|
|
151
|
-
return recordType_2;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
return d;
|
|
156
|
-
}
|
|
157
|
-
}, annotations) : annotations;
|
|
158
|
-
}
|
|
159
|
-
static updateByName(updateOption, design, annotations) {
|
|
160
|
-
return OntologyAnnotation.updateBy((f) => equals(f.Name, design.Name), updateOption, design, annotations);
|
|
161
|
-
}
|
|
162
|
-
static removeByName(name, annotations) {
|
|
163
|
-
return filter((d) => !equals(d.Name, name), annotations);
|
|
164
|
-
}
|
|
165
|
-
static getComments(annotation) {
|
|
166
|
-
return annotation.Comments;
|
|
167
|
-
}
|
|
168
|
-
static mapComments(f, annotation) {
|
|
169
|
-
return new OntologyAnnotation(annotation.ID, annotation.Name, annotation.TermSourceREF, annotation.TermAccessionNumber, Option_mapDefault([], f, annotation.Comments));
|
|
170
|
-
}
|
|
171
|
-
static setComments(annotation, comments) {
|
|
172
|
-
return new OntologyAnnotation(annotation.ID, annotation.Name, annotation.TermSourceREF, annotation.TermAccessionNumber, comments);
|
|
173
|
-
}
|
|
174
|
-
Copy() {
|
|
175
|
-
const this$ = this;
|
|
176
|
-
const comments = map_1((array) => map_2((c) => c.Copy(), array), this$.Comments);
|
|
177
|
-
return OntologyAnnotation.make(this$.ID, this$.Name, this$.TermSourceREF, this$.TermAccessionNumber, comments);
|
|
178
|
-
}
|
|
179
|
-
Print() {
|
|
180
|
-
const this$ = this;
|
|
181
|
-
return toString(this$);
|
|
182
|
-
}
|
|
183
|
-
PrintCompact() {
|
|
184
|
-
const this$ = this;
|
|
185
|
-
return "OA " + this$.NameText;
|
|
186
|
-
}
|
|
187
|
-
"System.IEquatable`1.Equals2B595"(other) {
|
|
188
|
-
const this$ = this;
|
|
189
|
-
return ((this$.TermAccessionNumber != null) && (other.TermAccessionNumber != null)) ? ((other.TermAccessionShort === this$.TermAccessionShort) ? true : (other.TermAccessionOntobeeUrl === this$.TermAccessionOntobeeUrl)) : (((this$.Name != null) && (other.Name != null)) ? (other.NameText === this$.NameText) : ((((this$.TermAccessionNumber == null) && (other.TermAccessionNumber == null)) && (this$.Name == null)) && (other.Name == null)));
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export function OntologyAnnotation_$reflection() {
|
|
194
|
-
return record_type("ARCtrl.ISA.OntologyAnnotation", [], OntologyAnnotation, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["TermSourceREF", option_type(string_type)], ["TermAccessionNumber", option_type(string_type)], ["Comments", option_type(array_type(Comment$_$reflection()))]]);
|
|
195
|
-
}
|
|
196
|
-
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { filter, map, singleton, append, exists, tryFind } from "../../../fable_modules/fable-library.4.5.0/List.js";
|
|
2
|
-
import { equals } from "../../../fable_modules/fable-library.4.5.0/Util.js";
|
|
3
|
-
import { record_type, array_type, option_type, string_type, getRecordFields, makeRecord } from "../../../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
4
|
-
import { map as map_2, map2 } from "../../../fable_modules/fable-library.4.5.0/Array.js";
|
|
5
|
-
import { Update_updateOnlyByExistingAppend, Update_updateOnlyByExisting, Update_updateAppend } from "../Helper.js";
|
|
6
|
-
import { Option_mapDefault } from "../Helper.js";
|
|
7
|
-
import { map as map_1 } from "../../../fable_modules/fable-library.4.5.0/Option.js";
|
|
8
|
-
import { Record } from "../../../fable_modules/fable-library.4.5.0/Types.js";
|
|
9
|
-
import { Comment$_$reflection } from "./Comment.js";
|
|
10
|
-
|
|
11
|
-
export class OntologySourceReference extends Record {
|
|
12
|
-
constructor(Description, File, Name, Version, Comments) {
|
|
13
|
-
super();
|
|
14
|
-
this.Description = Description;
|
|
15
|
-
this.File = File;
|
|
16
|
-
this.Name = Name;
|
|
17
|
-
this.Version = Version;
|
|
18
|
-
this.Comments = Comments;
|
|
19
|
-
}
|
|
20
|
-
static make(description, file, name, version, comments) {
|
|
21
|
-
return new OntologySourceReference(description, file, name, version, comments);
|
|
22
|
-
}
|
|
23
|
-
static create(Description, File, Name, Version, Comments) {
|
|
24
|
-
return OntologySourceReference.make(Description, File, Name, Version, Comments);
|
|
25
|
-
}
|
|
26
|
-
static get empty() {
|
|
27
|
-
return OntologySourceReference.create();
|
|
28
|
-
}
|
|
29
|
-
static tryGetByName(name, ontologies) {
|
|
30
|
-
return tryFind((t) => equals(t.Name, name), ontologies);
|
|
31
|
-
}
|
|
32
|
-
static existsByName(name, ontologies) {
|
|
33
|
-
return exists((t) => equals(t.Name, name), ontologies);
|
|
34
|
-
}
|
|
35
|
-
static add(ontologySourceReference, ontologies) {
|
|
36
|
-
return append(ontologies, singleton(ontologySourceReference));
|
|
37
|
-
}
|
|
38
|
-
static updateBy(predicate, updateOption, ontologySourceReference, ontologies) {
|
|
39
|
-
return exists(predicate, ontologies) ? map((t) => {
|
|
40
|
-
if (predicate(t)) {
|
|
41
|
-
const this$ = updateOption;
|
|
42
|
-
const recordType_1 = t;
|
|
43
|
-
const recordType_2 = ontologySourceReference;
|
|
44
|
-
switch (this$.tag) {
|
|
45
|
-
case 2:
|
|
46
|
-
return makeRecord(OntologySourceReference_$reflection(), map2(Update_updateAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
47
|
-
case 1:
|
|
48
|
-
return makeRecord(OntologySourceReference_$reflection(), map2(Update_updateOnlyByExisting, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
49
|
-
case 3:
|
|
50
|
-
return makeRecord(OntologySourceReference_$reflection(), map2(Update_updateOnlyByExistingAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
51
|
-
default:
|
|
52
|
-
return recordType_2;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return t;
|
|
57
|
-
}
|
|
58
|
-
}, ontologies) : ontologies;
|
|
59
|
-
}
|
|
60
|
-
static updateByName(updateOption, ontologySourceReference, ontologies) {
|
|
61
|
-
return OntologySourceReference.updateBy((t) => equals(t.Name, ontologySourceReference.Name), updateOption, ontologySourceReference, ontologies);
|
|
62
|
-
}
|
|
63
|
-
static removeByName(name, ontologies) {
|
|
64
|
-
return filter((t) => !equals(t.Name, name), ontologies);
|
|
65
|
-
}
|
|
66
|
-
static getComments(ontology) {
|
|
67
|
-
return ontology.Comments;
|
|
68
|
-
}
|
|
69
|
-
static mapComments(f, ontology) {
|
|
70
|
-
return new OntologySourceReference(ontology.Description, ontology.File, ontology.Name, ontology.Version, Option_mapDefault([], f, ontology.Comments));
|
|
71
|
-
}
|
|
72
|
-
static setComments(ontology, comments) {
|
|
73
|
-
return new OntologySourceReference(ontology.Description, ontology.File, ontology.Name, ontology.Version, comments);
|
|
74
|
-
}
|
|
75
|
-
Copy() {
|
|
76
|
-
const this$ = this;
|
|
77
|
-
const comments = map_1((array) => map_2((c) => c.Copy(), array), this$.Comments);
|
|
78
|
-
return OntologySourceReference.make(this$.Description, this$.File, this$.Name, this$.Version, comments);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function OntologySourceReference_$reflection() {
|
|
83
|
-
return record_type("ARCtrl.ISA.OntologySourceReference", [], OntologySourceReference, () => [["Description", option_type(string_type)], ["File", option_type(string_type)], ["Name", option_type(string_type)], ["Version", option_type(string_type)], ["Comments", option_type(array_type(Comment$_$reflection()))]]);
|
|
84
|
-
}
|
|
85
|
-
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { append as append_1, tryPick, map2, map, tryFind } from "../../../fable_modules/fable-library.4.5.0/Array.js";
|
|
2
|
-
import { equals } from "../../../fable_modules/fable-library.4.5.0/Util.js";
|
|
3
|
-
import { singleton, append } from "../../../fable_modules/fable-library.4.5.0/List.js";
|
|
4
|
-
import { record_type, array_type, option_type, string_type, getRecordFields, makeRecord } from "../../../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
5
|
-
import { Update_updateOnlyByExistingAppend, Update_updateOnlyByExisting, Update_updateAppend } from "../Helper.js";
|
|
6
|
-
import { Option_fromValueWithDefault, Option_mapDefault } from "../Helper.js";
|
|
7
|
-
import { endsWith } from "../../../fable_modules/fable-library.4.5.0/String.js";
|
|
8
|
-
import { map as map_1, defaultArg, value as value_2 } from "../../../fable_modules/fable-library.4.5.0/Option.js";
|
|
9
|
-
import { Comment$_$reflection, Comment$ } from "./Comment.js";
|
|
10
|
-
import { Record } from "../../../fable_modules/fable-library.4.5.0/Types.js";
|
|
11
|
-
import { OntologyAnnotation_$reflection } from "./OntologyAnnotation.js";
|
|
12
|
-
|
|
13
|
-
export class Person extends Record {
|
|
14
|
-
constructor(ID, ORCID, LastName, FirstName, MidInitials, EMail, Phone, Fax, Address, Affiliation, Roles, Comments) {
|
|
15
|
-
super();
|
|
16
|
-
this.ID = ID;
|
|
17
|
-
this.ORCID = ORCID;
|
|
18
|
-
this.LastName = LastName;
|
|
19
|
-
this.FirstName = FirstName;
|
|
20
|
-
this.MidInitials = MidInitials;
|
|
21
|
-
this.EMail = EMail;
|
|
22
|
-
this.Phone = Phone;
|
|
23
|
-
this.Fax = Fax;
|
|
24
|
-
this.Address = Address;
|
|
25
|
-
this.Affiliation = Affiliation;
|
|
26
|
-
this.Roles = Roles;
|
|
27
|
-
this.Comments = Comments;
|
|
28
|
-
}
|
|
29
|
-
static make(id, orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments) {
|
|
30
|
-
return new Person(id, orcid, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles, comments);
|
|
31
|
-
}
|
|
32
|
-
static create(Id, ORCID, LastName, FirstName, MidInitials, Email, Phone, Fax, Address, Affiliation, Roles, Comments) {
|
|
33
|
-
return Person.make(Id, ORCID, LastName, FirstName, MidInitials, Email, Phone, Fax, Address, Affiliation, Roles, Comments);
|
|
34
|
-
}
|
|
35
|
-
static get empty() {
|
|
36
|
-
return Person.create();
|
|
37
|
-
}
|
|
38
|
-
static tryGetByFullName(firstName, midInitials, lastName, persons) {
|
|
39
|
-
return tryFind((p) => ((midInitials === "") ? (equals(p.FirstName, firstName) && equals(p.LastName, lastName)) : ((equals(p.FirstName, firstName) && equals(p.MidInitials, midInitials)) && equals(p.LastName, lastName))), persons);
|
|
40
|
-
}
|
|
41
|
-
static existsByFullName(firstName, midInitials, lastName, persons) {
|
|
42
|
-
return persons.some((p) => ((midInitials === "") ? (equals(p.FirstName, firstName) && equals(p.LastName, lastName)) : ((equals(p.FirstName, firstName) && equals(p.MidInitials, midInitials)) && equals(p.LastName, lastName))));
|
|
43
|
-
}
|
|
44
|
-
static add(persons, person) {
|
|
45
|
-
return append(persons, singleton(person));
|
|
46
|
-
}
|
|
47
|
-
static updateBy(predicate, updateOption, person, persons) {
|
|
48
|
-
return persons.some(predicate) ? map((p) => {
|
|
49
|
-
if (predicate(p)) {
|
|
50
|
-
const this$ = updateOption;
|
|
51
|
-
const recordType_1 = p;
|
|
52
|
-
const recordType_2 = person;
|
|
53
|
-
switch (this$.tag) {
|
|
54
|
-
case 2:
|
|
55
|
-
return makeRecord(Person_$reflection(), map2(Update_updateAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
56
|
-
case 1:
|
|
57
|
-
return makeRecord(Person_$reflection(), map2(Update_updateOnlyByExisting, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
58
|
-
case 3:
|
|
59
|
-
return makeRecord(Person_$reflection(), map2(Update_updateOnlyByExistingAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
60
|
-
default:
|
|
61
|
-
return recordType_2;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return p;
|
|
66
|
-
}
|
|
67
|
-
}, persons) : persons;
|
|
68
|
-
}
|
|
69
|
-
static updateByFullName(updateOption, person, persons) {
|
|
70
|
-
return Person.updateBy((p) => {
|
|
71
|
-
if (equals(p.FirstName, person.FirstName) && equals(p.MidInitials, person.MidInitials)) {
|
|
72
|
-
return equals(p.LastName, person.LastName);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
}, updateOption, person, persons);
|
|
78
|
-
}
|
|
79
|
-
static removeByFullName(firstName, midInitials, lastName, persons) {
|
|
80
|
-
return persons.filter((p) => ((midInitials === "") ? !(equals(p.FirstName, firstName) && equals(p.LastName, lastName)) : !((equals(p.FirstName, firstName) && equals(p.MidInitials, midInitials)) && equals(p.LastName, lastName))));
|
|
81
|
-
}
|
|
82
|
-
static getRoles(person) {
|
|
83
|
-
return person.Roles;
|
|
84
|
-
}
|
|
85
|
-
static mapRoles(f, person) {
|
|
86
|
-
return new Person(person.ID, person.ORCID, person.LastName, person.FirstName, person.MidInitials, person.EMail, person.Phone, person.Fax, person.Address, person.Affiliation, Option_mapDefault([], f, person.Roles), person.Comments);
|
|
87
|
-
}
|
|
88
|
-
static setRoles(person, roles) {
|
|
89
|
-
return new Person(person.ID, person.ORCID, person.LastName, person.FirstName, person.MidInitials, person.EMail, person.Phone, person.Fax, person.Address, person.Affiliation, roles, person.Comments);
|
|
90
|
-
}
|
|
91
|
-
static getComments(person) {
|
|
92
|
-
return person.Comments;
|
|
93
|
-
}
|
|
94
|
-
static mapComments(f, person) {
|
|
95
|
-
return new Person(person.ID, person.ORCID, person.LastName, person.FirstName, person.MidInitials, person.EMail, person.Phone, person.Fax, person.Address, person.Affiliation, person.Roles, Option_mapDefault([], f, person.Comments));
|
|
96
|
-
}
|
|
97
|
-
static setComments(person, comments) {
|
|
98
|
-
return new Person(person.ID, person.ORCID, person.LastName, person.FirstName, person.MidInitials, person.EMail, person.Phone, person.Fax, person.Address, person.Affiliation, person.Roles, comments);
|
|
99
|
-
}
|
|
100
|
-
static get orcidKey() {
|
|
101
|
-
return "ORCID";
|
|
102
|
-
}
|
|
103
|
-
static setOrcidFromComments(person) {
|
|
104
|
-
const isOrcidComment = (c) => {
|
|
105
|
-
if (c.Name != null) {
|
|
106
|
-
return endsWith(value_2(c.Name).toLocaleUpperCase(), Person.orcidKey);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
const patternInput = defaultArg(map_1((comments) => [tryPick((c_1) => {
|
|
113
|
-
if (isOrcidComment(c_1)) {
|
|
114
|
-
return c_1.Value;
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
return void 0;
|
|
118
|
-
}
|
|
119
|
-
}, comments), Option_fromValueWithDefault([], comments.filter((arg) => !isOrcidComment(arg)))], person.Comments), [void 0, person.Comments]);
|
|
120
|
-
return new Person(person.ID, patternInput[0], person.LastName, person.FirstName, person.MidInitials, person.EMail, person.Phone, person.Fax, person.Address, person.Affiliation, person.Roles, patternInput[1]);
|
|
121
|
-
}
|
|
122
|
-
static setCommentFromORCID(person) {
|
|
123
|
-
let matchValue, matchValue_1, orcid_1, comments, orcid;
|
|
124
|
-
return new Person(person.ID, person.ORCID, person.LastName, person.FirstName, person.MidInitials, person.EMail, person.Phone, person.Fax, person.Address, person.Affiliation, person.Roles, (matchValue = person.ORCID, (matchValue_1 = person.Comments, (matchValue == null) ? matchValue_1 : ((matchValue_1 == null) ? ((orcid_1 = matchValue, [Comment$.create(void 0, Person.orcidKey, orcid_1)])) : ((comments = matchValue_1, (orcid = matchValue, append_1(comments, [Comment$.create(void 0, Person.orcidKey, orcid)]))))))));
|
|
125
|
-
}
|
|
126
|
-
Copy() {
|
|
127
|
-
const this$ = this;
|
|
128
|
-
const nextComments = map_1((array) => map((c) => c.Copy(), array), this$.Comments);
|
|
129
|
-
const roles = map_1((array_1) => map((c_1) => c_1.Copy(), array_1), this$.Roles);
|
|
130
|
-
return Person.make(this$.ID, this$.ORCID, this$.LastName, this$.FirstName, this$.MidInitials, this$.EMail, this$.Phone, this$.Fax, this$.Address, this$.Affiliation, roles, nextComments);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export function Person_$reflection() {
|
|
135
|
-
return record_type("ARCtrl.ISA.Person", [], Person, () => [["ID", option_type(string_type)], ["ORCID", option_type(string_type)], ["LastName", option_type(string_type)], ["FirstName", option_type(string_type)], ["MidInitials", option_type(string_type)], ["EMail", option_type(string_type)], ["Phone", option_type(string_type)], ["Fax", option_type(string_type)], ["Address", option_type(string_type)], ["Affiliation", option_type(string_type)], ["Roles", option_type(array_type(OntologyAnnotation_$reflection()))], ["Comments", option_type(array_type(Comment$_$reflection()))]]);
|
|
136
|
-
}
|
|
137
|
-
|