@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,105 @@
|
|
|
1
|
+
import { ofArray, map, empty, ofSeq, cons, reverse } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { value, unwrap, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { map as map$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
4
|
+
import { OntologyAnnotation } from '../../Core/OntologyAnnotation.js';
|
|
5
|
+
import { Option_fromValueWithDefault, ResizeArray_iter } from '../../Core/Helper/Collections.js';
|
|
6
|
+
import { ProtocolParameter_fromAggregatedStrings, Component_fromAggregatedStrings, ProtocolParameter_toAggregatedStrings, Component_toAggregatedStrings } from './Conversions.js';
|
|
7
|
+
import { ArcWorkflow_make, ArcWorkflow__get_Identifier, ArcWorkflow__get_WorkflowType, ArcWorkflow__get_Parameters, ArcWorkflow__get_Components, ArcWorkflow__get_SubWorkflowIdentifiers, ArcWorkflow__get_Title, ArcWorkflow__get_Description, ArcWorkflow__get_URI, ArcWorkflow__get_Version, ArcWorkflow__get_Comments } from '../../Core/ArcTypes.js';
|
|
8
|
+
import { createMissingIdentifier, Workflow_tryIdentifierFromFileName, Workflow_fileNameFromIdentifier } from '../../Core/Helper/Identifier.js';
|
|
9
|
+
import { Comment_fromString, Comment_toString } from './Comment.js';
|
|
10
|
+
import { SparseTable_FromRows_Z5579EC29, SparseTable__TryGetValueDefault_5BAE6133, SparseTable__TryGetValue_11FD62A8, SparseTable_ToRows_759CAFC1, SparseTable_Create_Z2192E64B, SparseTable } from './SparseTable.js';
|
|
11
|
+
import { join } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
12
|
+
import { addToDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
13
|
+
import { List_distinct } from '../../../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
14
|
+
import { stringHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
15
|
+
|
|
16
|
+
const identifierLabel = "Identifier";
|
|
17
|
+
const titleLabel = "Title";
|
|
18
|
+
const descriptionLabel = "Description";
|
|
19
|
+
const workflowTypeLabel = "Type";
|
|
20
|
+
const typeTermAccessionNumberLabel = "Type Term Accession Number";
|
|
21
|
+
const typeTermSourceREFLabel = "Type Term Source REF";
|
|
22
|
+
const subWorkflowIdentifiersLabel = "Sub Workflow Identifiers";
|
|
23
|
+
const uriLabel = "URI";
|
|
24
|
+
const versionLabel = "Version";
|
|
25
|
+
const parametersNameLabel = "Parameters Name";
|
|
26
|
+
const parametersTermAccessionNumberLabel = "Parameters Term Accession Number";
|
|
27
|
+
const parametersTermSourceREFLabel = "Parameters Term Source REF";
|
|
28
|
+
const componentsNameLabel = "Components Name";
|
|
29
|
+
const componentsTypeLabel = "Components Type";
|
|
30
|
+
const componentsTypeTermAccessionNumberLabel = "Components Type Term Accession Number";
|
|
31
|
+
const componentsTypeTermSourceREFLabel = "Components Type Term Source REF";
|
|
32
|
+
const fileNameLabel = "File Name";
|
|
33
|
+
const labels = ofArray([identifierLabel, titleLabel, descriptionLabel, workflowTypeLabel, typeTermAccessionNumberLabel, typeTermSourceREFLabel, subWorkflowIdentifiersLabel, uriLabel, versionLabel, parametersNameLabel, parametersTermAccessionNumberLabel, parametersTermSourceREFLabel, componentsNameLabel, componentsTypeLabel, componentsTypeTermAccessionNumberLabel, componentsTypeTermSourceREFLabel, fileNameLabel]);
|
|
34
|
+
function fromString(identifier, title, description, workflowType, workflowTypeTermAccessionNumber, workflowTypeTermSourceREF, subworkflowIdentifiers, uri, version, parametersName, parametersTermAccessionNumber, parametersTermSourceREF, componentsName, componentsType, componentsTypeTermAccessionNumber, componentsTypeTermSourceREF, fileName, comments) {
|
|
35
|
+
let matchValue;
|
|
36
|
+
let subworkflowIdentifiers_2;
|
|
37
|
+
if (subworkflowIdentifiers == null) {
|
|
38
|
+
subworkflowIdentifiers_2 = [];
|
|
39
|
+
} else {
|
|
40
|
+
const subworkflowIdentifiers_1 = value(subworkflowIdentifiers);
|
|
41
|
+
const collection = map$1((s) => s.trim(), subworkflowIdentifiers_1.split(";"));
|
|
42
|
+
subworkflowIdentifiers_2 = Array.from(collection);
|
|
43
|
+
}
|
|
44
|
+
let workflowType_1;
|
|
45
|
+
const v = OntologyAnnotation.create(unwrap(workflowType), unwrap(workflowTypeTermSourceREF), unwrap(workflowTypeTermAccessionNumber));
|
|
46
|
+
workflowType_1 = Option_fromValueWithDefault(new OntologyAnnotation(), v);
|
|
47
|
+
let parameters;
|
|
48
|
+
const collection_1 = ProtocolParameter_fromAggregatedStrings(";", parametersName, parametersTermSourceREF, parametersTermAccessionNumber);
|
|
49
|
+
parameters = Array.from(collection_1);
|
|
50
|
+
let components;
|
|
51
|
+
const collection_2 = Component_fromAggregatedStrings(";", componentsName, componentsType, componentsTypeTermSourceREF, componentsTypeTermAccessionNumber);
|
|
52
|
+
components = Array.from(collection_2);
|
|
53
|
+
return ArcWorkflow_make(identifier == null ? fileName == null ? createMissingIdentifier() : (matchValue = Workflow_tryIdentifierFromFileName(value(fileName)), matchValue != null ? value(matchValue) : createMissingIdentifier()) : value(identifier), title, description, workflowType_1, uri, version, subworkflowIdentifiers_2, parameters, components, void 0, [], comments);
|
|
54
|
+
}
|
|
55
|
+
function fromSparseTable(matrix) {
|
|
56
|
+
const comments = map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, 0])), matrix.CommentKeys);
|
|
57
|
+
return fromString(SparseTable__TryGetValue_11FD62A8(matrix, [identifierLabel, 0]), SparseTable__TryGetValue_11FD62A8(matrix, [titleLabel, 0]), SparseTable__TryGetValue_11FD62A8(matrix, [descriptionLabel, 0]), SparseTable__TryGetValue_11FD62A8(matrix, [workflowTypeLabel, 0]), SparseTable__TryGetValue_11FD62A8(matrix, [typeTermAccessionNumberLabel, 0]), SparseTable__TryGetValue_11FD62A8(matrix, [typeTermSourceREFLabel, 0]), SparseTable__TryGetValue_11FD62A8(matrix, [subWorkflowIdentifiersLabel, 0]), SparseTable__TryGetValue_11FD62A8(matrix, [uriLabel, 0]), SparseTable__TryGetValue_11FD62A8(matrix, [versionLabel, 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [parametersNameLabel, 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [parametersTermAccessionNumberLabel, 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [parametersTermSourceREFLabel, 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [componentsNameLabel, 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [componentsTypeLabel, 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [componentsTypeTermAccessionNumberLabel, 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [componentsTypeTermSourceREFLabel, 0]), SparseTable__TryGetValue_11FD62A8(matrix, [fileNameLabel, 0]), Array.from(comments));
|
|
58
|
+
}
|
|
59
|
+
function toSparseTable(workflow) {
|
|
60
|
+
const matrix = SparseTable_Create_Z2192E64B(void 0, labels, void 0, 2);
|
|
61
|
+
let commentKeys = empty();
|
|
62
|
+
const patternInput = ArcWorkflow__get_Identifier(workflow).startsWith("MISSING_IDENTIFIER_") ? ["", ""] : [ArcWorkflow__get_Identifier(workflow), Workflow_fileNameFromIdentifier(ArcWorkflow__get_Identifier(workflow))];
|
|
63
|
+
let wt;
|
|
64
|
+
const tt = defaultArg(ArcWorkflow__get_WorkflowType(workflow), new OntologyAnnotation());
|
|
65
|
+
wt = OntologyAnnotation.toStringObject(tt, true);
|
|
66
|
+
const pAgg = ProtocolParameter_toAggregatedStrings(";", ofSeq(ArcWorkflow__get_Parameters(workflow)));
|
|
67
|
+
const cAgg = Component_toAggregatedStrings(";", ofSeq(ArcWorkflow__get_Components(workflow)));
|
|
68
|
+
const subWorkflowsAgg = join(";", ArcWorkflow__get_SubWorkflowIdentifiers(workflow));
|
|
69
|
+
addToDict(matrix.Matrix, [identifierLabel, 1], patternInput[0]);
|
|
70
|
+
addToDict(matrix.Matrix, [titleLabel, 1], defaultArg(ArcWorkflow__get_Title(workflow), ""));
|
|
71
|
+
addToDict(matrix.Matrix, [descriptionLabel, 1], defaultArg(ArcWorkflow__get_Description(workflow), ""));
|
|
72
|
+
addToDict(matrix.Matrix, [workflowTypeLabel, 1], wt.TermName);
|
|
73
|
+
addToDict(matrix.Matrix, [typeTermAccessionNumberLabel, 1], wt.TermAccessionNumber);
|
|
74
|
+
addToDict(matrix.Matrix, [typeTermSourceREFLabel, 1], wt.TermSourceREF);
|
|
75
|
+
addToDict(matrix.Matrix, [subWorkflowIdentifiersLabel, 1], subWorkflowsAgg);
|
|
76
|
+
addToDict(matrix.Matrix, [uriLabel, 1], defaultArg(ArcWorkflow__get_URI(workflow), ""));
|
|
77
|
+
addToDict(matrix.Matrix, [versionLabel, 1], defaultArg(ArcWorkflow__get_Version(workflow), ""));
|
|
78
|
+
addToDict(matrix.Matrix, [parametersNameLabel, 1], pAgg.TermNameAgg);
|
|
79
|
+
addToDict(matrix.Matrix, [parametersTermAccessionNumberLabel, 1], pAgg.TermAccessionNumberAgg);
|
|
80
|
+
addToDict(matrix.Matrix, [parametersTermSourceREFLabel, 1], pAgg.TermSourceREFAgg);
|
|
81
|
+
addToDict(matrix.Matrix, [componentsNameLabel, 1], cAgg.NameAgg);
|
|
82
|
+
addToDict(matrix.Matrix, [componentsTypeLabel, 1], cAgg.TermNameAgg);
|
|
83
|
+
addToDict(matrix.Matrix, [componentsTypeTermAccessionNumberLabel, 1], cAgg.TermAccessionNumberAgg);
|
|
84
|
+
addToDict(matrix.Matrix, [componentsTypeTermSourceREFLabel, 1], cAgg.TermSourceREFAgg);
|
|
85
|
+
addToDict(matrix.Matrix, [fileNameLabel, 1], patternInput[1]);
|
|
86
|
+
ResizeArray_iter((comment) => {
|
|
87
|
+
const patternInput_1 = Comment_toString(comment);
|
|
88
|
+
const n = patternInput_1[0];
|
|
89
|
+
commentKeys = cons(n, commentKeys);
|
|
90
|
+
addToDict(matrix.Matrix, [n, 1], patternInput_1[1]);
|
|
91
|
+
}, ArcWorkflow__get_Comments(workflow));
|
|
92
|
+
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
93
|
+
Equals: (x, y) => x === y,
|
|
94
|
+
GetHashCode: stringHash
|
|
95
|
+
})), matrix.ColumnCount);
|
|
96
|
+
}
|
|
97
|
+
function fromRows(lineNumber, rows) {
|
|
98
|
+
const tupledArg = SparseTable_FromRows_Z5579EC29(rows, labels, lineNumber, "Workflow");
|
|
99
|
+
return [tupledArg[0], tupledArg[1], tupledArg[2], fromSparseTable(tupledArg[3])];
|
|
100
|
+
}
|
|
101
|
+
function toRows(workflow) {
|
|
102
|
+
return SparseTable_ToRows_759CAFC1(toSparseTable(workflow), "Workflow");
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { componentsNameLabel, componentsTypeLabel, componentsTypeTermAccessionNumberLabel, componentsTypeTermSourceREFLabel, descriptionLabel, fileNameLabel, fromRows, fromSparseTable, fromString, identifierLabel, labels, parametersNameLabel, parametersTermAccessionNumberLabel, parametersTermSourceREFLabel, subWorkflowIdentifiersLabel, titleLabel, toRows, toSparseTable, typeTermAccessionNumberLabel, typeTermSourceREFLabel, uriLabel, versionLabel, workflowTypeLabel };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defaultArg } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { singleton } from '../node_modules/@fable-org/fable-library-js/AsyncBuilder.js';
|
|
3
|
+
import { downloadFile } from './WebRequest/WebRequest.js';
|
|
4
|
+
import { Templates_fromJsonString } from './JsonIO/Table/Templates.js';
|
|
5
|
+
import { startAsPromise } from '../node_modules/@fable-org/fable-library-js/Async.js';
|
|
6
|
+
|
|
7
|
+
function getTemplates(url) {
|
|
8
|
+
const url_1 = defaultArg(url, "https://github.com/nfdi4plants/Swate-templates/releases/download/latest/templates_v2.0.0.json");
|
|
9
|
+
return singleton.Delay(() => singleton.Bind(downloadFile(url_1), (_arg) => {
|
|
10
|
+
const mapResult = Templates_fromJsonString(_arg);
|
|
11
|
+
return singleton.Return(mapResult);
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
class WebController {
|
|
15
|
+
constructor() {
|
|
16
|
+
}
|
|
17
|
+
static getTemplates(url) {
|
|
18
|
+
return startAsPromise(singleton.Delay(() => singleton.Bind(getTemplates(url), (_arg) => singleton.Return(_arg))));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { WebController, getTemplates };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { unwrap, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { join } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
3
|
+
import { toList, delay, append, singleton, empty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
4
|
+
import { equals, stringHash } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
5
|
+
import { boxHashArray, boxHashOption } from '../Core/Helper/HashCodes.js';
|
|
6
|
+
|
|
7
|
+
class ValidationPackage {
|
|
8
|
+
constructor(name, version) {
|
|
9
|
+
this.version = version;
|
|
10
|
+
this._name = name;
|
|
11
|
+
this._version = this.version;
|
|
12
|
+
}
|
|
13
|
+
get Name() {
|
|
14
|
+
const this$ = this;
|
|
15
|
+
return this$._name;
|
|
16
|
+
}
|
|
17
|
+
set Name(name) {
|
|
18
|
+
const this$ = this;
|
|
19
|
+
this$._name = name;
|
|
20
|
+
}
|
|
21
|
+
get Version() {
|
|
22
|
+
const this$ = this;
|
|
23
|
+
return unwrap(this$._version);
|
|
24
|
+
}
|
|
25
|
+
set Version(version) {
|
|
26
|
+
const this$ = this;
|
|
27
|
+
this$._version = version;
|
|
28
|
+
}
|
|
29
|
+
static make(name, version) {
|
|
30
|
+
return new ValidationPackage(name, unwrap(version));
|
|
31
|
+
}
|
|
32
|
+
Copy() {
|
|
33
|
+
const this$ = this;
|
|
34
|
+
const name = this$.Name;
|
|
35
|
+
const version = this$.Version;
|
|
36
|
+
return ValidationPackage.make(name, version);
|
|
37
|
+
}
|
|
38
|
+
toString() {
|
|
39
|
+
const this$ = this;
|
|
40
|
+
return join("\n", toList(delay(() => append(singleton("{"), delay(() => append(singleton(` Name = ${this$.Name}`), delay(() => append(this$.version != null ? singleton(` Version = ${value(this$.Version)}`) : empty(), delay(() => singleton("}"))))))))));
|
|
41
|
+
}
|
|
42
|
+
Equals(obj) {
|
|
43
|
+
let other_vp;
|
|
44
|
+
const this$ = this;
|
|
45
|
+
return obj instanceof ValidationPackage && (other_vp = obj, other_vp.Name === this$.Name && equals(other_vp.Version, this$.Version));
|
|
46
|
+
}
|
|
47
|
+
GetHashCode() {
|
|
48
|
+
const this$ = this;
|
|
49
|
+
return boxHashArray([stringHash(this$.Name), boxHashOption(this$.Version)]) | 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { ValidationPackage };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { unwrap, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { join } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
3
|
+
import { toList, delay, append, fold, length, map, item, singleton, empty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
4
|
+
import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
5
|
+
import { sortBy } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
6
|
+
import { equals, compareArrays } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
7
|
+
import { rangeDouble } from '../../node_modules/@fable-org/fable-library-js/Range.js';
|
|
8
|
+
import { boxHashArray, boxHashOption, boxHashSeq } from '../Core/Helper/HashCodes.js';
|
|
9
|
+
|
|
10
|
+
class ValidationPackagesConfig {
|
|
11
|
+
constructor(validation_packages, arc_specification) {
|
|
12
|
+
this._arc_specification = arc_specification;
|
|
13
|
+
this._validation_packages = validation_packages;
|
|
14
|
+
}
|
|
15
|
+
get ValidationPackages() {
|
|
16
|
+
const this$ = this;
|
|
17
|
+
return this$._validation_packages;
|
|
18
|
+
}
|
|
19
|
+
set ValidationPackages(validation_packages) {
|
|
20
|
+
const this$ = this;
|
|
21
|
+
this$._validation_packages = validation_packages;
|
|
22
|
+
}
|
|
23
|
+
get ARCSpecification() {
|
|
24
|
+
const this$ = this;
|
|
25
|
+
return unwrap(this$._arc_specification);
|
|
26
|
+
}
|
|
27
|
+
set ARCSpecification(arc_specification) {
|
|
28
|
+
const this$ = this;
|
|
29
|
+
this$._arc_specification = arc_specification;
|
|
30
|
+
}
|
|
31
|
+
static make(validation_packages, arc_specification) {
|
|
32
|
+
return new ValidationPackagesConfig(validation_packages, unwrap(arc_specification));
|
|
33
|
+
}
|
|
34
|
+
Copy() {
|
|
35
|
+
const this$ = this;
|
|
36
|
+
const validation_packages = this$.ValidationPackages;
|
|
37
|
+
const arc_specification = this$.ARCSpecification;
|
|
38
|
+
return ValidationPackagesConfig.make(validation_packages, arc_specification);
|
|
39
|
+
}
|
|
40
|
+
toString() {
|
|
41
|
+
const this$ = this;
|
|
42
|
+
return join("\n", toList(delay(() => append(singleton("{"), delay(() => append(this$.ARCSpecification != null ? singleton(` ARCSpecification = ${value(this$.ARCSpecification)}`) : empty(), delay(() => append(singleton(" ValidationPackages = ["), delay(() => append(singleton(join(`;${"\n"}`, map(toString, this$.ValidationPackages))), delay(() => append(singleton("]"), delay(() => singleton("}"))))))))))))));
|
|
43
|
+
}
|
|
44
|
+
StructurallyEquals(other) {
|
|
45
|
+
const this$ = this;
|
|
46
|
+
const sort = (arg) => sortBy((vp) => [vp.Name, vp.Version], Array.from(arg), {
|
|
47
|
+
Compare: compareArrays
|
|
48
|
+
});
|
|
49
|
+
if (equals(this$.ARCSpecification, other.ARCSpecification)) {
|
|
50
|
+
const a = sort(this$.ValidationPackages);
|
|
51
|
+
const b = sort(other.ValidationPackages);
|
|
52
|
+
return length(a) === length(b) && fold((acc, e) => {
|
|
53
|
+
if (acc) {
|
|
54
|
+
return e;
|
|
55
|
+
} else {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}, true, toList(delay(() => map((i) => equals(item(i, a), item(i, b)), rangeDouble(0, 1, length(a) - 1)))));
|
|
59
|
+
} else {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
ReferenceEquals(other) {
|
|
64
|
+
const this$ = this;
|
|
65
|
+
return this$ === other;
|
|
66
|
+
}
|
|
67
|
+
Equals(other) {
|
|
68
|
+
let other_vp;
|
|
69
|
+
const this$ = this;
|
|
70
|
+
return other instanceof ValidationPackagesConfig && (other_vp = other, this$.StructurallyEquals(other_vp));
|
|
71
|
+
}
|
|
72
|
+
GetHashCode() {
|
|
73
|
+
const this$ = this;
|
|
74
|
+
return boxHashArray([boxHashOption(this$.ARCSpecification), boxHashSeq(this$.ValidationPackages)]) | 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { ValidationPackagesConfig };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { awaitPromise } from '../../node_modules/@fable-org/fable-library-js/Async.js';
|
|
2
|
+
import { fetch$ } from '../fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js';
|
|
3
|
+
import { empty } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
4
|
+
|
|
5
|
+
function isNode() {
|
|
6
|
+
return typeof process !== "undefined" && process.versions != null && process.versions.node != null;
|
|
7
|
+
}
|
|
8
|
+
function downloadFile(url) {
|
|
9
|
+
let pr_1, pr;
|
|
10
|
+
return awaitPromise((pr_1 = (pr = fetch$(url, empty()), pr.then((res) => res.text())), pr_1.then((txt) => txt)));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { downloadFile, isNode };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isNode, downloadFile as downloadFile$1 } from './WebRequest.Node.js';
|
|
2
|
+
import { singleton } from '../../node_modules/@fable-org/fable-library-js/AsyncBuilder.js';
|
|
3
|
+
import { Http_get } from '../fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js';
|
|
4
|
+
import { toFail, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
5
|
+
import 'isomorphic-fetch';
|
|
6
|
+
|
|
7
|
+
function downloadFile(url) {
|
|
8
|
+
if (isNode()) {
|
|
9
|
+
return downloadFile$1(url);
|
|
10
|
+
} else {
|
|
11
|
+
return singleton.Delay(() => singleton.Bind(Http_get(url), (_arg) => {
|
|
12
|
+
const statusCode = _arg[0] | 0;
|
|
13
|
+
const responseText = _arg[1];
|
|
14
|
+
return singleton.Return(statusCode === 200 ? responseText : toFail(printf("Status %d => %s"))(statusCode)(responseText));
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { downloadFile };
|
package/dist/ts/ts/Xlsx.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FsWorkbook } from './fable_modules/FsSpreadsheet.
|
|
1
|
+
import { FsWorkbook } from './fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
2
2
|
import { DataMap } from './Core/DataMap.js';
|
|
3
3
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
4
4
|
import { ArcInvestigation, ArcStudy, ArcAssay } from './Core/ArcTypes.js';
|
package/dist/ts/ts/Xlsx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xlsx.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/Xlsx.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Xlsx.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/Xlsx.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE1E,OAAO,EAAS,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAIxE,qBAAa,sBAAsB;;IAG/B,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO;IAGzC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU;IAG1C,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAGjD,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjE;AAED,wBAAgB,kCAAkC,IAAI,QAAQ,CAE7D;AAED,wBAAgB,4BAA4B,IAAI,sBAAsB,CAErE;AAED,qBAAa,oBAAoB;;IAG7B,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,QAAQ;IAG1C,YAAY,CAAC,KAAK,EAAE,QAAQ,GAAG,UAAU;IAGzC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAGlD,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhE;AAED,wBAAgB,gCAAgC,IAAI,QAAQ,CAE3D;AAED,wBAAgB,0BAA0B,IAAI,oBAAoB,CAEjE;AAED,qBAAa,oBAAoB;;IAG7B,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAGlE,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU;IAG9D,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;IAG1E,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrF;AAED,wBAAgB,gCAAgC,IAAI,QAAQ,CAE3D;AAED,wBAAgB,0BAA0B,IAAI,oBAAoB,CAEjE;AAED,qBAAa,4BAA4B;;IAGrC,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,gBAAgB;IAGlD,YAAY,CAAC,aAAa,EAAE,gBAAgB,GAAG,UAAU;IAGzD,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAG1D,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhF;AAED,wBAAgB,wCAAwC,IAAI,QAAQ,CAEnE;AAED,wBAAgB,kCAAkC,IAAI,4BAA4B,CAEjF;AAED,qBAAa,cAAc;;IAGvB,MAAM,KAAK,OAAO,IAAI,sBAAsB,CAE3C;IACD,MAAM,KAAK,KAAK,IAAI,oBAAoB,CAEvC;IACD,MAAM,KAAK,KAAK,IAAI,oBAAoB,CAEvC;IACD,MAAM,KAAK,aAAa,IAAI,4BAA4B,CAEvD;CACJ;AAED,wBAAgB,0BAA0B,IAAI,QAAQ,CAErD"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { fromFsWorkbook, toFsWorkbook } from './Spreadsheet/DataMap.js';
|
|
2
|
+
import { map } from './CrossAsync.js';
|
|
3
|
+
import { FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5, FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static } from './fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js';
|
|
4
|
+
import { ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F } from './Spreadsheet/ArcAssay.js';
|
|
5
|
+
import { ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522 } from './Spreadsheet/ArcStudy.js';
|
|
6
|
+
import { ofSeq } from '../node_modules/@fable-org/fable-library-js/List.js';
|
|
7
|
+
import { unwrap, map as map$1 } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
8
|
+
import { ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF } from './Spreadsheet/ArcInvestigation.js';
|
|
9
|
+
|
|
10
|
+
class XlsxHelper_DatamapXlsx {
|
|
11
|
+
constructor() {
|
|
12
|
+
}
|
|
13
|
+
fromFsWorkbook(fswb) {
|
|
14
|
+
return fromFsWorkbook(fswb);
|
|
15
|
+
}
|
|
16
|
+
toFsWorkbook(datamap) {
|
|
17
|
+
return toFsWorkbook(datamap);
|
|
18
|
+
}
|
|
19
|
+
fromXlsxFileAsync(path) {
|
|
20
|
+
return map(fromFsWorkbook, FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5(path));
|
|
21
|
+
}
|
|
22
|
+
toXlsxFileAsync(path, datamap) {
|
|
23
|
+
return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static(path, toFsWorkbook(datamap));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
class XlsxHelper_AssayXlsx {
|
|
27
|
+
constructor() {
|
|
28
|
+
}
|
|
29
|
+
fromFsWorkbook(fswb) {
|
|
30
|
+
return ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D(fswb);
|
|
31
|
+
}
|
|
32
|
+
toFsWorkbook(assay) {
|
|
33
|
+
return ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(assay);
|
|
34
|
+
}
|
|
35
|
+
fromXlsxFileAsync(path) {
|
|
36
|
+
return map(ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D, FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5(path));
|
|
37
|
+
}
|
|
38
|
+
toXlsxFileAsync(path, assay) {
|
|
39
|
+
return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static(path, ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(assay));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
class XlsxHelper_StudyXlsx {
|
|
43
|
+
constructor() {
|
|
44
|
+
}
|
|
45
|
+
fromFsWorkbook(fswb) {
|
|
46
|
+
return ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(fswb);
|
|
47
|
+
}
|
|
48
|
+
toFsWorkbook(study, assays) {
|
|
49
|
+
return ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(study, unwrap(map$1(ofSeq, assays)));
|
|
50
|
+
}
|
|
51
|
+
fromXlsxFileAsync(path) {
|
|
52
|
+
return map(ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5(path));
|
|
53
|
+
}
|
|
54
|
+
toXlsxFileAsync(path, study, assays) {
|
|
55
|
+
return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static(path, ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(study, unwrap(map$1(ofSeq, assays))));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
class XlsxHelper_InvestigationXlsx {
|
|
59
|
+
constructor() {
|
|
60
|
+
}
|
|
61
|
+
fromFsWorkbook(fswb) {
|
|
62
|
+
return ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D(fswb);
|
|
63
|
+
}
|
|
64
|
+
toFsWorkbook(investigation) {
|
|
65
|
+
return ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF(investigation);
|
|
66
|
+
}
|
|
67
|
+
fromXlsxFileAsync(path) {
|
|
68
|
+
return map(ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D, FsSpreadsheet_FsWorkbook__FsWorkbook_fromXlsxFile_Static_Z721C83C5(path));
|
|
69
|
+
}
|
|
70
|
+
toXlsxFileAsync(path, investigation) {
|
|
71
|
+
return FsSpreadsheet_FsWorkbook__FsWorkbook_toXlsxFile_Static(path, ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF(investigation));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
class XlsxController {
|
|
75
|
+
constructor() {
|
|
76
|
+
}
|
|
77
|
+
static get Datamap() {
|
|
78
|
+
return new XlsxHelper_DatamapXlsx();
|
|
79
|
+
}
|
|
80
|
+
static get Assay() {
|
|
81
|
+
return new XlsxHelper_AssayXlsx();
|
|
82
|
+
}
|
|
83
|
+
static get Study() {
|
|
84
|
+
return new XlsxHelper_StudyXlsx();
|
|
85
|
+
}
|
|
86
|
+
static get Investigation() {
|
|
87
|
+
return new XlsxHelper_InvestigationXlsx();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export { XlsxController, XlsxHelper_AssayXlsx, XlsxHelper_DatamapXlsx, XlsxHelper_InvestigationXlsx, XlsxHelper_StudyXlsx };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { YAMLElement_Nil, YAMLElement_Object, YAMLElement_Mapping, YAMLContent_create_27AED5E3 } from '../fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js';
|
|
3
|
+
import { equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
4
|
+
import { unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
|
+
import { string, tryInclude } from '../fable_modules/YAMLicious.0.0.3/Encode.fs.js';
|
|
6
|
+
import { toList, delay, collect, singleton } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
7
|
+
import { ValidationPackage } from '../ValidationPackages/ValidationPackage.js';
|
|
8
|
+
import { object, string as string$1 } from '../fable_modules/YAMLicious.0.0.3/Decode.fs.js';
|
|
9
|
+
|
|
10
|
+
function ValidationPackage_encoder(validationpackage) {
|
|
11
|
+
const objSeq = choose((tupledArg) => {
|
|
12
|
+
const v = tupledArg[1];
|
|
13
|
+
if (equals(v, YAMLElement_Nil())) {
|
|
14
|
+
return void 0;
|
|
15
|
+
} else {
|
|
16
|
+
return [tupledArg[0], v];
|
|
17
|
+
}
|
|
18
|
+
}, ofArray([["name", string(validationpackage.Name)], tryInclude("version", string, validationpackage.Version)]));
|
|
19
|
+
return YAMLElement_Object(toList(delay(() => collect((matchValue) => singleton(YAMLElement_Mapping(YAMLContent_create_27AED5E3(matchValue[0]), matchValue[1])), objSeq))));
|
|
20
|
+
}
|
|
21
|
+
const ValidationPackage_decoder = (value_2) => object((get$) => {
|
|
22
|
+
let objectArg, objectArg_1;
|
|
23
|
+
return new ValidationPackage((objectArg = get$.Required, objectArg.Field("name", string$1)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("version", string$1))));
|
|
24
|
+
}, value_2);
|
|
25
|
+
|
|
26
|
+
export { ValidationPackage_decoder, ValidationPackage_encoder };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { choose, ofArray } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { YAMLElement_Nil, YAMLElement_Object, Config, YAMLElement_Mapping, YAMLContent_create_27AED5E3 } from '../fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js';
|
|
3
|
+
import { equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
4
|
+
import { unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
|
+
import { tryInclude, resizearray, string } from '../fable_modules/YAMLicious.0.0.3/Encode.fs.js';
|
|
6
|
+
import { ValidationPackage_encoder, ValidationPackage_decoder } from './ValidationPackage.js';
|
|
7
|
+
import { toList, delay, collect, singleton } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
8
|
+
import { ValidationPackagesConfig } from '../ValidationPackages/ValidationPackagesConfig.js';
|
|
9
|
+
import { object, resizearray as resizearray$1, string as string$1 } from '../fable_modules/YAMLicious.0.0.3/Decode.fs.js';
|
|
10
|
+
import { read } from '../fable_modules/YAMLicious.0.0.3/Reader.fs.js';
|
|
11
|
+
import { defaultWhitespace } from './Encode.js';
|
|
12
|
+
import { write } from '../fable_modules/YAMLicious.0.0.3/Writer.fs.js';
|
|
13
|
+
|
|
14
|
+
function ValidationPackagesConfig_encoder(validationpackage) {
|
|
15
|
+
const objSeq = choose((tupledArg) => {
|
|
16
|
+
const v = tupledArg[1];
|
|
17
|
+
if (equals(v, YAMLElement_Nil())) {
|
|
18
|
+
return void 0;
|
|
19
|
+
} else {
|
|
20
|
+
return [tupledArg[0], v];
|
|
21
|
+
}
|
|
22
|
+
}, ofArray([tryInclude("arc_specification", string, validationpackage.ARCSpecification), ["validation_packages", resizearray(ValidationPackage_encoder, validationpackage.ValidationPackages)]]));
|
|
23
|
+
return YAMLElement_Object(toList(delay(() => collect((matchValue) => singleton(YAMLElement_Mapping(YAMLContent_create_27AED5E3(matchValue[0]), matchValue[1])), objSeq))));
|
|
24
|
+
}
|
|
25
|
+
const ValidationPackagesConfig_decoder = (value_2) => object((get$) => {
|
|
26
|
+
let objectArg, objectArg_1;
|
|
27
|
+
return new ValidationPackagesConfig((objectArg = get$.Required, objectArg.Field("validation_packages", (value) => resizearray$1(ValidationPackage_decoder, value))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("arc_specification", string$1))));
|
|
28
|
+
}, value_2);
|
|
29
|
+
function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_fromYamlString_Static_Z721C83C5(s) {
|
|
30
|
+
return ValidationPackagesConfig_decoder(read(s));
|
|
31
|
+
}
|
|
32
|
+
function ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F(whitespace) {
|
|
33
|
+
return (vp) => {
|
|
34
|
+
const element = ValidationPackagesConfig_encoder(vp);
|
|
35
|
+
const whitespace_1 = defaultWhitespace(whitespace) | 0;
|
|
36
|
+
return write(element, (c) => new Config(whitespace_1, c.Level));
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_fromYamlString_Static_Z721C83C5, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toYamlString_Static_71136F3F, ValidationPackagesConfig_decoder, ValidationPackagesConfig_encoder };
|