@nfdi4plants/arctrl 3.0.0-beta.4 → 3.0.0-beta.6
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/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
- package/dist/ts/ts/ARC.d.ts +12 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +172 -93
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +8 -1
- package/dist/ts/ts/Contract/ArcAssay.js +14 -5
- package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
- package/dist/ts/ts/Contract/ArcRun.js +19 -6
- package/dist/ts/ts/Contract/ArcStudy.js +19 -6
- package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
- package/dist/ts/ts/Contract/Contract.js +42 -1
- package/dist/ts/ts/Contract/Datamap.js +61 -17
- package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +22 -6
- package/dist/ts/ts/Contract/License.d.ts +5 -0
- package/dist/ts/ts/Contract/License.d.ts.map +1 -0
- package/dist/ts/ts/Contract/License.js +34 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
- package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
- package/dist/ts/ts/Conversion.js +321 -48
- package/dist/ts/ts/Core/ArcTypes.js +216 -15
- package/dist/ts/ts/Core/Comment.js +11 -1
- package/dist/ts/ts/Core/CommentList.js +77 -2
- package/dist/ts/ts/Core/Conversion.js +123 -43
- package/dist/ts/ts/Core/Data.js +9 -2
- package/dist/ts/ts/Core/DataContext.js +19 -4
- package/dist/ts/ts/Core/DataFile.js +38 -1
- package/dist/ts/ts/Core/DataMap.js +111 -5
- package/dist/ts/ts/Core/Helper/Collections.js +106 -5
- package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
- package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
- package/dist/ts/ts/Core/Helper/Regex.js +134 -2
- package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
- package/dist/ts/ts/Core/IdentifierSetters.d.ts +3 -1
- package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
- package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
- package/dist/ts/ts/Core/Person.js +8 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
- package/dist/ts/ts/Core/Process/Component.js +37 -4
- package/dist/ts/ts/Core/Process/Factor.js +9 -4
- package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
- package/dist/ts/ts/Core/Process/Material.js +14 -4
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
- package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
- package/dist/ts/ts/Core/Process/Process.js +150 -7
- package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
- package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
- package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
- package/dist/ts/ts/Core/Process/Protocol.js +78 -4
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
- package/dist/ts/ts/Core/Process/Sample.js +21 -3
- package/dist/ts/ts/Core/Process/Source.js +13 -3
- package/dist/ts/ts/Core/Publication.js +8 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
- package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
- package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
- package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
- package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
- package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
- package/dist/ts/ts/Core/Template.js +12 -2
- package/dist/ts/ts/Core/Templates.js +8 -4
- package/dist/ts/ts/Core/Value.js +7 -3
- package/dist/ts/ts/CrossAsync.js +11 -1
- package/dist/ts/ts/FileSystem/Commit.js +18 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
- package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +17 -3
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +28 -28
- package/dist/ts/ts/Json/Comment.js +10 -10
- package/dist/ts/ts/Json/Data.js +6 -6
- package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
- package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
- package/dist/ts/ts/Json/Decode.js +14 -9
- package/dist/ts/ts/Json/Encode.js +43 -11
- package/dist/ts/ts/Json/Investigation.js +40 -22
- package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
- package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
- package/dist/ts/ts/Json/Person.js +26 -26
- package/dist/ts/ts/Json/Process/Component.d.ts +6 -4
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +27 -7
- package/dist/ts/ts/Json/Process/Factor.js +3 -3
- package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
- package/dist/ts/ts/Json/Process/Material.js +9 -9
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
- package/dist/ts/ts/Json/Process/Process.js +12 -12
- package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
- package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +11 -8
- package/dist/ts/ts/Json/Process/Protocol.js +13 -13
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -2
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +21 -12
- package/dist/ts/ts/Json/Process/Sample.js +14 -14
- package/dist/ts/ts/Json/Process/Source.js +9 -9
- package/dist/ts/ts/Json/Process/Value.js +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +1 -1
- package/dist/ts/ts/Json/Publication.js +6 -6
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
- package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
- package/dist/ts/ts/Json/Run.d.ts +11 -0
- package/dist/ts/ts/Json/Run.d.ts.map +1 -0
- package/dist/ts/ts/Json/Run.js +76 -0
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +34 -34
- package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
- package/dist/ts/ts/Json/Table/CellTable.js +6 -6
- package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
- package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
- package/dist/ts/ts/Json/Table/IOType.js +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +7 -7
- package/dist/ts/ts/Json/Table/Templates.js +92 -6
- package/dist/ts/ts/Json/Workflow.d.ts +11 -0
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Json/Workflow.js +93 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
- package/dist/ts/ts/Json.d.ts +34 -2
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +129 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- package/dist/ts/ts/JsonIO/Investigation.js +15 -3
- package/dist/ts/ts/JsonIO/LDObject.js +17 -3
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
- package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
- package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Person.js +67 -0
- package/dist/ts/ts/JsonIO/Run.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Run.js +50 -0
- package/dist/ts/ts/JsonIO/Study.js +15 -3
- package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
- package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
- package/dist/ts/ts/JsonIO/Workflow.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Workflow.js +50 -0
- package/dist/ts/ts/License.d.ts +39 -0
- package/dist/ts/ts/License.d.ts.map +1 -0
- package/dist/ts/ts/License.js +123 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
- package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
- package/dist/ts/ts/ROCrate/LDContext.js +15 -6
- package/dist/ts/ts/ROCrate/LDObject.js +53 -17
- package/dist/ts/ts/ROCrateIO.d.ts +9 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +67 -14
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
- package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
- package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/Template.Web.js +5 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
- package/dist/ts/ts/Xlsx.d.ts +21 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +81 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
- package/package.json +1 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
package/dist/ts/ts/ARC.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { FileSystem } from './FileSystem/FileSystem.js';
|
|
2
|
-
import { unwrap, defaultArg, value, bind } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
-
import {
|
|
2
|
+
import { unwrap, defaultArg, value, map as map$2, bind, defaultArgWith } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { License } from './License.js';
|
|
4
|
+
import { ArcInvestigation, ArcWorkflow__get_Identifier, ArcWorkflow__get_DataMap, ArcWorkflow__set_DataMap_51F1E59E, ArcWorkflow__set_StaticHash_Z524259A4, ArcWorkflow__GetLightHashCode, ArcWorkflow__get_StaticHash, ArcWorkflow__Copy_6FCE9E49, ArcInvestigation_$reflection } from './Core/ArcTypes.js';
|
|
4
5
|
import { fullFillContractBatchAsync } from './ContractIO/ContractIO.js';
|
|
5
6
|
import { FSharpResult$2_Error, FSharpResult$2_Ok } from '../node_modules/@fable-org/fable-library-js/Result.js';
|
|
6
7
|
import { Contract } from './Contract/Contract.js';
|
|
7
8
|
import { PromiseBuilder__Run_212F1D4B, PromiseBuilder__Delay_62FBFDE1 } from './fable_modules/Fable.Promise.3.2.0/Promise.fs.js';
|
|
8
9
|
import { promise } from './fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js';
|
|
9
10
|
import { getAllFilePathsAsync } from './ContractIO/FileSystemHelper.js';
|
|
10
|
-
import {
|
|
11
|
-
import { stringHash, curry2, safeHash, getEnumerator, disposeSafe,
|
|
11
|
+
import { toArray, contains, delay, append, singleton, map, iterate, tryFind, find, empty, collect, toList } from '../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
12
|
+
import { defaultOf, stringHash, comparePrimitives, curry2, safeHash, getEnumerator, disposeSafe, equals } from '../node_modules/@fable-org/fable-library-js/Util.js';
|
|
12
13
|
import { getAssayFolderPath, getStudyFolderPath } from './FileSystem/Path.js';
|
|
13
|
-
import {
|
|
14
|
+
import { ARCtrl_ArcAssay__ArcAssay_ToDeleteContract, ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49, ARCtrl_ArcAssay__ArcAssay_ToUpdateContract, ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F } from './Contract/ArcAssay.js';
|
|
14
15
|
import { ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract, ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F } from './Contract/ArcInvestigation.js';
|
|
15
|
-
import {
|
|
16
|
-
import { map, choose, fold, concat, contains as contains$
|
|
17
|
-
import { replace,
|
|
16
|
+
import { ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49, ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F } from './Contract/ArcStudy.js';
|
|
17
|
+
import { map as map$1, choose, fold, concat, contains as contains$2, append as append$1, tryPick, equalsWith, item } from '../node_modules/@fable-org/fable-library-js/Array.js';
|
|
18
|
+
import { replace, join, toFail, printf, toText } from '../node_modules/@fable-org/fable-library-js/String.js';
|
|
18
19
|
import { createMissingIdentifier, Study_fileNameFromIdentifier, Study_datamapFileNameFromIdentifier, Assay_fileNameFromIdentifier, Assay_datamapFileNameFromIdentifier, Workflow_fileNameFromIdentifier, Workflow_datamapFileNameFromIdentifier, Run_fileNameFromIdentifier, Run_datamapFileNameFromIdentifier } from './Core/Helper/Identifier.js';
|
|
19
|
-
import { ofSeq,
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { FileSystemTree_Folder, FileSystemTree } from './FileSystem/FileSystemTree.js';
|
|
20
|
+
import { ofSeq, contains as contains$1, unionMany, FSharpSet__Contains } from '../node_modules/@fable-org/fable-library-js/Set.js';
|
|
21
|
+
import { ResizeArray_iter, ResizeArray_map } from './Core/Helper/Collections.js';
|
|
22
|
+
import { DataMap__get_DataContexts, DataMap__set_StaticHash_Z524259A4, DataMap__get_StaticHash } from './Core/DataMap.js';
|
|
23
|
+
import { FileSystemTree_Folder, FileSystemTree, FileSystemTree_File } from './FileSystem/FileSystemTree.js';
|
|
23
24
|
import { tryISAReadContractFromPath } from './Contract/ARC.js';
|
|
24
25
|
import { setInvestigationIdentifier } from './Core/IdentifierSetters.js';
|
|
25
26
|
import { ArcTables } from './Core/Table/ArcTables.js';
|
|
@@ -31,29 +32,31 @@ import { ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F } from './Sprea
|
|
|
31
32
|
import { ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E } from './Spreadsheet/ArcWorkflow.js';
|
|
32
33
|
import { ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8 } from './Spreadsheet/ArcRun.js';
|
|
33
34
|
import { Dictionary_tryGet } from './fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js';
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
35
|
+
import { ARCtrl_DataMap__DataMap_ToUpdateContractForStudy_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForStudy_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForAssay_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForAssay_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForWorkflow_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForWorkflow_Z721C83C5, ARCtrl_DataMap__DataMap_ToUpdateContractForRun_Z721C83C5, ARCtrl_DataMap__DataMap_ToCreateContractForRun_Z721C83C5, ARCtrl_DataMap__DataMap_tryFromReadContractForAssay_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForStudy_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForWorkflow_Static, ARCtrl_DataMap__DataMap_tryFromReadContractForRun_Static } from './Contract/Datamap.js';
|
|
36
|
+
import { ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49, ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract, ARCtrl_ArcWorkflow__ArcWorkflow_tryFromReadContract_Static_7570923F } from './Contract/ArcWorkflow.js';
|
|
37
|
+
import { ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49, ARCtrl_ArcRun__ArcRun_ToUpdateContract, ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F } from './Contract/ArcRun.js';
|
|
38
|
+
import { Init_createInitContract_6DFDD678, gitignoreContract, gitattributesContract, Init_createAddRemoteContract_Z721C83C5, Clone_createCloneContract_5000466F } from './Contract/Git.js';
|
|
38
39
|
import { ofSeq as ofSeq$1 } from '../node_modules/@fable-org/fable-library-js/Map.js';
|
|
39
40
|
import { fromString } from './fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
|
|
40
|
-
import { ROCrate_get_decoderDeprecated, ROCrate_get_decoder,
|
|
41
|
+
import { ROCrate_get_decoderDeprecated, ROCrate_get_decoder, ROCrate_encoder_1E8A3F74 } from './ROCrateIO.js';
|
|
41
42
|
import { toString } from './fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
|
|
42
43
|
import { defaultSpaces } from './Json/Encode.js';
|
|
43
44
|
import { ValidationPackagesConfigHelper_ConfigFilePath, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toCreateContract_Static_724DAE55, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toDeleteContract_Static_724DAE55, ValidationPackagesConfigHelper_ReadContract, ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_tryFromReadContract_Static_7570923F } from './Contract/ValidationPackagesConfig.js';
|
|
44
45
|
import { FSharpRef } from '../node_modules/@fable-org/fable-library-js/Types.js';
|
|
46
|
+
import { class_type } from '../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
45
47
|
|
|
46
48
|
class ARC extends ArcInvestigation {
|
|
47
|
-
constructor(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, cwl, fs) {
|
|
49
|
+
constructor(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, cwl, fs, license) {
|
|
48
50
|
super(identifier, unwrap(title), unwrap(description), unwrap(submissionDate), unwrap(publicReleaseDate), unwrap(ontologySourceReferences), unwrap(publications), unwrap(contacts), unwrap(assays), unwrap(studies), unwrap(workflows), unwrap(runs), unwrap(registeredStudyIdentifiers), unwrap(comments), unwrap(remarks));
|
|
49
51
|
let fs_1;
|
|
50
52
|
const this$ = new FSharpRef(defaultOf());
|
|
51
53
|
this$.contents = this;
|
|
52
54
|
this._cwl = cwl;
|
|
55
|
+
this._license = license;
|
|
53
56
|
this._fs = (fs_1 = defaultArg(fs, FileSystem.create({
|
|
54
57
|
tree: FileSystemTree_Folder("", [])
|
|
55
|
-
})),
|
|
56
|
-
this["init@
|
|
58
|
+
})), ARCAux_updateFSByARC(this$.contents, license, fs_1));
|
|
59
|
+
this["init@104"] = 1;
|
|
57
60
|
}
|
|
58
61
|
get FileSystem() {
|
|
59
62
|
const this$ = this;
|
|
@@ -63,8 +66,16 @@ class ARC extends ArcInvestigation {
|
|
|
63
66
|
const this$ = this;
|
|
64
67
|
this$._fs = fs;
|
|
65
68
|
}
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
get License() {
|
|
70
|
+
const this$ = this;
|
|
71
|
+
return unwrap(this$._license);
|
|
72
|
+
}
|
|
73
|
+
set License(license) {
|
|
74
|
+
const this$ = this;
|
|
75
|
+
this$._license = license;
|
|
76
|
+
}
|
|
77
|
+
static fromArcInvestigation(isa, cwl, fs, license) {
|
|
78
|
+
return new ARC(isa.Identifier, unwrap(isa.Title), unwrap(isa.Description), unwrap(isa.SubmissionDate), unwrap(isa.PublicReleaseDate), isa.OntologySourceReferences, isa.Publications, isa.Contacts, isa.Assays, isa.Studies, isa.Workflows, isa.Runs, isa.RegisteredStudyIdentifiers, isa.Comments, isa.Remarks, cwl, unwrap(fs), unwrap(license));
|
|
68
79
|
}
|
|
69
80
|
TryWriteAsync(arcPath) {
|
|
70
81
|
const this$ = this;
|
|
@@ -74,6 +85,24 @@ class ARC extends ArcInvestigation {
|
|
|
74
85
|
const this$ = this;
|
|
75
86
|
return fullFillContractBatchAsync(arcPath, this$.GetUpdateContracts());
|
|
76
87
|
}
|
|
88
|
+
SetLicenseFulltext(fulltext, path) {
|
|
89
|
+
const this$ = this;
|
|
90
|
+
const matchValue = this$.License;
|
|
91
|
+
if (matchValue == null) {
|
|
92
|
+
const license_1 = new License("fulltext", fulltext);
|
|
93
|
+
this$.License = license_1;
|
|
94
|
+
if (path != null) {
|
|
95
|
+
license_1.Path = value(path);
|
|
96
|
+
}
|
|
97
|
+
} else {
|
|
98
|
+
const license = value(matchValue);
|
|
99
|
+
license.Type = "fulltext";
|
|
100
|
+
license.Content = fulltext;
|
|
101
|
+
if (path != null) {
|
|
102
|
+
license.Path = value(path);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
77
106
|
static tryLoadAsync(arcPath) {
|
|
78
107
|
return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => getAllFilePathsAsync(arcPath).then((_arg) => {
|
|
79
108
|
const arc = ARC.fromFilePaths(toArray(_arg));
|
|
@@ -107,7 +136,7 @@ class ARC extends ArcInvestigation {
|
|
|
107
136
|
const assayFolderPath = getAssayFolderPath(assayIdentifier);
|
|
108
137
|
const filteredPaths = paths.filter((p) => !p.startsWith(assayFolderPath));
|
|
109
138
|
this$.SetFilePaths(filteredPaths);
|
|
110
|
-
return toArray(delay(() => append
|
|
139
|
+
return toArray(delay(() => append(singleton(ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(assay)), delay(() => append(singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$)), delay(() => map(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, studies)))))));
|
|
111
140
|
}
|
|
112
141
|
TryRemoveAssayAsync(arcPath, assayIdentifier) {
|
|
113
142
|
const this$ = this;
|
|
@@ -125,9 +154,9 @@ class ARC extends ArcInvestigation {
|
|
|
125
154
|
const paths = this$.FileSystem.Tree.ToFilePaths();
|
|
126
155
|
const oldAssayFolderPath = getAssayFolderPath(oldAssayIdentifier);
|
|
127
156
|
const newAssayFolderPath = getAssayFolderPath(newAssayIdentifier);
|
|
128
|
-
const renamedPaths = map((p) => replace(p, oldAssayFolderPath, newAssayFolderPath), paths);
|
|
157
|
+
const renamedPaths = map$1((p) => replace(p, oldAssayFolderPath, newAssayFolderPath), paths);
|
|
129
158
|
this$.SetFilePaths(renamedPaths);
|
|
130
|
-
return toArray(delay(() => append
|
|
159
|
+
return toArray(delay(() => append(singleton(Contract.createRename(oldAssayFolderPath, newAssayFolderPath)), delay(() => this$.GetUpdateContracts()))));
|
|
131
160
|
}
|
|
132
161
|
TryRenameAssayAsync(arcPath, oldAssayIdentifier, newAssayIdentifier) {
|
|
133
162
|
const this$ = this;
|
|
@@ -158,9 +187,9 @@ class ARC extends ArcInvestigation {
|
|
|
158
187
|
const paths = this$.FileSystem.Tree.ToFilePaths();
|
|
159
188
|
const oldStudyFolderPath = getStudyFolderPath(oldStudyIdentifier);
|
|
160
189
|
const newStudyFolderPath = getStudyFolderPath(newStudyIdentifier);
|
|
161
|
-
const renamedPaths = map((p) => replace(p, oldStudyFolderPath, newStudyFolderPath), paths);
|
|
190
|
+
const renamedPaths = map$1((p) => replace(p, oldStudyFolderPath, newStudyFolderPath), paths);
|
|
162
191
|
this$.SetFilePaths(renamedPaths);
|
|
163
|
-
return toArray(delay(() => append
|
|
192
|
+
return toArray(delay(() => append(singleton(Contract.createRename(oldStudyFolderPath, newStudyFolderPath)), delay(() => this$.GetUpdateContracts()))));
|
|
164
193
|
}
|
|
165
194
|
TryRenameStudyAsync(arcPath, oldStudyIdentifier, newStudyIdentifier) {
|
|
166
195
|
const this$ = this;
|
|
@@ -172,7 +201,7 @@ class ARC extends ArcInvestigation {
|
|
|
172
201
|
const result = _arg;
|
|
173
202
|
if (result.tag === /* Error */
|
|
174
203
|
1) {
|
|
175
|
-
const appended = join("\n", map((e) => e, result.fields[0]));
|
|
204
|
+
const appended = join("\n", map$1((e) => e, result.fields[0]));
|
|
176
205
|
toFail(printf("Could not write ARC, failed with the following errors %s"))(appended);
|
|
177
206
|
return Promise.resolve();
|
|
178
207
|
} else {
|
|
@@ -186,7 +215,7 @@ class ARC extends ArcInvestigation {
|
|
|
186
215
|
const result = _arg;
|
|
187
216
|
if (result.tag === /* Error */
|
|
188
217
|
1) {
|
|
189
|
-
const appended = join("\n", map((e) => e, result.fields[0]));
|
|
218
|
+
const appended = join("\n", map$1((e) => e, result.fields[0]));
|
|
190
219
|
toFail(printf("Could not update ARC, failed with the following errors %s"))(appended);
|
|
191
220
|
return Promise.resolve();
|
|
192
221
|
} else {
|
|
@@ -200,7 +229,7 @@ class ARC extends ArcInvestigation {
|
|
|
200
229
|
const result = _arg;
|
|
201
230
|
if (result.tag === /* Error */
|
|
202
231
|
1) {
|
|
203
|
-
const appended = join("\n", map((e) => e, result.fields[0]));
|
|
232
|
+
const appended = join("\n", map$1((e) => e, result.fields[0]));
|
|
204
233
|
toFail(printf("Could not remove assay, failed with the following errors %s"))(appended);
|
|
205
234
|
return Promise.resolve();
|
|
206
235
|
} else {
|
|
@@ -214,7 +243,7 @@ class ARC extends ArcInvestigation {
|
|
|
214
243
|
const result = _arg;
|
|
215
244
|
if (result.tag === /* Error */
|
|
216
245
|
1) {
|
|
217
|
-
const appended = join("\n", map((e) => e, result.fields[0]));
|
|
246
|
+
const appended = join("\n", map$1((e) => e, result.fields[0]));
|
|
218
247
|
toFail(printf("Could not rename assay, failed with the following errors %s"))(appended);
|
|
219
248
|
return Promise.resolve();
|
|
220
249
|
} else {
|
|
@@ -228,7 +257,7 @@ class ARC extends ArcInvestigation {
|
|
|
228
257
|
const result = _arg;
|
|
229
258
|
if (result.tag === /* Error */
|
|
230
259
|
1) {
|
|
231
|
-
const appended = join("\n", map((e) => e, result.fields[0]));
|
|
260
|
+
const appended = join("\n", map$1((e) => e, result.fields[0]));
|
|
232
261
|
toFail(printf("Could not remove study, failed with the following errors %s"))(appended);
|
|
233
262
|
return Promise.resolve();
|
|
234
263
|
} else {
|
|
@@ -242,7 +271,7 @@ class ARC extends ArcInvestigation {
|
|
|
242
271
|
const result = _arg;
|
|
243
272
|
if (result.tag === /* Error */
|
|
244
273
|
1) {
|
|
245
|
-
const appended = join("\n", map((e) => e, result.fields[0]));
|
|
274
|
+
const appended = join("\n", map$1((e) => e, result.fields[0]));
|
|
246
275
|
toFail(printf("Could not rename study, failed with the following errors %s"))(appended);
|
|
247
276
|
return Promise.resolve();
|
|
248
277
|
} else {
|
|
@@ -255,7 +284,7 @@ class ARC extends ArcInvestigation {
|
|
|
255
284
|
const result = _arg;
|
|
256
285
|
if (result.tag === /* Error */
|
|
257
286
|
1) {
|
|
258
|
-
const appended = join("\n", map((e) => e, result.fields[0]));
|
|
287
|
+
const appended = join("\n", map$1((e) => e, result.fields[0]));
|
|
259
288
|
toFail(printf("Could not load ARC, failed with the following errors %s"))(appended);
|
|
260
289
|
return Promise.resolve(new ARC(createMissingIdentifier()));
|
|
261
290
|
} else {
|
|
@@ -269,7 +298,7 @@ class ARC extends ArcInvestigation {
|
|
|
269
298
|
const filesPaths = ofSeq(this$.FileSystem.Tree.ToFilePaths(), {
|
|
270
299
|
Compare: comparePrimitives
|
|
271
300
|
});
|
|
272
|
-
const checkExistenceFromRoot = (p) => contains$
|
|
301
|
+
const checkExistenceFromRoot = (p) => contains$1(p, filesPaths);
|
|
273
302
|
const updateColumnOption = (dataNameFunction, col) => {
|
|
274
303
|
let col_1;
|
|
275
304
|
let matchResult, col_2;
|
|
@@ -293,6 +322,9 @@ class ARC extends ArcInvestigation {
|
|
|
293
322
|
}, col_2.Cells);
|
|
294
323
|
break;
|
|
295
324
|
}
|
|
325
|
+
case 1: {
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
296
328
|
}
|
|
297
329
|
};
|
|
298
330
|
const updateTable = (dataNameFunction_1, t) => {
|
|
@@ -351,10 +383,11 @@ class ARC extends ArcInvestigation {
|
|
|
351
383
|
this$.Comments = investigation.Comments;
|
|
352
384
|
this$.Remarks = investigation.Remarks;
|
|
353
385
|
this$.RegisteredStudyIdentifiers = investigation.RegisteredStudyIdentifiers;
|
|
354
|
-
const studies = map((tuple) => tuple[0], ARCAux_getArcStudiesFromContracts(contracts));
|
|
386
|
+
const studies = map$1((tuple) => tuple[0], ARCAux_getArcStudiesFromContracts(contracts));
|
|
355
387
|
const assays = ARCAux_getArcAssaysFromContracts(contracts);
|
|
356
388
|
const workflows = ARCAux_getArcWorkflowsFromContracts(contracts);
|
|
357
389
|
const runs = ARCAux_getArcRunsFromContracts(contracts);
|
|
390
|
+
const license = ARCAux_getLicenseFromContracts(contracts);
|
|
358
391
|
const array_2 = this$.AssayIdentifiers;
|
|
359
392
|
array_2.forEach((ai) => {
|
|
360
393
|
if (!assays.some((a) => a.Identifier === ai)) {
|
|
@@ -421,11 +454,12 @@ class ARC extends ArcInvestigation {
|
|
|
421
454
|
iterate((s_2) => {
|
|
422
455
|
s_2.StaticHash = s_2.GetLightHashCode() | 0;
|
|
423
456
|
}, this$.Studies);
|
|
457
|
+
this$.License = license;
|
|
424
458
|
this$.StaticHash = this$.GetLightHashCode() | 0;
|
|
425
459
|
}
|
|
426
460
|
UpdateFileSystem() {
|
|
427
461
|
const this$ = this;
|
|
428
|
-
const newFS =
|
|
462
|
+
const newFS = ARCAux_updateFSByARC(this$, this$._license, this$._fs);
|
|
429
463
|
this$._fs = newFS;
|
|
430
464
|
}
|
|
431
465
|
GetWriteContracts(skipUpdateFS) {
|
|
@@ -433,52 +467,60 @@ class ARC extends ArcInvestigation {
|
|
|
433
467
|
if (!defaultArg(skipUpdateFS, false)) {
|
|
434
468
|
this$.UpdateFileSystem();
|
|
435
469
|
}
|
|
436
|
-
const
|
|
437
|
-
addToDict(
|
|
470
|
+
const filemap = /* @__PURE__ */ new Map([]);
|
|
471
|
+
addToDict(filemap, "isa.investigation.xlsx", ["ISA_Investigation", ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF(this$)]);
|
|
438
472
|
this$.StaticHash = this$.GetLightHashCode() | 0;
|
|
439
473
|
iterate((s) => {
|
|
440
474
|
s.StaticHash = s.GetLightHashCode() | 0;
|
|
441
|
-
addToDict(
|
|
475
|
+
addToDict(filemap, Study_fileNameFromIdentifier(s.Identifier), ["ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(s)]);
|
|
442
476
|
if (s.DataMap != null) {
|
|
443
477
|
const dm = value(s.DataMap);
|
|
444
478
|
DataMap__set_StaticHash_Z524259A4(dm, safeHash(dm));
|
|
445
|
-
addToDict(
|
|
479
|
+
addToDict(filemap, Study_datamapFileNameFromIdentifier(s.Identifier), ["ISA_Datamap", toFsWorkbook(dm)]);
|
|
446
480
|
}
|
|
447
481
|
}, this$.Studies);
|
|
448
482
|
iterate((a) => {
|
|
449
483
|
a.StaticHash = a.GetLightHashCode() | 0;
|
|
450
|
-
addToDict(
|
|
484
|
+
addToDict(filemap, Assay_fileNameFromIdentifier(a.Identifier), ["ISA_Assay", ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(a)]);
|
|
451
485
|
if (a.DataMap != null) {
|
|
452
486
|
const dm_1 = value(a.DataMap);
|
|
453
487
|
DataMap__set_StaticHash_Z524259A4(dm_1, safeHash(dm_1));
|
|
454
|
-
addToDict(
|
|
488
|
+
addToDict(filemap, Assay_datamapFileNameFromIdentifier(a.Identifier), ["ISA_Datamap", toFsWorkbook(dm_1)]);
|
|
455
489
|
}
|
|
456
490
|
}, this$.Assays);
|
|
457
491
|
iterate((w) => {
|
|
458
492
|
ArcWorkflow__set_StaticHash_Z524259A4(w, ArcWorkflow__GetLightHashCode(w));
|
|
459
|
-
addToDict(
|
|
493
|
+
addToDict(filemap, Workflow_fileNameFromIdentifier(ArcWorkflow__get_Identifier(w)), ["ISA_Workflow", ARCtrl_ArcWorkflow__ArcWorkflow_toFsWorkbook_Static_Z1C75CB0E(w)]);
|
|
460
494
|
if (ArcWorkflow__get_DataMap(w) != null) {
|
|
461
495
|
const dm_2 = value(ArcWorkflow__get_DataMap(w));
|
|
462
496
|
DataMap__set_StaticHash_Z524259A4(dm_2, safeHash(dm_2));
|
|
463
|
-
addToDict(
|
|
497
|
+
addToDict(filemap, Workflow_datamapFileNameFromIdentifier(ArcWorkflow__get_Identifier(w)), ["ISA_Datamap", toFsWorkbook(dm_2)]);
|
|
464
498
|
}
|
|
465
499
|
}, this$.Workflows);
|
|
466
500
|
iterate((r) => {
|
|
467
501
|
r.StaticHash = r.GetLightHashCode() | 0;
|
|
468
|
-
addToDict(
|
|
502
|
+
addToDict(filemap, Run_fileNameFromIdentifier(r.Identifier), ["ISA_Run", ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8(r)]);
|
|
469
503
|
if (r.DataMap != null) {
|
|
470
504
|
const dm_3 = value(r.DataMap);
|
|
471
505
|
DataMap__set_StaticHash_Z524259A4(dm_3, safeHash(dm_3));
|
|
472
|
-
addToDict(
|
|
506
|
+
addToDict(filemap, Run_datamapFileNameFromIdentifier(r.Identifier), ["ISA_Datamap", toFsWorkbook(dm_3)]);
|
|
473
507
|
}
|
|
474
508
|
}, this$.Runs);
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
509
|
+
const matchValue = this$.License;
|
|
510
|
+
if (matchValue == null) {
|
|
511
|
+
} else {
|
|
512
|
+
const l = value(matchValue);
|
|
513
|
+
const matchValue_1 = l.Type;
|
|
514
|
+
l.StaticHash = safeHash(l) | 0;
|
|
515
|
+
addToDict(filemap, l.Path, ["PlainText", l.Content]);
|
|
516
|
+
}
|
|
517
|
+
return map$1((fp) => {
|
|
518
|
+
const matchValue_2 = Dictionary_tryGet(fp, filemap);
|
|
519
|
+
if (matchValue_2 == null) {
|
|
478
520
|
return Contract.createCreate(fp, "PlainText");
|
|
479
521
|
} else {
|
|
480
|
-
const wb = value(
|
|
481
|
-
const dto = value(
|
|
522
|
+
const wb = value(matchValue_2)[1];
|
|
523
|
+
const dto = value(matchValue_2)[0];
|
|
482
524
|
return Contract.createCreate(fp, dto, wb);
|
|
483
525
|
}
|
|
484
526
|
}, this$._fs.Tree.ToFilePaths(true));
|
|
@@ -491,11 +533,11 @@ class ARC extends ArcInvestigation {
|
|
|
491
533
|
} else {
|
|
492
534
|
return toArray(delay(() => {
|
|
493
535
|
const hash = this$.GetLightHashCode() | 0;
|
|
494
|
-
return append
|
|
536
|
+
return append(this$.StaticHash !== hash ? singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$)) : empty(), delay(() => {
|
|
495
537
|
this$.StaticHash = hash | 0;
|
|
496
|
-
return append
|
|
538
|
+
return append(collect((s) => {
|
|
497
539
|
const hash_1 = s.GetLightHashCode() | 0;
|
|
498
|
-
return append
|
|
540
|
+
return append(s.StaticHash === 0 ? ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true) : s.StaticHash !== hash_1 ? singleton(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(s)) : empty(), delay(() => {
|
|
499
541
|
let dm_1;
|
|
500
542
|
s.StaticHash = hash_1 | 0;
|
|
501
543
|
const matchValue = s.DataMap;
|
|
@@ -515,12 +557,12 @@ class ARC extends ArcInvestigation {
|
|
|
515
557
|
}
|
|
516
558
|
switch (matchResult) {
|
|
517
559
|
case 0:
|
|
518
|
-
return append
|
|
560
|
+
return append(singleton(ARCtrl_DataMap__DataMap_ToCreateContractForStudy_Z721C83C5(dm_2, s.Identifier)), delay(() => {
|
|
519
561
|
DataMap__set_StaticHash_Z524259A4(dm_2, safeHash(dm_2));
|
|
520
562
|
return empty();
|
|
521
563
|
}));
|
|
522
564
|
case 1:
|
|
523
|
-
return append
|
|
565
|
+
return append(singleton(ARCtrl_DataMap__DataMap_ToUpdateContractForStudy_Z721C83C5(dm_3, s.Identifier)), delay(() => {
|
|
524
566
|
DataMap__set_StaticHash_Z524259A4(dm_3, safeHash(dm_3));
|
|
525
567
|
return empty();
|
|
526
568
|
}));
|
|
@@ -529,9 +571,9 @@ class ARC extends ArcInvestigation {
|
|
|
529
571
|
}
|
|
530
572
|
}
|
|
531
573
|
}));
|
|
532
|
-
}, this$.Studies), delay(() => append
|
|
574
|
+
}, this$.Studies), delay(() => append(collect((a) => {
|
|
533
575
|
const hash_2 = a.GetLightHashCode() | 0;
|
|
534
|
-
return append
|
|
576
|
+
return append(a.StaticHash === 0 ? ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true) : a.StaticHash !== hash_2 ? singleton(ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(a)) : empty(), delay(() => {
|
|
535
577
|
let dm_5;
|
|
536
578
|
a.StaticHash = hash_2 | 0;
|
|
537
579
|
const matchValue_1 = a.DataMap;
|
|
@@ -551,12 +593,12 @@ class ARC extends ArcInvestigation {
|
|
|
551
593
|
}
|
|
552
594
|
switch (matchResult_1) {
|
|
553
595
|
case 0:
|
|
554
|
-
return append
|
|
596
|
+
return append(singleton(ARCtrl_DataMap__DataMap_ToCreateContractForAssay_Z721C83C5(dm_6, a.Identifier)), delay(() => {
|
|
555
597
|
DataMap__set_StaticHash_Z524259A4(dm_6, safeHash(dm_6));
|
|
556
598
|
return empty();
|
|
557
599
|
}));
|
|
558
600
|
case 1:
|
|
559
|
-
return append
|
|
601
|
+
return append(singleton(ARCtrl_DataMap__DataMap_ToUpdateContractForAssay_Z721C83C5(dm_7, a.Identifier)), delay(() => {
|
|
560
602
|
DataMap__set_StaticHash_Z524259A4(dm_7, safeHash(dm_7));
|
|
561
603
|
return empty();
|
|
562
604
|
}));
|
|
@@ -565,9 +607,9 @@ class ARC extends ArcInvestigation {
|
|
|
565
607
|
}
|
|
566
608
|
}
|
|
567
609
|
}));
|
|
568
|
-
}, this$.Assays), delay(() => append
|
|
610
|
+
}, this$.Assays), delay(() => append(collect((w) => {
|
|
569
611
|
const hash_3 = ArcWorkflow__GetLightHashCode(w) | 0;
|
|
570
|
-
return append
|
|
612
|
+
return append(ArcWorkflow__get_StaticHash(w) === 0 ? ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true) : ArcWorkflow__get_StaticHash(w) !== hash_3 ? singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract(w)) : empty(), delay(() => {
|
|
571
613
|
let dm_9;
|
|
572
614
|
ArcWorkflow__set_StaticHash_Z524259A4(w, hash_3);
|
|
573
615
|
const matchValue_2 = ArcWorkflow__get_DataMap(w);
|
|
@@ -587,12 +629,12 @@ class ARC extends ArcInvestigation {
|
|
|
587
629
|
}
|
|
588
630
|
switch (matchResult_2) {
|
|
589
631
|
case 0:
|
|
590
|
-
return append
|
|
632
|
+
return append(singleton(ARCtrl_DataMap__DataMap_ToCreateContractForWorkflow_Z721C83C5(dm_10, ArcWorkflow__get_Identifier(w))), delay(() => {
|
|
591
633
|
DataMap__set_StaticHash_Z524259A4(dm_10, safeHash(dm_10));
|
|
592
634
|
return empty();
|
|
593
635
|
}));
|
|
594
636
|
case 1:
|
|
595
|
-
return append
|
|
637
|
+
return append(singleton(ARCtrl_DataMap__DataMap_ToUpdateContractForWorkflow_Z721C83C5(dm_11, ArcWorkflow__get_Identifier(w))), delay(() => {
|
|
596
638
|
DataMap__set_StaticHash_Z524259A4(dm_11, safeHash(dm_11));
|
|
597
639
|
return empty();
|
|
598
640
|
}));
|
|
@@ -601,9 +643,9 @@ class ARC extends ArcInvestigation {
|
|
|
601
643
|
}
|
|
602
644
|
}
|
|
603
645
|
}));
|
|
604
|
-
}, this$.Workflows), delay(() => collect((r) => {
|
|
646
|
+
}, this$.Workflows), delay(() => append(collect((r) => {
|
|
605
647
|
const hash_4 = r.GetLightHashCode() | 0;
|
|
606
|
-
return append
|
|
648
|
+
return append(r.StaticHash === 0 ? ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true) : r.StaticHash !== hash_4 ? singleton(ARCtrl_ArcRun__ArcRun_ToUpdateContract(r)) : empty(), delay(() => {
|
|
607
649
|
let dm_13;
|
|
608
650
|
r.StaticHash = hash_4 | 0;
|
|
609
651
|
const matchValue_3 = r.DataMap;
|
|
@@ -623,12 +665,12 @@ class ARC extends ArcInvestigation {
|
|
|
623
665
|
}
|
|
624
666
|
switch (matchResult_3) {
|
|
625
667
|
case 0:
|
|
626
|
-
return append
|
|
668
|
+
return append(singleton(ARCtrl_DataMap__DataMap_ToCreateContractForRun_Z721C83C5(dm_14, r.Identifier)), delay(() => {
|
|
627
669
|
DataMap__set_StaticHash_Z524259A4(dm_14, safeHash(dm_14));
|
|
628
670
|
return empty();
|
|
629
671
|
}));
|
|
630
672
|
case 1:
|
|
631
|
-
return append
|
|
673
|
+
return append(singleton(ARCtrl_DataMap__DataMap_ToUpdateContractForRun_Z721C83C5(dm_15, r.Identifier)), delay(() => {
|
|
632
674
|
DataMap__set_StaticHash_Z524259A4(dm_15, safeHash(dm_15));
|
|
633
675
|
return empty();
|
|
634
676
|
}));
|
|
@@ -637,7 +679,19 @@ class ARC extends ArcInvestigation {
|
|
|
637
679
|
}
|
|
638
680
|
}
|
|
639
681
|
}));
|
|
640
|
-
}, this$.Runs))
|
|
682
|
+
}, this$.Runs), delay(() => {
|
|
683
|
+
const matchValue_4 = this$.License;
|
|
684
|
+
if (matchValue_4 == null) {
|
|
685
|
+
return empty();
|
|
686
|
+
} else {
|
|
687
|
+
const l = value(matchValue_4);
|
|
688
|
+
const hash_5 = safeHash(l) | 0;
|
|
689
|
+
return append(l.StaticHash === 0 ? singleton(l.ToCreateContract()) : l.StaticHash !== hash_5 ? singleton(l.ToUpdateContract()) : empty(), delay(() => {
|
|
690
|
+
l.StaticHash = hash_5 | 0;
|
|
691
|
+
return empty();
|
|
692
|
+
}));
|
|
693
|
+
}
|
|
694
|
+
}))))))));
|
|
641
695
|
}));
|
|
642
696
|
}));
|
|
643
697
|
}
|
|
@@ -645,7 +699,7 @@ class ARC extends ArcInvestigation {
|
|
|
645
699
|
GetGitInitContracts(branch, repositoryAddress, defaultGitignore, defaultGitattributes) {
|
|
646
700
|
const defaultGitignore_1 = defaultArg(defaultGitignore, false);
|
|
647
701
|
const defaultGitattributes_1 = defaultArg(defaultGitattributes, false);
|
|
648
|
-
return toArray(delay(() => append
|
|
702
|
+
return toArray(delay(() => append(singleton(Init_createInitContract_6DFDD678(unwrap(branch))), delay(() => append(defaultGitignore_1 ? singleton(gitignoreContract) : empty(), delay(() => append(defaultGitattributes_1 ? singleton(gitattributesContract) : empty(), delay(() => repositoryAddress != null ? singleton(Init_createAddRemoteContract_Z721C83C5(value(repositoryAddress))) : empty()))))))));
|
|
649
703
|
}
|
|
650
704
|
static getCloneContract(remoteUrl, merge, branch, token, nolfs) {
|
|
651
705
|
return Clone_createCloneContract_5000466F(remoteUrl, unwrap(merge), unwrap(branch), unwrap(token), unwrap(nolfs));
|
|
@@ -701,32 +755,33 @@ class ARC extends ArcInvestigation {
|
|
|
701
755
|
const nextPublications = ResizeArray_map((c_3) => c_3.Copy(), this$.Publications);
|
|
702
756
|
const nextOntologySourceReferences = ResizeArray_map((c_4) => c_4.Copy(), this$.OntologySourceReferences);
|
|
703
757
|
const nextStudyIdentifiers = Array.from(this$.RegisteredStudyIdentifiers);
|
|
758
|
+
const nextLicense = map$2((_arg) => _arg.Copy(), this$.License);
|
|
704
759
|
const fsCopy = this$._fs.Copy();
|
|
705
|
-
return new ARC(this$.Identifier, unwrap(this$.Title), unwrap(this$.Description), unwrap(this$.SubmissionDate), unwrap(this$.PublicReleaseDate), nextOntologySourceReferences, nextPublications, nextContacts, nextAssays, nextStudies, nextWorkflows, nextRuns, nextStudyIdentifiers, nextComments, nextRemarks, this$._cwl, fsCopy);
|
|
760
|
+
return new ARC(this$.Identifier, unwrap(this$.Title), unwrap(this$.Description), unwrap(this$.SubmissionDate), unwrap(this$.PublicReleaseDate), nextOntologySourceReferences, nextPublications, nextContacts, nextAssays, nextStudies, nextWorkflows, nextRuns, nextStudyIdentifiers, nextComments, nextRemarks, this$._cwl, fsCopy, unwrap(nextLicense));
|
|
706
761
|
}
|
|
707
762
|
GetRegisteredPayload(IgnoreHidden) {
|
|
708
763
|
let tree, paths, array_3;
|
|
709
764
|
const this$ = this;
|
|
710
765
|
const copy = this$.Copy();
|
|
711
766
|
const registeredStudies = copy.Studies.slice();
|
|
712
|
-
const registeredAssays = concat(map((s) => s.RegisteredAssays.slice(), registeredStudies));
|
|
713
|
-
const includeFiles = unionMany([ofSeq(
|
|
767
|
+
const registeredAssays = concat(map$1((s) => s.RegisteredAssays.slice(), registeredStudies));
|
|
768
|
+
const includeFiles = unionMany([ofSeq(toList(delay(() => append(singleton("isa.investigation.xlsx"), delay(() => append(singleton("README.md"), delay(() => this$.License != null ? singleton(value(this$.License).Path) : empty())))))), {
|
|
714
769
|
Compare: comparePrimitives
|
|
715
|
-
}), unionMany(map((s_1) => {
|
|
770
|
+
}), unionMany(map$1((s_1) => {
|
|
716
771
|
const studyFoldername = `${"studies"}/${s_1.Identifier}`;
|
|
717
|
-
return ofSeq(toList(delay(() => append
|
|
772
|
+
return ofSeq(toList(delay(() => append(singleton(`${studyFoldername}/${"isa.study.xlsx"}`), delay(() => append(singleton(`${studyFoldername}/${"README.md"}`), delay(() => collect((table) => collect((kv) => {
|
|
718
773
|
const textValue = kv[1].ToFreeTextCell().AsFreeText;
|
|
719
|
-
return append
|
|
774
|
+
return append(singleton(textValue), delay(() => append(singleton(`${studyFoldername}/${"resources"}/${textValue}`), delay(() => singleton(`${studyFoldername}/${"protocols"}/${textValue}`)))));
|
|
720
775
|
}, table.Values), s_1.Tables))))))), {
|
|
721
776
|
Compare: comparePrimitives
|
|
722
777
|
});
|
|
723
778
|
}, registeredStudies), {
|
|
724
779
|
Compare: comparePrimitives
|
|
725
|
-
}), unionMany(map((a) => {
|
|
780
|
+
}), unionMany(map$1((a) => {
|
|
726
781
|
const assayFoldername = `${"assays"}/${a.Identifier}`;
|
|
727
|
-
return ofSeq(toList(delay(() => append
|
|
782
|
+
return ofSeq(toList(delay(() => append(singleton(`${assayFoldername}/${"isa.assay.xlsx"}`), delay(() => append(singleton(`${assayFoldername}/${"README.md"}`), delay(() => collect((table_1) => collect((kv_1) => {
|
|
728
783
|
const textValue_1 = kv_1[1].ToFreeTextCell().AsFreeText;
|
|
729
|
-
return append
|
|
784
|
+
return append(singleton(textValue_1), delay(() => append(singleton(`${assayFoldername}/${"dataset"}/${textValue_1}`), delay(() => singleton(`${assayFoldername}/${"protocols"}/${textValue_1}`)))));
|
|
730
785
|
}, table_1.Values), a.Tables))))))), {
|
|
731
786
|
Compare: comparePrimitives
|
|
732
787
|
});
|
|
@@ -803,7 +858,7 @@ class ARC extends ArcInvestigation {
|
|
|
803
858
|
let fileSystem;
|
|
804
859
|
const paths = Array.from(patternInput[1]);
|
|
805
860
|
fileSystem = FileSystem.fromFilePaths(paths);
|
|
806
|
-
return ARC.fromArcInvestigation(patternInput[0], void 0, fileSystem);
|
|
861
|
+
return ARC.fromArcInvestigation(patternInput[0], void 0, fileSystem, unwrap(patternInput[2]));
|
|
807
862
|
} catch (ex) {
|
|
808
863
|
const arg_1 = ex.message;
|
|
809
864
|
return toFail(printf("Could not parse ARC-RO-Crate metadata: \n%s"))(arg_1);
|
|
@@ -812,20 +867,25 @@ class ARC extends ArcInvestigation {
|
|
|
812
867
|
ToROCrateJsonString(spaces) {
|
|
813
868
|
const this$ = this;
|
|
814
869
|
this$.MakeDataFilesAbsolute();
|
|
815
|
-
const value =
|
|
870
|
+
const value = ROCrate_encoder_1E8A3F74(this$, unwrap(this$._license), this$._fs);
|
|
816
871
|
return toString(defaultSpaces(spaces), value);
|
|
817
872
|
}
|
|
818
873
|
static toROCrateJsonString(spaces) {
|
|
819
874
|
return (obj) => obj.ToROCrateJsonString(unwrap(spaces));
|
|
820
875
|
}
|
|
876
|
+
GetLicenseWriteContract() {
|
|
877
|
+
const this$ = this;
|
|
878
|
+
const _arg = defaultArgWith(this$.License, () => License.GetDefaultLicense());
|
|
879
|
+
return _arg.ToCreateContract();
|
|
880
|
+
}
|
|
821
881
|
GetValidationPackagesConfigWriteContract(vpc) {
|
|
822
882
|
const this$ = this;
|
|
823
883
|
const paths = this$.FileSystem.Tree.ToFilePaths();
|
|
824
|
-
if (!contains$
|
|
884
|
+
if (!contains$2(ValidationPackagesConfigHelper_ConfigFilePath, paths, {
|
|
825
885
|
Equals: (x, y) => x === y,
|
|
826
886
|
GetHashCode: stringHash
|
|
827
887
|
})) {
|
|
828
|
-
const filePaths = append([ValidationPackagesConfigHelper_ConfigFilePath], paths);
|
|
888
|
+
const filePaths = append$1([ValidationPackagesConfigHelper_ConfigFilePath], paths);
|
|
829
889
|
this$.SetFilePaths(filePaths);
|
|
830
890
|
}
|
|
831
891
|
return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toCreateContract_Static_724DAE55(vpc);
|
|
@@ -833,14 +893,14 @@ class ARC extends ArcInvestigation {
|
|
|
833
893
|
GetValidationPackagesConfigDeleteContract(vpc) {
|
|
834
894
|
const this$ = this;
|
|
835
895
|
const paths = this$.FileSystem.Tree.ToFilePaths();
|
|
836
|
-
if (contains$
|
|
896
|
+
if (contains$2(ValidationPackagesConfigHelper_ConfigFilePath, paths, {
|
|
837
897
|
Equals: (x, y) => x === y,
|
|
838
898
|
GetHashCode: stringHash
|
|
839
899
|
})) {
|
|
840
900
|
const filePaths = paths.filter((p) => !(p === ValidationPackagesConfigHelper_ConfigFilePath));
|
|
841
901
|
this$.SetFilePaths(filePaths);
|
|
842
902
|
}
|
|
843
|
-
return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toDeleteContract_Static_724DAE55();
|
|
903
|
+
return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toDeleteContract_Static_724DAE55(vpc);
|
|
844
904
|
}
|
|
845
905
|
GetValidationPackagesConfigReadContract() {
|
|
846
906
|
return ValidationPackagesConfigHelper_ReadContract;
|
|
@@ -856,6 +916,12 @@ class ARC extends ArcInvestigation {
|
|
|
856
916
|
return this$.FileSystem.Tree.ToFilePaths(unwrap(removeRoot));
|
|
857
917
|
}
|
|
858
918
|
}
|
|
919
|
+
function ARC_$reflection() {
|
|
920
|
+
return class_type("ARCtrl.ARC", void 0, ARC, ArcInvestigation_$reflection());
|
|
921
|
+
}
|
|
922
|
+
function ARC_$ctor_Z4D7EB22(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, cwl, fs, license) {
|
|
923
|
+
return new ARC(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, cwl, fs, license);
|
|
924
|
+
}
|
|
859
925
|
function ARCAux_getArcAssaysFromContracts(contracts) {
|
|
860
926
|
return choose(ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F, contracts);
|
|
861
927
|
}
|
|
@@ -889,26 +955,39 @@ function ARCAux_getArcInvestigationFromContracts(contracts) {
|
|
|
889
955
|
return toFail(printf("Could not find investigation in contracts. Expected exactly one investigation, but found %d."))(arg);
|
|
890
956
|
}
|
|
891
957
|
}
|
|
892
|
-
function
|
|
958
|
+
function ARCAux_getLicenseFromContracts(contracts) {
|
|
959
|
+
return tryPick((c) => License.tryFromReadContract(c), contracts);
|
|
960
|
+
}
|
|
961
|
+
function ARCAux_updateFSByARC(isa, license, fs) {
|
|
893
962
|
let assaysFolder;
|
|
894
|
-
const assays = map((a) => FileSystemTree.createAssayFolder(a.Identifier, a.DataMap != null), toArray(isa.Assays));
|
|
963
|
+
const assays = map$1((a) => FileSystemTree.createAssayFolder(a.Identifier, a.DataMap != null), toArray(isa.Assays));
|
|
895
964
|
assaysFolder = FileSystemTree.createAssaysFolder(assays);
|
|
896
965
|
let studiesFolder;
|
|
897
|
-
const studies = map((s) => FileSystemTree.createStudyFolder(s.Identifier, s.DataMap != null), toArray(isa.Studies));
|
|
966
|
+
const studies = map$1((s) => FileSystemTree.createStudyFolder(s.Identifier, s.DataMap != null), toArray(isa.Studies));
|
|
898
967
|
studiesFolder = FileSystemTree.createStudiesFolder(studies);
|
|
899
968
|
let workflowsFolder;
|
|
900
|
-
const workflows = map((w) => FileSystemTree.createWorkflowFolder(ArcWorkflow__get_Identifier(w), ArcWorkflow__get_DataMap(w) != null), toArray(isa.Workflows));
|
|
969
|
+
const workflows = map$1((w) => FileSystemTree.createWorkflowFolder(ArcWorkflow__get_Identifier(w), ArcWorkflow__get_DataMap(w) != null), toArray(isa.Workflows));
|
|
901
970
|
workflowsFolder = FileSystemTree.createWorkflowsFolder(workflows);
|
|
902
971
|
let runsFolder;
|
|
903
|
-
const runs = map((r) => FileSystemTree.createRunFolder(r.Identifier, r.DataMap != null), toArray(isa.Runs));
|
|
972
|
+
const runs = map$1((r) => FileSystemTree.createRunFolder(r.Identifier, r.DataMap != null), toArray(isa.Runs));
|
|
904
973
|
runsFolder = FileSystemTree.createRunsFolder(runs);
|
|
905
974
|
const investigation = FileSystemTree.createInvestigationFile();
|
|
906
975
|
let tree_1;
|
|
907
|
-
const tree = FileSystemTree.createRootFolder(
|
|
976
|
+
const tree = FileSystemTree.createRootFolder(toArray(delay(() => append(singleton(investigation), delay(() => append(singleton(assaysFolder), delay(() => append(singleton(studiesFolder), delay(() => append(singleton(workflowsFolder), delay(() => append(singleton(runsFolder), delay(() => license != null ? singleton(FileSystemTree_File(value(license).Path)) : empty())))))))))))));
|
|
977
|
+
tree_1 = FileSystem.create({
|
|
978
|
+
tree
|
|
979
|
+
});
|
|
980
|
+
return fs.Union(tree_1);
|
|
981
|
+
}
|
|
982
|
+
function ARCAux_updateFSByCWL(cwl, fs) {
|
|
983
|
+
const workflows = FileSystemTree.createWorkflowsFolder([]);
|
|
984
|
+
const runs = FileSystemTree.createRunsFolder([]);
|
|
985
|
+
let tree_1;
|
|
986
|
+
const tree = FileSystemTree.createRootFolder([workflows, runs]);
|
|
908
987
|
tree_1 = FileSystem.create({
|
|
909
988
|
tree
|
|
910
989
|
});
|
|
911
990
|
return fs.Union(tree_1);
|
|
912
991
|
}
|
|
913
992
|
|
|
914
|
-
export { ARC, ARCAux_getArcAssaysFromContracts, ARCAux_getArcInvestigationFromContracts, ARCAux_getArcRunsFromContracts, ARCAux_getArcStudiesFromContracts, ARCAux_getArcWorkflowsFromContracts, ARCAux_getAssayDataMapFromContracts, ARCAux_getRunDataMapFromContracts, ARCAux_getStudyDataMapFromContracts, ARCAux_getWorkflowDataMapFromContracts,
|
|
993
|
+
export { ARC, ARCAux_getArcAssaysFromContracts, ARCAux_getArcInvestigationFromContracts, ARCAux_getArcRunsFromContracts, ARCAux_getArcStudiesFromContracts, ARCAux_getArcWorkflowsFromContracts, ARCAux_getAssayDataMapFromContracts, ARCAux_getLicenseFromContracts, ARCAux_getRunDataMapFromContracts, ARCAux_getStudyDataMapFromContracts, ARCAux_getWorkflowDataMapFromContracts, ARCAux_updateFSByARC, ARCAux_updateFSByCWL, ARC_$ctor_Z4D7EB22, ARC_$reflection };
|