@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.4
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/README.md +2 -0
- package/dist/ts/index.js +63 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
- package/dist/ts/ts/ARC.js +914 -0
- package/dist/ts/ts/Contract/ARC.js +52 -0
- package/dist/ts/ts/Contract/ArcAssay.js +80 -0
- package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
- package/dist/ts/ts/Contract/ArcRun.js +76 -0
- package/dist/ts/ts/Contract/ArcStudy.js +76 -0
- package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
- package/dist/ts/ts/Contract/Contract.js +45 -0
- package/dist/ts/ts/Contract/Datamap.js +221 -0
- package/dist/ts/ts/Contract/Git.js +57 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
- package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
- package/dist/ts/ts/Conversion.js +1247 -0
- package/dist/ts/ts/Core/ArcTypes.js +3393 -0
- package/dist/ts/ts/Core/Comment.js +91 -0
- package/dist/ts/ts/Core/CommentList.js +27 -0
- package/dist/ts/ts/Core/Conversion.js +923 -0
- package/dist/ts/ts/Core/Data.js +179 -0
- package/dist/ts/ts/Core/DataContext.js +108 -0
- package/dist/ts/ts/Core/DataFile.js +50 -0
- package/dist/ts/ts/Core/DataMap.js +53 -0
- package/dist/ts/ts/Core/Helper/Collections.js +323 -0
- package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
- package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
- package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
- package/dist/ts/ts/Core/Helper/Regex.js +296 -0
- package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
- package/dist/ts/ts/Core/Helper/Url.js +32 -0
- package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
- package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
- package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
- package/dist/ts/ts/Core/Person.js +183 -0
- package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
- package/dist/ts/ts/Core/Process/Component.js +121 -0
- package/dist/ts/ts/Core/Process/Factor.js +104 -0
- package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
- package/dist/ts/ts/Core/Process/Material.js +49 -0
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
- package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
- package/dist/ts/ts/Core/Process/Process.js +136 -0
- package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
- package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
- package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
- package/dist/ts/ts/Core/Process/Protocol.js +54 -0
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
- package/dist/ts/ts/Core/Process/Sample.js +44 -0
- package/dist/ts/ts/Core/Process/Source.js +38 -0
- package/dist/ts/ts/Core/Publication.js +108 -0
- package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
- package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
- package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
- package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
- package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
- package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
- package/dist/ts/ts/Core/Template.js +180 -0
- package/dist/ts/ts/Core/Templates.js +75 -0
- package/dist/ts/ts/Core/URI.js +8 -0
- package/dist/ts/ts/Core/Value.js +194 -0
- package/dist/ts/ts/CrossAsync.js +20 -0
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
- package/dist/ts/ts/FileSystem/Path.js +36 -0
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +221 -0
- package/dist/ts/ts/Json/Comment.d.ts +1 -1
- package/dist/ts/ts/Json/Comment.js +112 -0
- package/dist/ts/ts/Json/Data.d.ts +1 -1
- package/dist/ts/ts/Json/Data.js +138 -0
- package/dist/ts/ts/Json/DataFile.d.ts +1 -1
- package/dist/ts/ts/Json/DataFile.js +55 -0
- package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
- package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
- package/dist/ts/ts/Json/Decode.d.ts +2 -2
- package/dist/ts/ts/Json/Decode.js +209 -0
- package/dist/ts/ts/Json/Encode.d.ts +1 -1
- package/dist/ts/ts/Json/Encode.js +65 -0
- package/dist/ts/ts/Json/IDTable.d.ts +1 -1
- package/dist/ts/ts/Json/IDTable.js +28 -0
- package/dist/ts/ts/Json/Investigation.d.ts +1 -1
- package/dist/ts/ts/Json/Investigation.js +229 -0
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
- package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
- package/dist/ts/ts/Json/Person.d.ts +1 -1
- package/dist/ts/ts/Json/Person.js +316 -0
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
- package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Component.js +41 -0
- package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +53 -0
- package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
- package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Material.js +112 -0
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
- package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
- package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Process.js +103 -0
- package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
- package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
- package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +166 -0
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
- package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +165 -0
- package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Source.js +133 -0
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
- package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Value.js +41 -0
- package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +280 -0
- package/dist/ts/ts/Json/Publication.d.ts +1 -1
- package/dist/ts/ts/Json/Publication.js +123 -0
- package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
- package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
- package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
- package/dist/ts/ts/Json/StringTable.d.ts +1 -1
- package/dist/ts/ts/Json/StringTable.js +66 -0
- package/dist/ts/ts/Json/Study.d.ts +1 -1
- package/dist/ts/ts/Json/Study.js +326 -0
- package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
- package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CellTable.js +53 -0
- package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
- package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
- package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
- package/dist/ts/ts/Json/Table/IOType.js +15 -0
- package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +50 -0
- package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/Json/Table/Templates.js +15 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
- package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
- package/dist/ts/ts/Json.js +171 -0
- package/dist/ts/ts/JsonIO/Assay.js +77 -0
- package/dist/ts/ts/JsonIO/Investigation.js +77 -0
- package/dist/ts/ts/JsonIO/LDObject.js +77 -0
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
- package/dist/ts/ts/JsonIO/Study.js +77 -0
- package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
- package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
- package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
- package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
- package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
- package/dist/ts/ts/ROCrate/Helper.js +7 -0
- package/dist/ts/ts/ROCrate/LDContext.js +288 -0
- package/dist/ts/ts/ROCrate/LDObject.js +855 -0
- package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
- package/dist/ts/ts/ROCrateIO.d.ts +1 -1
- package/dist/ts/ts/ROCrateIO.js +58 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
- package/dist/ts/ts/Template.Web.js +22 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
- package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
- package/dist/ts/ts/Xlsx.d.ts +1 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +91 -0
- package/dist/ts/ts/Yaml/Encode.js +8 -0
- package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
- package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
- package/package.json +10 -7
- package/dist/ts/__vite-browser-external-2447137e.js +0 -4
- package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
- package/dist/ts/arctrl.cjs.js +0 -5691
- package/dist/ts/arctrl.es.js +0 -35562
- package/dist/ts/arctrl.umd.js +0 -5691
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { unwrap, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { LDNode } from '../LDObject.js';
|
|
3
|
+
import { toList, delay, append, singleton, empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
4
|
+
import { isEmpty, reduce } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
|
+
import { clean } from '../Helper.js';
|
|
6
|
+
import { createMissingIdentifier } from '../../Core/Helper/Identifier.js';
|
|
7
|
+
import { toText, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
8
|
+
|
|
9
|
+
class LDPostalAddress {
|
|
10
|
+
constructor() {
|
|
11
|
+
}
|
|
12
|
+
static get schemaType() {
|
|
13
|
+
return "http://schema.org/PostalAddress";
|
|
14
|
+
}
|
|
15
|
+
static get addressCountry() {
|
|
16
|
+
return "http://schema.org/addressCountry";
|
|
17
|
+
}
|
|
18
|
+
static get postalCode() {
|
|
19
|
+
return "http://schema.org/postalCode";
|
|
20
|
+
}
|
|
21
|
+
static get streetAddress() {
|
|
22
|
+
return "http://schema.org/streetAddress";
|
|
23
|
+
}
|
|
24
|
+
static tryGetAddressCountryAsString(s, context) {
|
|
25
|
+
const matchValue = s.TryGetPropertyAsSingleton(LDPostalAddress.addressCountry, unwrap(context));
|
|
26
|
+
let matchResult, n;
|
|
27
|
+
if (matchValue != null) {
|
|
28
|
+
if (typeof value(matchValue) === "string") {
|
|
29
|
+
matchResult = 0;
|
|
30
|
+
n = value(matchValue);
|
|
31
|
+
} else {
|
|
32
|
+
matchResult = 1;
|
|
33
|
+
}
|
|
34
|
+
} else {
|
|
35
|
+
matchResult = 1;
|
|
36
|
+
}
|
|
37
|
+
switch (matchResult) {
|
|
38
|
+
case 0:
|
|
39
|
+
return n;
|
|
40
|
+
default:
|
|
41
|
+
return void 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
static getAddressCountryAsString(s, context) {
|
|
45
|
+
const matchValue = s.TryGetPropertyAsSingleton(LDPostalAddress.addressCountry, unwrap(context));
|
|
46
|
+
if (matchValue == null) {
|
|
47
|
+
throw new Error(`Could not access property \`addressCountry\` of object with @id \`${s.Id}\``);
|
|
48
|
+
} else if (typeof value(matchValue) === "string") {
|
|
49
|
+
const n = value(matchValue);
|
|
50
|
+
return n;
|
|
51
|
+
} else {
|
|
52
|
+
throw new Error(`Value of property \`addressCountry\` of object with @id \`${s.Id}\` should have been a string`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
static setAddressCountryAsString(s, n) {
|
|
56
|
+
s.SetProperty(LDPostalAddress.addressCountry, n);
|
|
57
|
+
}
|
|
58
|
+
static tryGetPostalCodeAsString(s, context) {
|
|
59
|
+
const matchValue = s.TryGetPropertyAsSingleton(LDPostalAddress.postalCode, unwrap(context));
|
|
60
|
+
let matchResult, n;
|
|
61
|
+
if (matchValue != null) {
|
|
62
|
+
if (typeof value(matchValue) === "string") {
|
|
63
|
+
matchResult = 0;
|
|
64
|
+
n = value(matchValue);
|
|
65
|
+
} else {
|
|
66
|
+
matchResult = 1;
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
matchResult = 1;
|
|
70
|
+
}
|
|
71
|
+
switch (matchResult) {
|
|
72
|
+
case 0:
|
|
73
|
+
return n;
|
|
74
|
+
default:
|
|
75
|
+
return void 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
static getPostalCodeAsString(s, context) {
|
|
79
|
+
const matchValue = s.TryGetPropertyAsSingleton(LDPostalAddress.postalCode, unwrap(context));
|
|
80
|
+
if (matchValue == null) {
|
|
81
|
+
throw new Error(`Could not access property \`postalCode\` of object with @id \`${s.Id}\``);
|
|
82
|
+
} else if (typeof value(matchValue) === "string") {
|
|
83
|
+
const n = value(matchValue);
|
|
84
|
+
return n;
|
|
85
|
+
} else {
|
|
86
|
+
throw new Error(`Value of property \`postalCode\` of object with @id \`${s.Id}\` should have been a string`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
static setPostalCodeAsString(s, n) {
|
|
90
|
+
s.SetProperty(LDPostalAddress.postalCode, n);
|
|
91
|
+
}
|
|
92
|
+
static tryGetStreetAddressAsString(s, context) {
|
|
93
|
+
const matchValue = s.TryGetPropertyAsSingleton(LDPostalAddress.streetAddress, unwrap(context));
|
|
94
|
+
let matchResult, n;
|
|
95
|
+
if (matchValue != null) {
|
|
96
|
+
if (typeof value(matchValue) === "string") {
|
|
97
|
+
matchResult = 0;
|
|
98
|
+
n = value(matchValue);
|
|
99
|
+
} else {
|
|
100
|
+
matchResult = 1;
|
|
101
|
+
}
|
|
102
|
+
} else {
|
|
103
|
+
matchResult = 1;
|
|
104
|
+
}
|
|
105
|
+
switch (matchResult) {
|
|
106
|
+
case 0:
|
|
107
|
+
return n;
|
|
108
|
+
default:
|
|
109
|
+
return void 0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
static getStreetAddressAsString(s, context) {
|
|
113
|
+
const matchValue = s.TryGetPropertyAsSingleton(LDPostalAddress.streetAddress, unwrap(context));
|
|
114
|
+
if (matchValue == null) {
|
|
115
|
+
throw new Error(`Could not access property \`streetAddress\` of object with @id \`${s.Id}\``);
|
|
116
|
+
} else if (typeof value(matchValue) === "string") {
|
|
117
|
+
const n = value(matchValue);
|
|
118
|
+
return n;
|
|
119
|
+
} else {
|
|
120
|
+
throw new Error(`Value of property \`streetAddress\` of object with @id \`${s.Id}\` should have been a string`);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
static setStreetAddressAsString(s, n) {
|
|
124
|
+
s.SetProperty(LDPostalAddress.streetAddress, n);
|
|
125
|
+
}
|
|
126
|
+
static genID(addressCountry, postalCode, streetAddress) {
|
|
127
|
+
let arg;
|
|
128
|
+
const items = toList(delay(() => append(addressCountry != null ? singleton("addressCountry") : empty(), delay(() => append(postalCode != null ? singleton("postalCode") : empty(), delay(() => streetAddress != null ? singleton("streetAddress") : empty()))))));
|
|
129
|
+
return clean(isEmpty(items) ? createMissingIdentifier() : (arg = reduce((acc, x) => `${acc}_${x}`, items), toText(printf("#%s"))(arg)));
|
|
130
|
+
}
|
|
131
|
+
static validate(o, context) {
|
|
132
|
+
return o.HasType(LDPostalAddress.schemaType, unwrap(context));
|
|
133
|
+
}
|
|
134
|
+
static create(id, addressCountry, postalCode, streetAddress, context) {
|
|
135
|
+
const s = new LDNode(id == null ? LDPostalAddress.genID(unwrap(addressCountry), unwrap(postalCode), unwrap(streetAddress)) : value(id), [LDPostalAddress.schemaType], void 0, unwrap(context));
|
|
136
|
+
s.SetOptionalProperty(LDPostalAddress.addressCountry, addressCountry);
|
|
137
|
+
s.SetOptionalProperty(LDPostalAddress.postalCode, postalCode);
|
|
138
|
+
s.SetOptionalProperty(LDPostalAddress.streetAddress, streetAddress);
|
|
139
|
+
return s;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export { LDPostalAddress };
|
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import { unwrap, value, defaultArg, toArray } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { LDNode } from '../LDObject.js';
|
|
3
|
+
import { ResizeArray_map } from '../../Core/Helper/Collections.js';
|
|
4
|
+
import { contains } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
5
|
+
import { stringHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
6
|
+
import { clean } from '../Helper.js';
|
|
7
|
+
import { iterate } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
8
|
+
|
|
9
|
+
class LDPropertyValue {
|
|
10
|
+
constructor() {
|
|
11
|
+
}
|
|
12
|
+
static get schemaType() {
|
|
13
|
+
return "http://schema.org/PropertyValue";
|
|
14
|
+
}
|
|
15
|
+
static get name() {
|
|
16
|
+
return "http://schema.org/name";
|
|
17
|
+
}
|
|
18
|
+
static get value() {
|
|
19
|
+
return "http://schema.org/value";
|
|
20
|
+
}
|
|
21
|
+
static get propertyID() {
|
|
22
|
+
return "http://schema.org/propertyID";
|
|
23
|
+
}
|
|
24
|
+
static get unitCode() {
|
|
25
|
+
return "http://schema.org/unitCode";
|
|
26
|
+
}
|
|
27
|
+
static get unitText() {
|
|
28
|
+
return "http://schema.org/unitText";
|
|
29
|
+
}
|
|
30
|
+
static get valueReference() {
|
|
31
|
+
return "http://schema.org/valueReference";
|
|
32
|
+
}
|
|
33
|
+
static get measurementMethod() {
|
|
34
|
+
return "http://schema.org/measurementMethod";
|
|
35
|
+
}
|
|
36
|
+
static get description() {
|
|
37
|
+
return "http://schema.org/description";
|
|
38
|
+
}
|
|
39
|
+
static get alternateName() {
|
|
40
|
+
return "http://schema.org/alternateName";
|
|
41
|
+
}
|
|
42
|
+
static get subjectOf() {
|
|
43
|
+
return "http://schema.org/subjectOf";
|
|
44
|
+
}
|
|
45
|
+
static get disambiguatingDescription() {
|
|
46
|
+
return "http://schema.org/disambiguatingDescription";
|
|
47
|
+
}
|
|
48
|
+
static get doiKey() {
|
|
49
|
+
return "DOI";
|
|
50
|
+
}
|
|
51
|
+
static get doiURL() {
|
|
52
|
+
return "http://purl.obolibrary.org/obo/OBI_0002110";
|
|
53
|
+
}
|
|
54
|
+
static get pubmedIDKey() {
|
|
55
|
+
return "PubMedID";
|
|
56
|
+
}
|
|
57
|
+
static get pubmedIDURL() {
|
|
58
|
+
return "http://purl.obolibrary.org/obo/OBI_0001617";
|
|
59
|
+
}
|
|
60
|
+
static tryGetNameAsString(pv, context) {
|
|
61
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.name, unwrap(context));
|
|
62
|
+
let matchResult, n;
|
|
63
|
+
if (matchValue != null) {
|
|
64
|
+
if (typeof value(matchValue) === "string") {
|
|
65
|
+
matchResult = 0;
|
|
66
|
+
n = value(matchValue);
|
|
67
|
+
} else {
|
|
68
|
+
matchResult = 1;
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
matchResult = 1;
|
|
72
|
+
}
|
|
73
|
+
switch (matchResult) {
|
|
74
|
+
case 0:
|
|
75
|
+
return n;
|
|
76
|
+
default:
|
|
77
|
+
return void 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
static getNameAsString(pv, context) {
|
|
81
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.name, unwrap(context));
|
|
82
|
+
if (matchValue != null) {
|
|
83
|
+
if (typeof value(matchValue) === "string") {
|
|
84
|
+
const n = value(matchValue);
|
|
85
|
+
return n;
|
|
86
|
+
} else {
|
|
87
|
+
throw new Error(`Property of \`name\` of object with @id \`${pv.Id}\` was not a string`);
|
|
88
|
+
}
|
|
89
|
+
} else {
|
|
90
|
+
throw new Error(`Could not access property \`name\` of object with @id \`${pv.Id}\``);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
static setNameAsString(pv, name, context) {
|
|
94
|
+
return pv.SetProperty(LDPropertyValue.name, name, unwrap(context));
|
|
95
|
+
}
|
|
96
|
+
static tryGetValueAsString(pv, context) {
|
|
97
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.value, unwrap(context));
|
|
98
|
+
let matchResult, v;
|
|
99
|
+
if (matchValue != null) {
|
|
100
|
+
if (typeof value(matchValue) === "string") {
|
|
101
|
+
matchResult = 0;
|
|
102
|
+
v = value(matchValue);
|
|
103
|
+
} else {
|
|
104
|
+
matchResult = 1;
|
|
105
|
+
}
|
|
106
|
+
} else {
|
|
107
|
+
matchResult = 1;
|
|
108
|
+
}
|
|
109
|
+
switch (matchResult) {
|
|
110
|
+
case 0:
|
|
111
|
+
return v;
|
|
112
|
+
default:
|
|
113
|
+
return void 0;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
static getValueAsString(pv, context) {
|
|
117
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.value, unwrap(context));
|
|
118
|
+
if (matchValue != null) {
|
|
119
|
+
if (typeof value(matchValue) === "string") {
|
|
120
|
+
const v = value(matchValue);
|
|
121
|
+
return v;
|
|
122
|
+
} else {
|
|
123
|
+
throw new Error(`Property of \`value\` of object with @id \`${pv.Id}\` was not a string`);
|
|
124
|
+
}
|
|
125
|
+
} else {
|
|
126
|
+
throw new Error(`Could not access property \`value\` of object with @id \`${pv.Id}\``);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
static setValueAsString(pv, value, context) {
|
|
130
|
+
return pv.SetProperty(LDPropertyValue.value, value, unwrap(context));
|
|
131
|
+
}
|
|
132
|
+
static tryGetPropertyIDAsString(pv, context) {
|
|
133
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.propertyID, unwrap(context));
|
|
134
|
+
let matchResult, pid;
|
|
135
|
+
if (matchValue != null) {
|
|
136
|
+
if (typeof value(matchValue) === "string") {
|
|
137
|
+
matchResult = 0;
|
|
138
|
+
pid = value(matchValue);
|
|
139
|
+
} else {
|
|
140
|
+
matchResult = 1;
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
matchResult = 1;
|
|
144
|
+
}
|
|
145
|
+
switch (matchResult) {
|
|
146
|
+
case 0:
|
|
147
|
+
return pid;
|
|
148
|
+
default:
|
|
149
|
+
return void 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
static setPropertyIDAsString(pv, propertyID, context) {
|
|
153
|
+
return pv.SetProperty(LDPropertyValue.propertyID, propertyID, unwrap(context));
|
|
154
|
+
}
|
|
155
|
+
static tryGetUnitCodeAsString(pv, context) {
|
|
156
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.unitCode, unwrap(context));
|
|
157
|
+
let matchResult, uc;
|
|
158
|
+
if (matchValue != null) {
|
|
159
|
+
if (typeof value(matchValue) === "string") {
|
|
160
|
+
matchResult = 0;
|
|
161
|
+
uc = value(matchValue);
|
|
162
|
+
} else {
|
|
163
|
+
matchResult = 1;
|
|
164
|
+
}
|
|
165
|
+
} else {
|
|
166
|
+
matchResult = 1;
|
|
167
|
+
}
|
|
168
|
+
switch (matchResult) {
|
|
169
|
+
case 0:
|
|
170
|
+
return uc;
|
|
171
|
+
default:
|
|
172
|
+
return void 0;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
static setUnitCodeAsString(pv, unitCode, context) {
|
|
176
|
+
return pv.SetProperty(LDPropertyValue.unitCode, unitCode, unwrap(context));
|
|
177
|
+
}
|
|
178
|
+
static tryGetUnitTextAsString(pv, context) {
|
|
179
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.unitText, unwrap(context));
|
|
180
|
+
let matchResult, ut;
|
|
181
|
+
if (matchValue != null) {
|
|
182
|
+
if (typeof value(matchValue) === "string") {
|
|
183
|
+
matchResult = 0;
|
|
184
|
+
ut = value(matchValue);
|
|
185
|
+
} else {
|
|
186
|
+
matchResult = 1;
|
|
187
|
+
}
|
|
188
|
+
} else {
|
|
189
|
+
matchResult = 1;
|
|
190
|
+
}
|
|
191
|
+
switch (matchResult) {
|
|
192
|
+
case 0:
|
|
193
|
+
return ut;
|
|
194
|
+
default:
|
|
195
|
+
return void 0;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
static setUnitTextAsString(pv, unitText, context) {
|
|
199
|
+
return pv.SetProperty(LDPropertyValue.unitText, unitText, unwrap(context));
|
|
200
|
+
}
|
|
201
|
+
static tryGetValueReferenceAsString(pv, context) {
|
|
202
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.valueReference, unwrap(context));
|
|
203
|
+
let matchResult, vr;
|
|
204
|
+
if (matchValue != null) {
|
|
205
|
+
if (typeof value(matchValue) === "string") {
|
|
206
|
+
matchResult = 0;
|
|
207
|
+
vr = value(matchValue);
|
|
208
|
+
} else {
|
|
209
|
+
matchResult = 1;
|
|
210
|
+
}
|
|
211
|
+
} else {
|
|
212
|
+
matchResult = 1;
|
|
213
|
+
}
|
|
214
|
+
switch (matchResult) {
|
|
215
|
+
case 0:
|
|
216
|
+
return vr;
|
|
217
|
+
default:
|
|
218
|
+
return void 0;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
static setValueReferenceAsString(pv, valueReference, context) {
|
|
222
|
+
return pv.SetProperty(LDPropertyValue.valueReference, valueReference, unwrap(context));
|
|
223
|
+
}
|
|
224
|
+
static tryGetMeasurementMethodAsString(pv, context) {
|
|
225
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.measurementMethod, unwrap(context));
|
|
226
|
+
let matchResult, vr;
|
|
227
|
+
if (matchValue != null) {
|
|
228
|
+
if (typeof value(matchValue) === "string") {
|
|
229
|
+
matchResult = 0;
|
|
230
|
+
vr = value(matchValue);
|
|
231
|
+
} else {
|
|
232
|
+
matchResult = 1;
|
|
233
|
+
}
|
|
234
|
+
} else {
|
|
235
|
+
matchResult = 1;
|
|
236
|
+
}
|
|
237
|
+
switch (matchResult) {
|
|
238
|
+
case 0:
|
|
239
|
+
return vr;
|
|
240
|
+
default:
|
|
241
|
+
return void 0;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
static setMeasurementMethodAsString(pv, measurementMethod, context) {
|
|
245
|
+
return pv.SetProperty(LDPropertyValue.measurementMethod, measurementMethod, unwrap(context));
|
|
246
|
+
}
|
|
247
|
+
static tryGetDescriptionAsString(pv, context) {
|
|
248
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.description, unwrap(context));
|
|
249
|
+
let matchResult, vr;
|
|
250
|
+
if (matchValue != null) {
|
|
251
|
+
if (typeof value(matchValue) === "string") {
|
|
252
|
+
matchResult = 0;
|
|
253
|
+
vr = value(matchValue);
|
|
254
|
+
} else {
|
|
255
|
+
matchResult = 1;
|
|
256
|
+
}
|
|
257
|
+
} else {
|
|
258
|
+
matchResult = 1;
|
|
259
|
+
}
|
|
260
|
+
switch (matchResult) {
|
|
261
|
+
case 0:
|
|
262
|
+
return vr;
|
|
263
|
+
default:
|
|
264
|
+
return void 0;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
static setDescriptionAsString(pv, description, context) {
|
|
268
|
+
return pv.SetProperty(LDPropertyValue.description, description, unwrap(context));
|
|
269
|
+
}
|
|
270
|
+
static tryGetAlternateNameAsString(pv, context) {
|
|
271
|
+
const matchValue = pv.TryGetPropertyAsSingleton(LDPropertyValue.alternateName, unwrap(context));
|
|
272
|
+
let matchResult, vr;
|
|
273
|
+
if (matchValue != null) {
|
|
274
|
+
if (typeof value(matchValue) === "string") {
|
|
275
|
+
matchResult = 0;
|
|
276
|
+
vr = value(matchValue);
|
|
277
|
+
} else {
|
|
278
|
+
matchResult = 1;
|
|
279
|
+
}
|
|
280
|
+
} else {
|
|
281
|
+
matchResult = 1;
|
|
282
|
+
}
|
|
283
|
+
switch (matchResult) {
|
|
284
|
+
case 0:
|
|
285
|
+
return vr;
|
|
286
|
+
default:
|
|
287
|
+
return void 0;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
static setAlternateNameAsString(pv, alternateName, context) {
|
|
291
|
+
return pv.SetProperty(LDPropertyValue.alternateName, alternateName, unwrap(context));
|
|
292
|
+
}
|
|
293
|
+
static getDisambiguatingDescriptionsAsString(pv, context) {
|
|
294
|
+
return ResizeArray_map((o_1) => o_1, pv.GetPropertyValues(LDPropertyValue.disambiguatingDescription, (o, context_1) => typeof o === "string", unwrap(context)));
|
|
295
|
+
}
|
|
296
|
+
static setDisambiguatingDescriptionsAsString(lp, disambiguatingDescriptions, context) {
|
|
297
|
+
return lp.SetProperty(LDPropertyValue.disambiguatingDescription, disambiguatingDescriptions, unwrap(context));
|
|
298
|
+
}
|
|
299
|
+
static tryGetSubjectOf(pv, graph, context) {
|
|
300
|
+
const matchValue = pv.TryGetPropertyAsSingleNode(LDPropertyValue.subjectOf, unwrap(graph), unwrap(context));
|
|
301
|
+
return matchValue != null ? value(matchValue) : void 0;
|
|
302
|
+
}
|
|
303
|
+
static setSubjectOf(pv, subjectOf, context) {
|
|
304
|
+
return pv.SetProperty(LDPropertyValue.subjectOf, subjectOf, unwrap(context));
|
|
305
|
+
}
|
|
306
|
+
static validate(pv, context) {
|
|
307
|
+
return pv.HasType(LDPropertyValue.schemaType, unwrap(context)) && pv.HasProperty(LDPropertyValue.name, unwrap(context));
|
|
308
|
+
}
|
|
309
|
+
static validateComponent(pv, context) {
|
|
310
|
+
return LDPropertyValue.validate(pv, unwrap(context)) && contains("Component", pv.AdditionalType, {
|
|
311
|
+
Equals: (x, y) => x === y,
|
|
312
|
+
GetHashCode: stringHash
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
static validateParameterValue(pv, context) {
|
|
316
|
+
return LDPropertyValue.validate(pv, unwrap(context)) && (contains("ParameterValue", pv.AdditionalType, {
|
|
317
|
+
Equals: (x, y) => x === y,
|
|
318
|
+
GetHashCode: stringHash
|
|
319
|
+
}) ? true : contains("ProcessParameterValue", pv.AdditionalType, {
|
|
320
|
+
Equals: (x_1, y_1) => x_1 === y_1,
|
|
321
|
+
GetHashCode: stringHash
|
|
322
|
+
}));
|
|
323
|
+
}
|
|
324
|
+
static validateCharacteristicValue(pv, context) {
|
|
325
|
+
return LDPropertyValue.validate(pv, unwrap(context)) && (contains("CharacteristicValue", pv.AdditionalType, {
|
|
326
|
+
Equals: (x, y) => x === y,
|
|
327
|
+
GetHashCode: stringHash
|
|
328
|
+
}) ? true : contains("MaterialAttributeValue", pv.AdditionalType, {
|
|
329
|
+
Equals: (x_1, y_1) => x_1 === y_1,
|
|
330
|
+
GetHashCode: stringHash
|
|
331
|
+
}));
|
|
332
|
+
}
|
|
333
|
+
static validateFactorValue(pv, context) {
|
|
334
|
+
return LDPropertyValue.validate(pv, unwrap(context)) && contains("FactorValue", pv.AdditionalType, {
|
|
335
|
+
Equals: (x, y) => x === y,
|
|
336
|
+
GetHashCode: stringHash
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
static validateFragmentDescriptor(pv, context) {
|
|
340
|
+
return LDPropertyValue.validate(pv, unwrap(context)) && LDPropertyValue.getNameAsString(pv, unwrap(context)) === "FragmentDescriptor";
|
|
341
|
+
}
|
|
342
|
+
static validateDOI(pv, context) {
|
|
343
|
+
let id;
|
|
344
|
+
if (LDPropertyValue.validate(pv, unwrap(context))) {
|
|
345
|
+
const matchValue = LDPropertyValue.tryGetNameAsString(pv, unwrap(context));
|
|
346
|
+
const matchValue_1 = LDPropertyValue.tryGetValueAsString(pv, unwrap(context));
|
|
347
|
+
const matchValue_2 = LDPropertyValue.tryGetPropertyIDAsString(pv, unwrap(context));
|
|
348
|
+
let matchResult;
|
|
349
|
+
if (matchValue != null) {
|
|
350
|
+
if (matchValue_1 != null) {
|
|
351
|
+
if (matchValue_2 != null) {
|
|
352
|
+
if (value(matchValue_1), id = value(matchValue_2), value(matchValue) === LDPropertyValue.doiKey && id === LDPropertyValue.doiURL) {
|
|
353
|
+
matchResult = 0;
|
|
354
|
+
value(matchValue_2);
|
|
355
|
+
value(matchValue);
|
|
356
|
+
value(matchValue_1);
|
|
357
|
+
} else {
|
|
358
|
+
matchResult = 1;
|
|
359
|
+
}
|
|
360
|
+
} else {
|
|
361
|
+
matchResult = 1;
|
|
362
|
+
}
|
|
363
|
+
} else {
|
|
364
|
+
matchResult = 1;
|
|
365
|
+
}
|
|
366
|
+
} else {
|
|
367
|
+
matchResult = 1;
|
|
368
|
+
}
|
|
369
|
+
switch (matchResult) {
|
|
370
|
+
case 0:
|
|
371
|
+
return true;
|
|
372
|
+
default:
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
375
|
+
} else {
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
static validatePubMedID(pv, context) {
|
|
380
|
+
let id;
|
|
381
|
+
if (LDPropertyValue.validate(pv, unwrap(context))) {
|
|
382
|
+
const matchValue = LDPropertyValue.tryGetNameAsString(pv, unwrap(context));
|
|
383
|
+
const matchValue_1 = LDPropertyValue.tryGetValueAsString(pv, unwrap(context));
|
|
384
|
+
const matchValue_2 = LDPropertyValue.tryGetPropertyIDAsString(pv, unwrap(context));
|
|
385
|
+
let matchResult;
|
|
386
|
+
if (matchValue != null) {
|
|
387
|
+
if (matchValue_1 != null) {
|
|
388
|
+
if (matchValue_2 != null) {
|
|
389
|
+
if (value(matchValue_1), id = value(matchValue_2), value(matchValue) === LDPropertyValue.pubmedIDKey && id === LDPropertyValue.pubmedIDURL) {
|
|
390
|
+
matchResult = 0;
|
|
391
|
+
value(matchValue_2);
|
|
392
|
+
value(matchValue);
|
|
393
|
+
value(matchValue_1);
|
|
394
|
+
} else {
|
|
395
|
+
matchResult = 1;
|
|
396
|
+
}
|
|
397
|
+
} else {
|
|
398
|
+
matchResult = 1;
|
|
399
|
+
}
|
|
400
|
+
} else {
|
|
401
|
+
matchResult = 1;
|
|
402
|
+
}
|
|
403
|
+
} else {
|
|
404
|
+
matchResult = 1;
|
|
405
|
+
}
|
|
406
|
+
switch (matchResult) {
|
|
407
|
+
case 0:
|
|
408
|
+
return true;
|
|
409
|
+
default:
|
|
410
|
+
return false;
|
|
411
|
+
}
|
|
412
|
+
} else {
|
|
413
|
+
return false;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
static genId(name, value$1, propertyID, prefix) {
|
|
417
|
+
let value_2, value_1;
|
|
418
|
+
const prefix_1 = defaultArg(prefix, "PV");
|
|
419
|
+
return clean(value$1 == null ? propertyID != null ? (value(propertyID), `#${prefix_1}_${name}`) : `#${prefix_1}_${name}` : propertyID == null ? (value_2 = value(value$1), `#${prefix_1}_${name}_${value_2}`) : (value(propertyID), value_1 = value(value$1), `#${prefix_1}_${name}_${value_1}`));
|
|
420
|
+
}
|
|
421
|
+
static genIdComponent(name, value, propertyID) {
|
|
422
|
+
return LDPropertyValue.genId(name, unwrap(value), unwrap(propertyID), "Component");
|
|
423
|
+
}
|
|
424
|
+
static genIdParameterValue(name, value, propertyID) {
|
|
425
|
+
return LDPropertyValue.genId(name, unwrap(value), unwrap(propertyID), "ParameterValue");
|
|
426
|
+
}
|
|
427
|
+
static genIdCharacteristicValue(name, value, propertyID) {
|
|
428
|
+
return LDPropertyValue.genId(name, unwrap(value), unwrap(propertyID), "CharacteristicValue");
|
|
429
|
+
}
|
|
430
|
+
static genIdFactorValue(name, value, propertyID) {
|
|
431
|
+
return LDPropertyValue.genId(name, unwrap(value), unwrap(propertyID), "FactorValue");
|
|
432
|
+
}
|
|
433
|
+
static genIdFragmentDescriptor(fileName) {
|
|
434
|
+
return `#Descriptor_${fileName}`;
|
|
435
|
+
}
|
|
436
|
+
static create(name, value$1, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
437
|
+
const pv = new LDNode(id == null ? LDPropertyValue.genId(name, unwrap(value$1), unwrap(propertyID)) : value(id), [LDPropertyValue.schemaType], void 0, unwrap(context));
|
|
438
|
+
LDPropertyValue.setNameAsString(pv, name, unwrap(context));
|
|
439
|
+
pv.SetOptionalProperty(LDPropertyValue.value, value$1, unwrap(context));
|
|
440
|
+
iterate((pid) => {
|
|
441
|
+
LDPropertyValue.setPropertyIDAsString(pv, pid, unwrap(context));
|
|
442
|
+
}, toArray(propertyID));
|
|
443
|
+
iterate((uc) => {
|
|
444
|
+
LDPropertyValue.setUnitCodeAsString(pv, uc, unwrap(context));
|
|
445
|
+
}, toArray(unitCode));
|
|
446
|
+
iterate((ut) => {
|
|
447
|
+
LDPropertyValue.setUnitTextAsString(pv, ut, unwrap(context));
|
|
448
|
+
}, toArray(unitText));
|
|
449
|
+
iterate((vr) => {
|
|
450
|
+
LDPropertyValue.setValueReferenceAsString(pv, vr, unwrap(context));
|
|
451
|
+
}, toArray(valueReference));
|
|
452
|
+
return pv;
|
|
453
|
+
}
|
|
454
|
+
static createComponent(name, value$1, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
455
|
+
const id_1 = id == null ? LDPropertyValue.genIdComponent(name, unwrap(value$1), unwrap(propertyID)) : value(id);
|
|
456
|
+
const c = LDPropertyValue.create(name, unwrap(value$1), id_1, unwrap(propertyID), unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
457
|
+
c.AdditionalType = ["Component"];
|
|
458
|
+
return c;
|
|
459
|
+
}
|
|
460
|
+
static createParameterValue(name, value$1, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
461
|
+
const id_1 = id == null ? LDPropertyValue.genIdParameterValue(name, unwrap(value$1), unwrap(propertyID)) : value(id);
|
|
462
|
+
const pv = LDPropertyValue.create(name, unwrap(value$1), id_1, unwrap(propertyID), unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
463
|
+
pv.AdditionalType = ["ParameterValue"];
|
|
464
|
+
return pv;
|
|
465
|
+
}
|
|
466
|
+
static createCharacteristicValue(name, value$1, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
467
|
+
const id_1 = id == null ? LDPropertyValue.genIdCharacteristicValue(name, unwrap(value$1), unwrap(propertyID)) : value(id);
|
|
468
|
+
const cv = LDPropertyValue.create(name, unwrap(value$1), id_1, unwrap(propertyID), unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
469
|
+
cv.AdditionalType = ["CharacteristicValue"];
|
|
470
|
+
return cv;
|
|
471
|
+
}
|
|
472
|
+
static createFactorValue(name, value$1, id, propertyID, unitCode, unitText, valueReference, context) {
|
|
473
|
+
const id_1 = id == null ? LDPropertyValue.genIdFactorValue(name, unwrap(value$1), unwrap(propertyID)) : value(id);
|
|
474
|
+
const fv = LDPropertyValue.create(name, unwrap(value$1), id_1, unwrap(propertyID), unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
475
|
+
fv.AdditionalType = ["FactorValue"];
|
|
476
|
+
return fv;
|
|
477
|
+
}
|
|
478
|
+
static createFragmentDescriptor(fileName, value$1, id, unitCode, unitText, valueReference, measurementMethod, description, alternateName, disambiguatingDescriptions, subjectOf, context) {
|
|
479
|
+
const id_1 = id == null ? LDPropertyValue.genIdFragmentDescriptor(fileName) : value(id);
|
|
480
|
+
const fd = LDPropertyValue.create("FragmentDescriptor", unwrap(value$1), id_1, "https://github.com/nfdi4plants/ARC-specification/blob/dev/ISA-XLSX.md#datamap-table-sheets", unwrap(unitCode), unwrap(unitText), unwrap(valueReference), unwrap(context));
|
|
481
|
+
if (measurementMethod != null) {
|
|
482
|
+
LDPropertyValue.setMeasurementMethodAsString(fd, value(measurementMethod), unwrap(context));
|
|
483
|
+
}
|
|
484
|
+
if (description != null) {
|
|
485
|
+
LDPropertyValue.setDescriptionAsString(fd, value(description), unwrap(context));
|
|
486
|
+
}
|
|
487
|
+
if (alternateName != null) {
|
|
488
|
+
LDPropertyValue.setAlternateNameAsString(fd, value(alternateName), unwrap(context));
|
|
489
|
+
}
|
|
490
|
+
if (disambiguatingDescriptions != null) {
|
|
491
|
+
LDPropertyValue.setDisambiguatingDescriptionsAsString(fd, value(disambiguatingDescriptions), unwrap(context));
|
|
492
|
+
}
|
|
493
|
+
if (subjectOf != null) {
|
|
494
|
+
LDPropertyValue.setSubjectOf(fd, value(subjectOf), unwrap(context));
|
|
495
|
+
}
|
|
496
|
+
return fd;
|
|
497
|
+
}
|
|
498
|
+
static createDOI(value, context) {
|
|
499
|
+
return LDPropertyValue.create(LDPropertyValue.doiKey, value, value, LDPropertyValue.doiURL, void 0, void 0, void 0, unwrap(context));
|
|
500
|
+
}
|
|
501
|
+
static createPubMedID(value, context) {
|
|
502
|
+
return LDPropertyValue.create(LDPropertyValue.pubmedIDKey, value, value, LDPropertyValue.pubmedIDURL, void 0, void 0, void 0, unwrap(context));
|
|
503
|
+
}
|
|
504
|
+
static tryGetAsDOI(pv, context) {
|
|
505
|
+
return LDPropertyValue.validateDOI(pv, unwrap(context)) ? LDPropertyValue.getValueAsString(pv, unwrap(context)) : void 0;
|
|
506
|
+
}
|
|
507
|
+
static tryGetAsPubMedID(pv, context) {
|
|
508
|
+
return LDPropertyValue.validatePubMedID(pv, unwrap(context)) ? LDPropertyValue.getValueAsString(pv, unwrap(context)) : void 0;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export { LDPropertyValue };
|