@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,103 @@
|
|
|
1
|
+
import { unwrap, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { LDNode } from '../LDObject.js';
|
|
3
|
+
import { clean } from '../Helper.js';
|
|
4
|
+
|
|
5
|
+
class LDDefinedTerm {
|
|
6
|
+
constructor() {
|
|
7
|
+
}
|
|
8
|
+
static get schemaType() {
|
|
9
|
+
return "http://schema.org/DefinedTerm";
|
|
10
|
+
}
|
|
11
|
+
static get termCode() {
|
|
12
|
+
return "http://schema.org/termCode";
|
|
13
|
+
}
|
|
14
|
+
static get name() {
|
|
15
|
+
return "http://schema.org/name";
|
|
16
|
+
}
|
|
17
|
+
static tryGetTermCodeAsString(dt, context) {
|
|
18
|
+
const matchValue = dt.TryGetPropertyAsSingleton(LDDefinedTerm.termCode, unwrap(context));
|
|
19
|
+
let matchResult, tc;
|
|
20
|
+
if (matchValue != null) {
|
|
21
|
+
if (typeof value(matchValue) === "string") {
|
|
22
|
+
matchResult = 0;
|
|
23
|
+
tc = value(matchValue);
|
|
24
|
+
} else {
|
|
25
|
+
matchResult = 1;
|
|
26
|
+
}
|
|
27
|
+
} else {
|
|
28
|
+
matchResult = 1;
|
|
29
|
+
}
|
|
30
|
+
switch (matchResult) {
|
|
31
|
+
case 0:
|
|
32
|
+
return tc;
|
|
33
|
+
default:
|
|
34
|
+
return void 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
static getTermCodeAsString(dt, context) {
|
|
38
|
+
const matchValue = dt.TryGetPropertyAsSingleton(LDDefinedTerm.termCode, unwrap(context));
|
|
39
|
+
if (matchValue != null) {
|
|
40
|
+
if (typeof value(matchValue) === "string") {
|
|
41
|
+
const tc = value(matchValue);
|
|
42
|
+
return tc;
|
|
43
|
+
} else {
|
|
44
|
+
throw new Error(`Property of \`termCode\` of object with @id \`${dt.Id}\` was not a string`);
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
throw new Error(`Could not access property \`termCode\` of object with @id \`${dt.Id}\``);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
static setTermCodeAsString(dt, termCode, context) {
|
|
51
|
+
return dt.SetProperty(LDDefinedTerm.termCode, termCode, unwrap(context));
|
|
52
|
+
}
|
|
53
|
+
static tryGetNameAsString(dt, context) {
|
|
54
|
+
const matchValue = dt.TryGetPropertyAsSingleton(LDDefinedTerm.name, unwrap(context));
|
|
55
|
+
let matchResult, n;
|
|
56
|
+
if (matchValue != null) {
|
|
57
|
+
if (typeof value(matchValue) === "string") {
|
|
58
|
+
matchResult = 0;
|
|
59
|
+
n = value(matchValue);
|
|
60
|
+
} else {
|
|
61
|
+
matchResult = 1;
|
|
62
|
+
}
|
|
63
|
+
} else {
|
|
64
|
+
matchResult = 1;
|
|
65
|
+
}
|
|
66
|
+
switch (matchResult) {
|
|
67
|
+
case 0:
|
|
68
|
+
return n;
|
|
69
|
+
default:
|
|
70
|
+
return void 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
static getNameAsString(dt, context) {
|
|
74
|
+
const matchValue = dt.TryGetPropertyAsSingleton(LDDefinedTerm.name, unwrap(context));
|
|
75
|
+
if (matchValue != null) {
|
|
76
|
+
if (typeof value(matchValue) === "string") {
|
|
77
|
+
const n = value(matchValue);
|
|
78
|
+
return n;
|
|
79
|
+
} else {
|
|
80
|
+
throw new Error(`Property of \`name\` of object with @id \`${dt.Id}\` was not a string`);
|
|
81
|
+
}
|
|
82
|
+
} else {
|
|
83
|
+
throw new Error(`Could not access property \`name\` of object with @id \`${dt.Id}\``);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
static setNameAsString(dt, name, context) {
|
|
87
|
+
return dt.SetProperty(LDDefinedTerm.name, name, unwrap(context));
|
|
88
|
+
}
|
|
89
|
+
static genID(name, termCode) {
|
|
90
|
+
return termCode == null ? clean(`#OA_${name}`) : `${value(termCode)}`;
|
|
91
|
+
}
|
|
92
|
+
static validate(dt, context) {
|
|
93
|
+
return dt.HasType(LDDefinedTerm.schemaType, unwrap(context)) && dt.HasProperty(LDDefinedTerm.name, unwrap(context));
|
|
94
|
+
}
|
|
95
|
+
static create(name, id, termCode, context) {
|
|
96
|
+
const dt = new LDNode(id == null ? LDDefinedTerm.genID(name, unwrap(termCode)) : value(id), [LDDefinedTerm.schemaType], void 0, unwrap(context));
|
|
97
|
+
dt.SetProperty(LDDefinedTerm.name, name, unwrap(context));
|
|
98
|
+
dt.SetOptionalProperty(LDDefinedTerm.termCode, termCode, unwrap(context));
|
|
99
|
+
return dt;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { LDDefinedTerm };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { unwrap, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { LDNode } from '../LDObject.js';
|
|
3
|
+
import { LDComment } from './Comment.js';
|
|
4
|
+
import { LDDefinedTerm } from './DefinedTerm.js';
|
|
5
|
+
|
|
6
|
+
class LDFile {
|
|
7
|
+
constructor() {
|
|
8
|
+
}
|
|
9
|
+
static get schemaType() {
|
|
10
|
+
return "http://schema.org/MediaObject";
|
|
11
|
+
}
|
|
12
|
+
static get name() {
|
|
13
|
+
return "http://schema.org/name";
|
|
14
|
+
}
|
|
15
|
+
static get comment() {
|
|
16
|
+
return "http://schema.org/comment";
|
|
17
|
+
}
|
|
18
|
+
static get disambiguatingDescription() {
|
|
19
|
+
return "http://schema.org/disambiguatingDescription";
|
|
20
|
+
}
|
|
21
|
+
static get usageInfo() {
|
|
22
|
+
return "http://schema.org/usageInfo";
|
|
23
|
+
}
|
|
24
|
+
static get encodingFormat() {
|
|
25
|
+
return "http://schema.org/encodingFormat";
|
|
26
|
+
}
|
|
27
|
+
static get pattern() {
|
|
28
|
+
return "http://schema.org/pattern";
|
|
29
|
+
}
|
|
30
|
+
static get about() {
|
|
31
|
+
return "http://schema.org/about";
|
|
32
|
+
}
|
|
33
|
+
static tryGetNameAsString(dt, context) {
|
|
34
|
+
const matchValue = dt.TryGetPropertyAsSingleton(LDFile.name, unwrap(context));
|
|
35
|
+
let matchResult, n;
|
|
36
|
+
if (matchValue != null) {
|
|
37
|
+
if (typeof value(matchValue) === "string") {
|
|
38
|
+
matchResult = 0;
|
|
39
|
+
n = value(matchValue);
|
|
40
|
+
} else {
|
|
41
|
+
matchResult = 1;
|
|
42
|
+
}
|
|
43
|
+
} else {
|
|
44
|
+
matchResult = 1;
|
|
45
|
+
}
|
|
46
|
+
switch (matchResult) {
|
|
47
|
+
case 0:
|
|
48
|
+
return n;
|
|
49
|
+
default:
|
|
50
|
+
return void 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
static getNameAsString(dt, context) {
|
|
54
|
+
const matchValue = dt.TryGetPropertyAsSingleton(LDFile.name, unwrap(context));
|
|
55
|
+
if (matchValue != null) {
|
|
56
|
+
if (typeof value(matchValue) === "string") {
|
|
57
|
+
const n = value(matchValue);
|
|
58
|
+
return n;
|
|
59
|
+
} else {
|
|
60
|
+
throw new Error(`Property of \`name\` of object with @id \`${dt.Id}\` was not a string`);
|
|
61
|
+
}
|
|
62
|
+
} else {
|
|
63
|
+
throw new Error(`Could not access property \`name\` of object with @id \`${dt.Id}\``);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
static setNameAsString(dt, name, context) {
|
|
67
|
+
return dt.SetProperty(LDFile.name, name, unwrap(context));
|
|
68
|
+
}
|
|
69
|
+
static getComments(dt, graph, context) {
|
|
70
|
+
return dt.GetPropertyNodes(LDFile.comment, (ldObject, context_1) => LDComment.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
|
|
71
|
+
}
|
|
72
|
+
static setComments(dt, comment, context) {
|
|
73
|
+
return dt.SetProperty(LDFile.comment, comment, unwrap(context));
|
|
74
|
+
}
|
|
75
|
+
static tryGetDisambiguatingDescriptionAsString(dt, context) {
|
|
76
|
+
const matchValue = dt.TryGetPropertyAsSingleton(LDFile.disambiguatingDescription, unwrap(context));
|
|
77
|
+
let matchResult, dd;
|
|
78
|
+
if (matchValue != null) {
|
|
79
|
+
if (typeof value(matchValue) === "string") {
|
|
80
|
+
matchResult = 0;
|
|
81
|
+
dd = value(matchValue);
|
|
82
|
+
} else {
|
|
83
|
+
matchResult = 1;
|
|
84
|
+
}
|
|
85
|
+
} else {
|
|
86
|
+
matchResult = 1;
|
|
87
|
+
}
|
|
88
|
+
switch (matchResult) {
|
|
89
|
+
case 0:
|
|
90
|
+
return dd;
|
|
91
|
+
default:
|
|
92
|
+
return void 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
static setDisambiguatingDescriptionAsString(dt, disambiguatingDescription, context) {
|
|
96
|
+
return dt.SetProperty(LDFile.disambiguatingDescription, disambiguatingDescription, unwrap(context));
|
|
97
|
+
}
|
|
98
|
+
static tryGetEncodingFormatAsString(dt, context) {
|
|
99
|
+
const matchValue = dt.TryGetPropertyAsSingleton(LDFile.encodingFormat, unwrap(context));
|
|
100
|
+
let matchResult, ef;
|
|
101
|
+
if (matchValue != null) {
|
|
102
|
+
if (typeof value(matchValue) === "string") {
|
|
103
|
+
matchResult = 0;
|
|
104
|
+
ef = value(matchValue);
|
|
105
|
+
} else {
|
|
106
|
+
matchResult = 1;
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
matchResult = 1;
|
|
110
|
+
}
|
|
111
|
+
switch (matchResult) {
|
|
112
|
+
case 0:
|
|
113
|
+
return ef;
|
|
114
|
+
default:
|
|
115
|
+
return void 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
static setEncodingFormatAsString(dt, encodingFormat, context) {
|
|
119
|
+
return dt.SetProperty(LDFile.encodingFormat, encodingFormat, unwrap(context));
|
|
120
|
+
}
|
|
121
|
+
static tryGetUsageInfoAsString(dt, context) {
|
|
122
|
+
const matchValue = dt.TryGetPropertyAsSingleton(LDFile.usageInfo, unwrap(context));
|
|
123
|
+
let matchResult, ui;
|
|
124
|
+
if (matchValue != null) {
|
|
125
|
+
if (typeof value(matchValue) === "string") {
|
|
126
|
+
matchResult = 0;
|
|
127
|
+
ui = value(matchValue);
|
|
128
|
+
} else {
|
|
129
|
+
matchResult = 1;
|
|
130
|
+
}
|
|
131
|
+
} else {
|
|
132
|
+
matchResult = 1;
|
|
133
|
+
}
|
|
134
|
+
switch (matchResult) {
|
|
135
|
+
case 0:
|
|
136
|
+
return ui;
|
|
137
|
+
default:
|
|
138
|
+
return void 0;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
static setUsageInfoAsString(dt, usageInfo, context) {
|
|
142
|
+
return dt.SetProperty(LDFile.usageInfo, usageInfo, unwrap(context));
|
|
143
|
+
}
|
|
144
|
+
static tryGetPatternAsDefinedTerm(dt, graph, context) {
|
|
145
|
+
let dt_1;
|
|
146
|
+
const matchValue = dt.TryGetPropertyAsSingleNode(LDFile.pattern, unwrap(graph), unwrap(context));
|
|
147
|
+
if (matchValue != null) {
|
|
148
|
+
if (dt_1 = value(matchValue), LDDefinedTerm.validate(dt_1, unwrap(context))) {
|
|
149
|
+
const dt_2 = value(matchValue);
|
|
150
|
+
return dt_2;
|
|
151
|
+
} else {
|
|
152
|
+
throw new Error(`Property of \`pattern\` of object with @id \`${dt.Id}\` was not a DefinedTerm`);
|
|
153
|
+
}
|
|
154
|
+
} else {
|
|
155
|
+
return void 0;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
static setPatternAsDefinedTerm(dt, pattern, context) {
|
|
159
|
+
return dt.SetProperty(LDFile.pattern, pattern, unwrap(context));
|
|
160
|
+
}
|
|
161
|
+
static tryGetAbout(dt, graph, context) {
|
|
162
|
+
return dt.TryGetPropertyAsSingleNode(LDFile.about, unwrap(graph), unwrap(context));
|
|
163
|
+
}
|
|
164
|
+
static setAbout(dt, about, context) {
|
|
165
|
+
return dt.SetProperty(LDFile.about, about, unwrap(context));
|
|
166
|
+
}
|
|
167
|
+
static genId(name) {
|
|
168
|
+
return `${name}`;
|
|
169
|
+
}
|
|
170
|
+
static validate(dt, context) {
|
|
171
|
+
return dt.HasType(LDFile.schemaType, unwrap(context)) && dt.HasProperty(LDFile.name, unwrap(context));
|
|
172
|
+
}
|
|
173
|
+
static create(name, id, comments, disambiguatingDescription, encodingFormat, usageInfo, context) {
|
|
174
|
+
const dt = new LDNode(id == null ? LDFile.genId(name) : value(id), [LDFile.schemaType], void 0, unwrap(context));
|
|
175
|
+
dt.SetProperty(LDFile.name, name, unwrap(context));
|
|
176
|
+
dt.SetOptionalProperty(LDFile.comment, comments, unwrap(context));
|
|
177
|
+
dt.SetOptionalProperty(LDFile.disambiguatingDescription, disambiguatingDescription, unwrap(context));
|
|
178
|
+
dt.SetOptionalProperty(LDFile.encodingFormat, encodingFormat, unwrap(context));
|
|
179
|
+
dt.SetOptionalProperty(LDFile.usageInfo, usageInfo, unwrap(context));
|
|
180
|
+
return dt;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export { LDFile };
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { unwrap, value, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { LDNode } from '../LDObject.js';
|
|
3
|
+
import { LDPerson } from './Person.js';
|
|
4
|
+
import { LDSample } from './Sample.js';
|
|
5
|
+
import { LDFile } from './File.js';
|
|
6
|
+
import { LDLabProtocol } from './LabProtocol.js';
|
|
7
|
+
import { LDPropertyValue } from './PropertyValue.js';
|
|
8
|
+
import { ResizeArray_map } from '../../Core/Helper/Collections.js';
|
|
9
|
+
import { clean } from '../Helper.js';
|
|
10
|
+
|
|
11
|
+
class LDLabProcess {
|
|
12
|
+
constructor() {
|
|
13
|
+
}
|
|
14
|
+
static get schemaType() {
|
|
15
|
+
return "https://bioschemas.org/LabProcess";
|
|
16
|
+
}
|
|
17
|
+
static get name() {
|
|
18
|
+
return "http://schema.org/name";
|
|
19
|
+
}
|
|
20
|
+
static get agent() {
|
|
21
|
+
return "http://schema.org/agent";
|
|
22
|
+
}
|
|
23
|
+
static get object_() {
|
|
24
|
+
return "http://schema.org/object";
|
|
25
|
+
}
|
|
26
|
+
static get result() {
|
|
27
|
+
return "http://schema.org/result";
|
|
28
|
+
}
|
|
29
|
+
static get executesLabProtocol() {
|
|
30
|
+
return "https://bioschemas.org/executesLabProtocol";
|
|
31
|
+
}
|
|
32
|
+
static get parameterValue() {
|
|
33
|
+
return "https://bioschemas.org/parameterValue";
|
|
34
|
+
}
|
|
35
|
+
static get endTime() {
|
|
36
|
+
return "http://schema.org/endTime";
|
|
37
|
+
}
|
|
38
|
+
static get disambiguatingDescription() {
|
|
39
|
+
return "http://schema.org/disambiguatingDescription";
|
|
40
|
+
}
|
|
41
|
+
static tryGetNameAsString(lp, context) {
|
|
42
|
+
const matchValue = lp.TryGetPropertyAsSingleton(LDLabProcess.name, unwrap(context));
|
|
43
|
+
let matchResult, n;
|
|
44
|
+
if (matchValue != null) {
|
|
45
|
+
if (typeof value(matchValue) === "string") {
|
|
46
|
+
matchResult = 0;
|
|
47
|
+
n = value(matchValue);
|
|
48
|
+
} else {
|
|
49
|
+
matchResult = 1;
|
|
50
|
+
}
|
|
51
|
+
} else {
|
|
52
|
+
matchResult = 1;
|
|
53
|
+
}
|
|
54
|
+
switch (matchResult) {
|
|
55
|
+
case 0:
|
|
56
|
+
return n;
|
|
57
|
+
default:
|
|
58
|
+
return void 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
static getNameAsString(lp, context) {
|
|
62
|
+
const matchValue = lp.TryGetPropertyAsSingleton(LDLabProcess.name, unwrap(context));
|
|
63
|
+
if (matchValue != null) {
|
|
64
|
+
if (typeof value(matchValue) === "string") {
|
|
65
|
+
const n = value(matchValue);
|
|
66
|
+
return n;
|
|
67
|
+
} else {
|
|
68
|
+
throw new Error(`property \`name\` of object with @id \`${lp.Id}\` was not a string`);
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
throw new Error(`Could not access property \`name\` of object with @id \`${lp.Id}\``);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
static setNameAsString(lp, name, context) {
|
|
75
|
+
return lp.SetProperty(LDLabProcess.name, name, unwrap(context));
|
|
76
|
+
}
|
|
77
|
+
static tryGetAgent(lp, graph, context) {
|
|
78
|
+
let ldObject;
|
|
79
|
+
const matchValue = lp.TryGetPropertyAsSingleNode(LDLabProcess.agent, unwrap(graph), unwrap(context));
|
|
80
|
+
let matchResult, a_1;
|
|
81
|
+
if (matchValue != null) {
|
|
82
|
+
if (ldObject = value(matchValue), LDPerson.validate(ldObject, unwrap(context))) {
|
|
83
|
+
matchResult = 0;
|
|
84
|
+
a_1 = value(matchValue);
|
|
85
|
+
} else {
|
|
86
|
+
matchResult = 1;
|
|
87
|
+
}
|
|
88
|
+
} else {
|
|
89
|
+
matchResult = 1;
|
|
90
|
+
}
|
|
91
|
+
switch (matchResult) {
|
|
92
|
+
case 0:
|
|
93
|
+
return a_1;
|
|
94
|
+
default:
|
|
95
|
+
return void 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
static getAgent(lp, graph, context) {
|
|
99
|
+
let ldObject;
|
|
100
|
+
const matchValue = lp.TryGetPropertyAsSingleNode(LDLabProcess.agent, unwrap(graph), unwrap(context));
|
|
101
|
+
if (matchValue != null) {
|
|
102
|
+
if (ldObject = value(matchValue), LDPerson.validate(ldObject, unwrap(context))) {
|
|
103
|
+
const a_1 = value(matchValue);
|
|
104
|
+
return a_1;
|
|
105
|
+
} else {
|
|
106
|
+
throw new Error(`Property of \`agent\` of object with @id \`${lp.Id}\` was not a valid Person`);
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
throw new Error(`Could not access property \`agent\` of object with @id \`${lp.Id}\``);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
static setAgent(lp, agent, context) {
|
|
113
|
+
return lp.SetProperty(LDLabProcess.agent, agent, unwrap(context));
|
|
114
|
+
}
|
|
115
|
+
static getObjects(lp, graph, context) {
|
|
116
|
+
return lp.GetPropertyNodes(LDLabProcess.object_, void 0, unwrap(graph), unwrap(context));
|
|
117
|
+
}
|
|
118
|
+
static getObjectsAsSample(lp, graph, context) {
|
|
119
|
+
return lp.GetPropertyNodes(LDLabProcess.object_, (ldObject, context_1) => LDSample.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
|
|
120
|
+
}
|
|
121
|
+
static getObjectsAsData(lp, graph, context) {
|
|
122
|
+
return lp.GetPropertyNodes(LDLabProcess.object_, (ldObject, context_1) => LDFile.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
|
|
123
|
+
}
|
|
124
|
+
static setObjects(lp, objects, context) {
|
|
125
|
+
return lp.SetProperty(LDLabProcess.object_, objects, unwrap(context));
|
|
126
|
+
}
|
|
127
|
+
static getResults(lp, graph, context) {
|
|
128
|
+
return lp.GetPropertyNodes(LDLabProcess.result, void 0, unwrap(graph), unwrap(context));
|
|
129
|
+
}
|
|
130
|
+
static getResultsAsSample(lp, graph, context) {
|
|
131
|
+
return lp.GetPropertyNodes(LDLabProcess.result, (ldObject, context_1) => LDSample.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
|
|
132
|
+
}
|
|
133
|
+
static getResultsAsData(lp, graph, context) {
|
|
134
|
+
return lp.GetPropertyNodes(LDLabProcess.result, (ldObject, context_1) => LDFile.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
|
|
135
|
+
}
|
|
136
|
+
static setResults(lp, results, context) {
|
|
137
|
+
return lp.SetProperty(LDLabProcess.result, results, unwrap(context));
|
|
138
|
+
}
|
|
139
|
+
static tryGetExecutesLabProtocol(lp, graph, context) {
|
|
140
|
+
let ldObject;
|
|
141
|
+
const matchValue = lp.TryGetPropertyAsSingleNode(LDLabProcess.executesLabProtocol, unwrap(graph), unwrap(context));
|
|
142
|
+
let matchResult, l_1;
|
|
143
|
+
if (matchValue != null) {
|
|
144
|
+
if (ldObject = value(matchValue), LDLabProtocol.validate(ldObject, unwrap(context))) {
|
|
145
|
+
matchResult = 0;
|
|
146
|
+
l_1 = value(matchValue);
|
|
147
|
+
} else {
|
|
148
|
+
matchResult = 1;
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
matchResult = 1;
|
|
152
|
+
}
|
|
153
|
+
switch (matchResult) {
|
|
154
|
+
case 0:
|
|
155
|
+
return l_1;
|
|
156
|
+
default:
|
|
157
|
+
return void 0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
static setExecutesLabProtocol(lp, executesLabProtocol, context) {
|
|
161
|
+
return lp.SetProperty(LDLabProcess.executesLabProtocol, executesLabProtocol, unwrap(context));
|
|
162
|
+
}
|
|
163
|
+
static getParameterValues(lp, graph, context) {
|
|
164
|
+
return lp.GetPropertyNodes(LDLabProcess.parameterValue, (ldObject, context_1) => LDPropertyValue.validate(ldObject, unwrap(context_1)), unwrap(graph), unwrap(context));
|
|
165
|
+
}
|
|
166
|
+
static setParameterValues(lp, parameterValues, context) {
|
|
167
|
+
return lp.SetProperty(LDLabProcess.parameterValue, parameterValues, unwrap(context));
|
|
168
|
+
}
|
|
169
|
+
static tryGetEndTime(lp, context) {
|
|
170
|
+
const matchValue = lp.TryGetPropertyAsSingleton(LDLabProcess.endTime, unwrap(context));
|
|
171
|
+
let matchResult, et;
|
|
172
|
+
if (matchValue != null) {
|
|
173
|
+
if (value(matchValue) instanceof Date) {
|
|
174
|
+
matchResult = 0;
|
|
175
|
+
et = value(matchValue);
|
|
176
|
+
} else {
|
|
177
|
+
matchResult = 1;
|
|
178
|
+
}
|
|
179
|
+
} else {
|
|
180
|
+
matchResult = 1;
|
|
181
|
+
}
|
|
182
|
+
switch (matchResult) {
|
|
183
|
+
case 0:
|
|
184
|
+
return et;
|
|
185
|
+
default:
|
|
186
|
+
return void 0;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
static setEndTime(lp, endTime, context) {
|
|
190
|
+
return lp.SetProperty(LDLabProcess.endTime, endTime, unwrap(context));
|
|
191
|
+
}
|
|
192
|
+
static getDisambiguatingDescriptionsAsString(lp, context) {
|
|
193
|
+
return ResizeArray_map((o_1) => o_1, lp.GetPropertyValues(LDLabProcess.disambiguatingDescription, (o, context_1) => typeof o === "string", unwrap(context)));
|
|
194
|
+
}
|
|
195
|
+
static setDisambiguatingDescriptionsAsString(lp, disambiguatingDescriptions, context) {
|
|
196
|
+
return lp.SetProperty(LDLabProcess.disambiguatingDescription, disambiguatingDescriptions, unwrap(context));
|
|
197
|
+
}
|
|
198
|
+
static validate(lp, context) {
|
|
199
|
+
return lp.HasType(LDLabProcess.schemaType, unwrap(context)) && lp.HasProperty(LDLabProcess.name, unwrap(context));
|
|
200
|
+
}
|
|
201
|
+
static genId(name, assayName, studyName) {
|
|
202
|
+
let study_1, assay_1, assay, study;
|
|
203
|
+
return clean(assayName == null ? studyName != null ? (study_1 = value(studyName), `#Process_S_${study_1}_${name}`) : `#Process_${name}` : studyName == null ? (assay_1 = value(assayName), `#Process_A_${assay_1}_${name}`) : (assay = value(assayName), study = value(studyName), `#Process_S_${study}_A_${assay}_${name}`));
|
|
204
|
+
}
|
|
205
|
+
static create(name, objects, results, id, agent, executesLabProtocol, parameterValues, endTime, disambiguatingDescriptions, context) {
|
|
206
|
+
const id_1 = id == null ? LDLabProcess.genId(name) : value(id);
|
|
207
|
+
const objects_1 = defaultArg(objects, []);
|
|
208
|
+
const results_1 = defaultArg(results, []);
|
|
209
|
+
const lp = new LDNode(id_1, [LDLabProcess.schemaType], void 0, unwrap(context));
|
|
210
|
+
lp.SetProperty(LDLabProcess.name, name, unwrap(context));
|
|
211
|
+
lp.SetOptionalProperty(LDLabProcess.agent, agent, unwrap(context));
|
|
212
|
+
lp.SetProperty(LDLabProcess.object_, objects_1, unwrap(context));
|
|
213
|
+
lp.SetProperty(LDLabProcess.result, results_1, unwrap(context));
|
|
214
|
+
lp.SetOptionalProperty(LDLabProcess.executesLabProtocol, executesLabProtocol, unwrap(context));
|
|
215
|
+
lp.SetOptionalProperty(LDLabProcess.parameterValue, parameterValues, unwrap(context));
|
|
216
|
+
lp.SetOptionalProperty(LDLabProcess.endTime, endTime, unwrap(context));
|
|
217
|
+
lp.SetOptionalProperty(LDLabProcess.disambiguatingDescription, disambiguatingDescriptions, unwrap(context));
|
|
218
|
+
return lp;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export { LDLabProcess };
|