@nfdi4plants/arctrl 3.2.2 → 3.3.0
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 +0 -64
- package/dist/ts/index.d.ts +44 -7
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +45 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
- package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
- package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
- package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
- package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
- package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
- package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
- package/dist/ts/ts/ARC.d.ts +22 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +282 -185
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
- package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLTypes.js +887 -201
- package/dist/ts/ts/CWL/Decode.d.ts +480 -211
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +3614 -2462
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
- package/dist/ts/ts/CWL/Encode.d.ts +225 -85
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +1858 -970
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
- package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/HashHelpers.js +255 -6
- package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Inputs.js +107 -16
- package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/OperationDescription.js +35 -9
- package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Outputs.js +101 -19
- package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
- package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterReference.js +18 -25
- package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
- package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterValue.js +59 -35
- package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Requirements.js +462 -89
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ToolDescription.js +34 -13
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
- package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
- package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
- package/dist/ts/ts/CWLRunResolver.js +221 -86
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +13 -14
- package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcAssay.js +4 -4
- package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
- package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
- package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcRun.js +47 -20
- package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcStudy.js +4 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
- package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Datamap.js +16 -17
- package/dist/ts/ts/Contract/Git.js +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
- package/dist/ts/ts/ContractIO/ContractIO.d.ts +7 -0
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +95 -18
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -0
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +12 -5
- package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Assay.js +26 -18
- package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
- package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Basic.js +55 -31
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
- package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/DateTime.js +1 -2
- package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Investigation.js +15 -14
- package/dist/ts/ts/Conversion/Person.js +11 -11
- package/dist/ts/ts/Conversion/Process.d.ts +4 -2
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Process.js +134 -97
- package/dist/ts/ts/Conversion/Run.d.ts +36 -6
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Run.js +320 -136
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
- package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Study.js +23 -12
- package/dist/ts/ts/Conversion/Table.d.ts +3 -2
- package/dist/ts/ts/Conversion/Table.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Table.js +8 -8
- package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Workflow.js +655 -163
- package/dist/ts/ts/Conversion.js +6 -6
- package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +219 -129
- package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Core/Comment.js +2 -2
- package/dist/ts/ts/Core/CommentList.js +7 -7
- package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Core/Conversion.js +68 -59
- package/dist/ts/ts/Core/Data.d.ts +6 -0
- package/dist/ts/ts/Core/Data.d.ts.map +1 -1
- package/dist/ts/ts/Core/Data.js +32 -12
- package/dist/ts/ts/Core/DataContext.d.ts +1 -1
- package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataContext.js +4 -4
- package/dist/ts/ts/Core/DataFile.d.ts +11 -8
- package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataFile.js +55 -61
- package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Core/Datamap.js +2 -3
- package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Collections.js +2 -4
- package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
- package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
- package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Regex.js +52 -53
- package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
- package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
- package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Url.js +1 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
- package/dist/ts/ts/Core/Person.d.ts.map +1 -1
- package/dist/ts/ts/Core/Person.js +2 -2
- package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
- package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Component.js +22 -22
- package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Factor.js +7 -7
- package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
- package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Material.js +2 -2
- package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
- package/dist/ts/ts/Core/Process/Process.js +21 -21
- package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
- package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
- package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Protocol.js +9 -9
- package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Core/Publication.js +3 -3
- package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/ScalarValue.js +9 -13
- package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.js +59 -70
- package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
- package/dist/ts/ts/Core/Table/CompositeCell.d.ts +4 -0
- package/dist/ts/ts/Core/Table/CompositeCell.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/CompositeCell.js +39 -2
- package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
- package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
- package/dist/ts/ts/Core/Templates.js +2 -2
- package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +37 -19
- package/dist/ts/ts/Json/Assay.js +22 -22
- package/dist/ts/ts/Json/Comment.js +9 -9
- package/dist/ts/ts/Json/Data.d.ts.map +1 -1
- package/dist/ts/ts/Json/Data.js +11 -11
- package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
- package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
- package/dist/ts/ts/Json/Decode.js +3 -5
- package/dist/ts/ts/Json/Encode.js +2 -2
- package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/Json/Investigation.js +20 -20
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
- package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
- package/dist/ts/ts/Json/Person.d.ts.map +1 -1
- package/dist/ts/ts/Json/Person.js +20 -20
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +5 -6
- package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +7 -7
- package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
- package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Material.js +9 -10
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
- package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Process.js +8 -9
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
- package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +17 -17
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +9 -9
- package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Source.js +10 -11
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
- package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +24 -24
- package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Json/Publication.js +10 -10
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
- package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
- package/dist/ts/ts/Json/Run.js +9 -9
- package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
- package/dist/ts/ts/Json/StringTable.js +4 -7
- package/dist/ts/ts/Json/Study.js +20 -20
- package/dist/ts/ts/Json/Table/CellTable.js +1 -2
- package/dist/ts/ts/Json/Table/OATable.js +1 -2
- package/dist/ts/ts/Json/Workflow.js +9 -9
- package/dist/ts/ts/Json.d.ts +121 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +310 -2
- package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Comment.js +67 -0
- package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Data.js +49 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/DataFile.js +48 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/JsonIO/LDObject.js +173 -17
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Publication.js +68 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
- package/dist/ts/ts/License.d.ts.map +1 -1
- package/dist/ts/ts/License.js +6 -6
- package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDContext.js +31 -39
- package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDObject.js +56 -49
- package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
- package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
- package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
- package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
- package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
- package/dist/ts/ts/ROCrateIO.d.ts +18 -4
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +49 -38
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +10 -12
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
- package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
- package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +8 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts +8 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +18 -7
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +4 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -8
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +5 -7
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +2 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +7 -9
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +6 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +9 -11
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
- package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +10 -12
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +7 -9
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
- package/dist/ts/ts/Xlsx.js +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
- package/package.json +5 -4
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
package/dist/ts/ts/ARC.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { FileSystem } from './FileSystem/FileSystem.js';
|
|
2
|
-
import { unwrap, defaultArg, value } from '../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
2
|
+
import { unwrap, defaultArg, value, toArray as toArray$1 } from '../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
3
3
|
import { License } from './License.js';
|
|
4
4
|
import { ArcInvestigation, ArcInvestigation_$reflection } from './Core/ArcTypes.js';
|
|
5
|
+
import { append, map, choose, item, fold, concat, contains as contains$2, tryPick, equalsWith } from '../node_modules/@fable-org/fable-library-ts/Array.js';
|
|
5
6
|
import { defaultOf, stringHash, Exception, comparePrimitives, curry2, safeHash, getEnumerator, disposeSafe, equals } from '../node_modules/@fable-org/fable-library-ts/Util.js';
|
|
6
7
|
import { Contract } from './Contract/Contract.js';
|
|
7
|
-
import { fullFillContractBatchAsync } from './ContractIO/ContractIO.js';
|
|
8
|
+
import { fullFillContractBatchAsync, tryFulfillEmptyEntityContractAsync } from './ContractIO/ContractIO.js';
|
|
8
9
|
import { FSharpResult$2_Error$, FSharpResult$2_Ok } from '../node_modules/@fable-org/fable-library-ts/Result.js';
|
|
9
10
|
import { PromiseBuilder__Run_212F1D4B, PromiseBuilder__Delay_62FBFDE1 } from './fable_modules/Fable.Promise.3.2.0/Promise.fs.js';
|
|
10
11
|
import { promise } from './fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js';
|
|
11
12
|
import { getAllFilePathsAsync } from './ContractIO/FileSystemHelper.js';
|
|
12
|
-
import { toArray, contains, delay, append, singleton, iterate, tryFind, find, collect, empty, toList } from '../node_modules/@fable-org/fable-library-ts/Seq.js';
|
|
13
|
-
import {
|
|
13
|
+
import { toArray, contains, delay, append as append$1, singleton, iterate, tryFind, find, collect, empty, toList } from '../node_modules/@fable-org/fable-library-ts/Seq.js';
|
|
14
|
+
import { all } from './CrossAsync.js';
|
|
15
|
+
import { split, getAssayFolderPath, getRunFolderPath, getWorkflowFolderPath, getStudyFolderPath, combine, normalizePathKey } from './FileSystem/Path.js';
|
|
14
16
|
import { ARCtrl_ArcAssay__ArcAssay_ToDeleteContract, ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49, ARCtrl_ArcAssay__ArcAssay_ToUpdateContract, ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F } from './Contract/ArcAssay.js';
|
|
15
|
-
import { ARCtrl_ArcRun__ArcRun_ToDeleteContract, ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49, ARCtrl_ArcRun__ArcRun_ToUpdateContract, ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F, ARCtrl_ArcRun__ArcRun_tryCWLFromReadContract_Static, ARCtrl_ArcRun__ArcRun_tryYMLFromReadContract_Static } from './Contract/ArcRun.js';
|
|
16
|
-
import { ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract, ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49, ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract, ARCtrl_ArcWorkflow__ArcWorkflow_tryFromReadContract_Static_7570923F, ARCtrl_ArcWorkflow__ArcWorkflow_tryCWLFromReadContract_Static } from './Contract/ArcWorkflow.js';
|
|
17
|
+
import { ARCtrl_ArcRun__ArcRun_ToDeleteContract, ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49, ARCtrl_ArcRun__ArcRun_ToUpdateContract, ARCtrl_ArcRun__ArcRun_TryToCWLContract_Z2D283928, ARCtrl_ArcRun__ArcRun_TryToYMLContract_Z2D283928, ARCtrl_ArcRun__ArcRun_tryFromReadContract_Static_7570923F, ARCtrl_ArcRun__ArcRun_tryCWLFromReadContract_Static, ARCtrl_ArcRun__ArcRun_tryYMLFromReadContract_Static } from './Contract/ArcRun.js';
|
|
18
|
+
import { ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract, ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49, ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract, ARCtrl_ArcWorkflow__ArcWorkflow_TryToCWLContract_Z2D283928, ARCtrl_ArcWorkflow__ArcWorkflow_tryFromReadContract_Static_7570923F, ARCtrl_ArcWorkflow__ArcWorkflow_tryCWLFromReadContract_Static, CWLFileReading_decodeCWLFile } from './Contract/ArcWorkflow.js';
|
|
17
19
|
import { join, toFail, printf, replace, concat as concat$1, toText } from '../node_modules/@fable-org/fable-library-ts/String.js';
|
|
18
|
-
import { map, choose, fold, concat, contains as contains$2, append as append$1, tryPick, equalsWith, item } from '../node_modules/@fable-org/fable-library-ts/Array.js';
|
|
19
20
|
import { ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract, ARCtrl_ArcInvestigation__ArcInvestigation_ToCreateContract, ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F } from './Contract/ArcInvestigation.js';
|
|
20
|
-
import { createMissingIdentifier, Workflow_cwlFileNameFromIdentifier, Run_cwlFileNameFromIdentifier } from './Core/Helper/Identifier.js';
|
|
21
|
+
import { createMissingIdentifier, Workflow_cwlFileNameFromIdentifier, Run_cwlFileNameFromIdentifier, Run_ymlFileNameFromIdentifier } from './Core/Helper/Identifier.js';
|
|
21
22
|
import { ofSeq, contains as contains$1, unionMany, FSharpSet__Contains } from '../node_modules/@fable-org/fable-library-ts/Set.js';
|
|
22
23
|
import { ResizeArray_iter, ResizeArray_map } from './Core/Helper/Collections.js';
|
|
23
24
|
import { FileSystemTree_Folder, FileSystemTree, FileSystemTree_File } from './FileSystem/FileSystemTree.js';
|
|
@@ -37,7 +38,6 @@ import { ValidationPackagesConfigHelper_ConfigFilePath, ARCtrl_ValidationPackage
|
|
|
37
38
|
import { ofInvestigation } from './WorkflowGraph/Adapters.js';
|
|
38
39
|
import { FSharpRef } from '../node_modules/@fable-org/fable-library-ts/Types.js';
|
|
39
40
|
import { class_type } from '../node_modules/@fable-org/fable-library-ts/Reflection.js';
|
|
40
|
-
import { Decode_decodeCWLProcessingUnit } from './CWL/Decode.js';
|
|
41
41
|
|
|
42
42
|
class ARC extends ArcInvestigation {
|
|
43
43
|
constructor(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, fs, license) {
|
|
@@ -49,7 +49,7 @@ class ARC extends ArcInvestigation {
|
|
|
49
49
|
this._fs = (fs_1 = defaultArg(fs, FileSystem.create({
|
|
50
50
|
tree: FileSystemTree_Folder("", [])
|
|
51
51
|
})), ARCAux_updateFSByARC(this$.contents, license, fs_1));
|
|
52
|
-
this["init@
|
|
52
|
+
this["init@179"] = 1;
|
|
53
53
|
}
|
|
54
54
|
get FileSystem() {
|
|
55
55
|
const this$ = this;
|
|
@@ -70,9 +70,9 @@ class ARC extends ArcInvestigation {
|
|
|
70
70
|
static fromArcInvestigation(isa, fs, license) {
|
|
71
71
|
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, unwrap(fs), unwrap(license));
|
|
72
72
|
}
|
|
73
|
-
TryWriteAsync(arcPath, forceOverwrite) {
|
|
73
|
+
TryWriteAsync(arcPath, forceOverwrite, additionalContracts) {
|
|
74
74
|
const this$ = this;
|
|
75
|
-
const cs = this$.GetWriteContracts();
|
|
75
|
+
const cs = append(this$.GetWriteContracts(), defaultArg(additionalContracts, []));
|
|
76
76
|
return fullFillContractBatchAsync(defaultArg(forceOverwrite, false), arcPath, cs);
|
|
77
77
|
}
|
|
78
78
|
TryUpdateAsync(arcPath, forceOverwrite) {
|
|
@@ -90,7 +90,7 @@ class ARC extends ArcInvestigation {
|
|
|
90
90
|
license_1.Path = value(path);
|
|
91
91
|
}
|
|
92
92
|
} else {
|
|
93
|
-
const license =
|
|
93
|
+
const license = matchValue;
|
|
94
94
|
license.Type = "fulltext";
|
|
95
95
|
license.Content = fulltext;
|
|
96
96
|
if (path != null) {
|
|
@@ -102,17 +102,75 @@ class ARC extends ArcInvestigation {
|
|
|
102
102
|
return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => getAllFilePathsAsync(arcPath).then((_arg) => {
|
|
103
103
|
const arc = ARC.fromFilePaths(toArray(_arg));
|
|
104
104
|
const contracts = arc.GetReadContracts();
|
|
105
|
-
return
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
105
|
+
return all(map((c) => tryFulfillEmptyEntityContractAsync(arcPath, c), contracts)).then((_arg_1) => {
|
|
106
|
+
const recoveredContracts_1 = choose((x) => x, _arg_1);
|
|
107
|
+
const contracts_1 = contracts.filter((c_1) => !recoveredContracts_1.some((rc) => rc.Path === c_1.Path));
|
|
108
|
+
return fullFillContractBatchAsync(false, arcPath, contracts_1).then((_arg_2) => {
|
|
109
|
+
const fulFilledContracts = _arg_2;
|
|
110
|
+
if (fulFilledContracts.tag === /* Error */
|
|
111
|
+
1) {
|
|
112
|
+
const e = fulFilledContracts.fields[0];
|
|
113
|
+
return Promise.resolve(FSharpResult$2_Error$(e));
|
|
114
|
+
} else {
|
|
115
|
+
const c_2 = fulFilledContracts.fields[0];
|
|
116
|
+
arc.SetISAFromContracts(append(c_2, recoveredContracts_1));
|
|
117
|
+
recoveredContracts_1.forEach((rc_1) => {
|
|
118
|
+
const identifier = item(1, split(rc_1.Path));
|
|
119
|
+
const matchValue = rc_1.DTOType;
|
|
120
|
+
let matchResult = void 0;
|
|
121
|
+
if (matchValue != null) {
|
|
122
|
+
switch (matchValue) {
|
|
123
|
+
case "ISA_Assay": {
|
|
124
|
+
matchResult = 0;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
case "ISA_Study": {
|
|
128
|
+
matchResult = 1;
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
case "ISA_Workflow": {
|
|
132
|
+
matchResult = 2;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
case "ISA_Run": {
|
|
136
|
+
matchResult = 3;
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
default:
|
|
140
|
+
matchResult = 4;
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
matchResult = 4;
|
|
144
|
+
}
|
|
145
|
+
switch (matchResult) {
|
|
146
|
+
case 0: {
|
|
147
|
+
const a = arc.GetAssay(identifier);
|
|
148
|
+
a.StaticHash = a.GetLightHashCode() + 1 | 0;
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
case 1: {
|
|
152
|
+
const s = arc.GetStudy(identifier);
|
|
153
|
+
s.StaticHash = s.GetLightHashCode() + 1 | 0;
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
case 2: {
|
|
157
|
+
const w = arc.GetWorkflow(identifier);
|
|
158
|
+
w.StaticHash = w.GetLightHashCode() + 1 | 0;
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
case 3: {
|
|
162
|
+
const r = arc.GetRun(identifier);
|
|
163
|
+
r.StaticHash = r.GetLightHashCode() + 1 | 0;
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
case 4: {
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
return Promise.resolve(FSharpResult$2_Ok(arc));
|
|
172
|
+
}
|
|
173
|
+
});
|
|
116
174
|
});
|
|
117
175
|
})));
|
|
118
176
|
}
|
|
@@ -131,7 +189,7 @@ class ARC extends ArcInvestigation {
|
|
|
131
189
|
const assayFolderPath = getAssayFolderPath(assayIdentifier);
|
|
132
190
|
const filteredPaths = paths.filter((p) => !p.startsWith(assayFolderPath));
|
|
133
191
|
this$.SetFilePaths(filteredPaths);
|
|
134
|
-
return toArray(delay(() => append(singleton(ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(assay)), delay(() => this$.GetUpdateContracts()))));
|
|
192
|
+
return toArray(delay(() => append$1(singleton(ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(assay)), delay(() => this$.GetUpdateContracts()))));
|
|
135
193
|
}
|
|
136
194
|
GetRunRemoveContracts(runIdentifier) {
|
|
137
195
|
const this$ = this;
|
|
@@ -147,7 +205,7 @@ class ARC extends ArcInvestigation {
|
|
|
147
205
|
const runFolderPath = getRunFolderPath(runIdentifier);
|
|
148
206
|
const filteredPaths = paths.filter((p) => !p.startsWith(runFolderPath));
|
|
149
207
|
this$.SetFilePaths(filteredPaths);
|
|
150
|
-
return toArray(delay(() => append(singleton(ARCtrl_ArcRun__ArcRun_ToDeleteContract(run)), delay(() => this$.GetUpdateContracts()))));
|
|
208
|
+
return toArray(delay(() => append$1(singleton(ARCtrl_ArcRun__ArcRun_ToDeleteContract(run)), delay(() => this$.GetUpdateContracts()))));
|
|
151
209
|
}
|
|
152
210
|
GetWorkflowRemoveContracts(workflowIdentifier) {
|
|
153
211
|
const this$ = this;
|
|
@@ -163,7 +221,7 @@ class ARC extends ArcInvestigation {
|
|
|
163
221
|
const workflowFolderPath = getWorkflowFolderPath(workflowIdentifier);
|
|
164
222
|
const filteredPaths = paths.filter((p) => !p.startsWith(workflowFolderPath));
|
|
165
223
|
this$.SetFilePaths(filteredPaths);
|
|
166
|
-
return toArray(delay(() => append(singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract(workflow)), delay(() => this$.GetUpdateContracts()))));
|
|
224
|
+
return toArray(delay(() => append$1(singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToDeleteContract(workflow)), delay(() => this$.GetUpdateContracts()))));
|
|
167
225
|
}
|
|
168
226
|
TryRemoveAssayAsync(arcPath, assayIdentifier) {
|
|
169
227
|
const this$ = this;
|
|
@@ -255,7 +313,7 @@ class ARC extends ArcInvestigation {
|
|
|
255
313
|
const newAssayFolderPath = getAssayFolderPath(newAssayIdentifier);
|
|
256
314
|
const renamedPaths = map((p) => replace(p, oldAssayFolderPath, newAssayFolderPath), paths);
|
|
257
315
|
this$.SetFilePaths(renamedPaths);
|
|
258
|
-
return toArray(delay(() => append(singleton(Contract.createRename(oldAssayFolderPath, newAssayFolderPath)), delay(() => this$.GetUpdateContracts()))));
|
|
316
|
+
return toArray(delay(() => append$1(singleton(Contract.createRename(oldAssayFolderPath, newAssayFolderPath)), delay(() => this$.GetUpdateContracts()))));
|
|
259
317
|
}
|
|
260
318
|
GetRunRenameContracts(oldRunIdentifier, newRunIdentifier) {
|
|
261
319
|
const this$ = this;
|
|
@@ -271,7 +329,7 @@ class ARC extends ArcInvestigation {
|
|
|
271
329
|
const newPath = getRunFolderPath(newRunIdentifier);
|
|
272
330
|
const renamedPaths = map((p) => replace(p, oldPath, newPath), paths);
|
|
273
331
|
this$.SetFilePaths(renamedPaths);
|
|
274
|
-
return toArray(delay(() => append(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
|
|
332
|
+
return toArray(delay(() => append$1(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
|
|
275
333
|
}
|
|
276
334
|
GetWorkflowRenameContracts(oldWorkflowIdentifier, newWorkflowIdentifier) {
|
|
277
335
|
const this$ = this;
|
|
@@ -287,7 +345,7 @@ class ARC extends ArcInvestigation {
|
|
|
287
345
|
const newPath = getWorkflowFolderPath(newWorkflowIdentifier);
|
|
288
346
|
const renamedPaths = map((p) => replace(p, oldPath, newPath), paths);
|
|
289
347
|
this$.SetFilePaths(renamedPaths);
|
|
290
|
-
return toArray(delay(() => append(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
|
|
348
|
+
return toArray(delay(() => append$1(singleton(Contract.createRename(oldPath, newPath)), delay(() => this$.GetUpdateContracts()))));
|
|
291
349
|
}
|
|
292
350
|
TryRenameAssayAsync(arcPath, oldAssayIdentifier, newAssayIdentifier) {
|
|
293
351
|
const this$ = this;
|
|
@@ -320,15 +378,15 @@ class ARC extends ArcInvestigation {
|
|
|
320
378
|
const newStudyFolderPath = getStudyFolderPath(newStudyIdentifier);
|
|
321
379
|
const renamedPaths = map((p) => replace(p, oldStudyFolderPath, newStudyFolderPath), paths);
|
|
322
380
|
this$.SetFilePaths(renamedPaths);
|
|
323
|
-
return toArray(delay(() => append(singleton(Contract.createRename(oldStudyFolderPath, newStudyFolderPath)), delay(() => this$.GetUpdateContracts()))));
|
|
381
|
+
return toArray(delay(() => append$1(singleton(Contract.createRename(oldStudyFolderPath, newStudyFolderPath)), delay(() => this$.GetUpdateContracts()))));
|
|
324
382
|
}
|
|
325
383
|
TryRenameStudyAsync(arcPath, oldStudyIdentifier, newStudyIdentifier) {
|
|
326
384
|
const this$ = this;
|
|
327
385
|
return fullFillContractBatchAsync(false, arcPath, this$.GetStudyRenameContracts(oldStudyIdentifier, newStudyIdentifier));
|
|
328
386
|
}
|
|
329
|
-
WriteAsync(arcPath) {
|
|
387
|
+
WriteAsync(arcPath, additionalContracts) {
|
|
330
388
|
const this$ = this;
|
|
331
|
-
return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => this$.TryWriteAsync(arcPath).then((_arg) => {
|
|
389
|
+
return PromiseBuilder__Run_212F1D4B(promise, PromiseBuilder__Delay_62FBFDE1(promise, () => this$.TryWriteAsync(arcPath, void 0, unwrap(additionalContracts)).then((_arg) => {
|
|
332
390
|
const result = _arg;
|
|
333
391
|
if (result.tag === /* Error */
|
|
334
392
|
1) {
|
|
@@ -434,9 +492,9 @@ class ARC extends ArcInvestigation {
|
|
|
434
492
|
let col_1 = void 0;
|
|
435
493
|
let matchResult = void 0, col_2 = void 0;
|
|
436
494
|
if (col != null) {
|
|
437
|
-
if (col_1 =
|
|
495
|
+
if (col_1 = col, col_1.Header.IsDataColumn) {
|
|
438
496
|
matchResult = 0;
|
|
439
|
-
col_2 =
|
|
497
|
+
col_2 = col;
|
|
440
498
|
} else {
|
|
441
499
|
matchResult = 1;
|
|
442
500
|
}
|
|
@@ -544,7 +602,7 @@ class ARC extends ArcInvestigation {
|
|
|
544
602
|
if (registeredStudyOpt == null) {
|
|
545
603
|
this$.AddStudy(study);
|
|
546
604
|
} else {
|
|
547
|
-
const registeredStudy =
|
|
605
|
+
const registeredStudy = registeredStudyOpt;
|
|
548
606
|
registeredStudy.UpdateReferenceByStudyFile(study, true);
|
|
549
607
|
}
|
|
550
608
|
const datamap = ARCAux_getStudyDatamapFromContracts(study.Identifier, contracts);
|
|
@@ -558,7 +616,7 @@ class ARC extends ArcInvestigation {
|
|
|
558
616
|
if (registeredAssayOpt == null) {
|
|
559
617
|
this$.AddAssay(assay);
|
|
560
618
|
} else {
|
|
561
|
-
const registeredAssay =
|
|
619
|
+
const registeredAssay = registeredAssayOpt;
|
|
562
620
|
registeredAssay.UpdateReferenceByAssayFile(assay, true);
|
|
563
621
|
}
|
|
564
622
|
const assay_1 = find((a_2) => a_2.Identifier === assay.Identifier, this$.Assays);
|
|
@@ -577,13 +635,14 @@ class ARC extends ArcInvestigation {
|
|
|
577
635
|
const cwlFilePath = Workflow_cwlFileNameFromIdentifier(workflow.Identifier);
|
|
578
636
|
let resolvedCwl;
|
|
579
637
|
const option_1 = cwl;
|
|
580
|
-
resolvedCwl = option_1 != null ? resolveRunReferencesFromLookup(cwlFilePath,
|
|
638
|
+
resolvedCwl = option_1 != null ? resolveRunReferencesFromLookup(cwlFilePath, option_1, tryGetCWLByPath) : void 0;
|
|
581
639
|
if (workflow.Datamap == null) {
|
|
582
640
|
workflow.Datamap = datamap_2;
|
|
583
641
|
}
|
|
584
642
|
workflow.CWLDescription = resolvedCwl;
|
|
585
643
|
this$.AddWorkflow(workflow);
|
|
586
644
|
workflow.StaticHash = workflow.GetLightHashCode() | 0;
|
|
645
|
+
workflow.CWLStaticHash = workflow.GetCWLHashCode() | 0;
|
|
587
646
|
});
|
|
588
647
|
runs.forEach((run) => {
|
|
589
648
|
const datamap_3 = ARCAux_getRunDatamapFromContracts(run.Identifier, contracts);
|
|
@@ -592,7 +651,7 @@ class ARC extends ArcInvestigation {
|
|
|
592
651
|
const cwlFilePath_1 = Run_cwlFileNameFromIdentifier(run.Identifier);
|
|
593
652
|
let resolvedCwl_1;
|
|
594
653
|
const option_3 = cwl_1;
|
|
595
|
-
resolvedCwl_1 = option_3 != null ? resolveRunReferencesFromLookup(cwlFilePath_1,
|
|
654
|
+
resolvedCwl_1 = option_3 != null ? resolveRunReferencesFromLookup(cwlFilePath_1, option_3, tryGetCWLByPath) : void 0;
|
|
596
655
|
if (run.Datamap == null) {
|
|
597
656
|
run.Datamap = datamap_3;
|
|
598
657
|
}
|
|
@@ -600,6 +659,8 @@ class ARC extends ArcInvestigation {
|
|
|
600
659
|
run.CWLDescription = resolvedCwl_1;
|
|
601
660
|
this$.AddRun(run);
|
|
602
661
|
run.StaticHash = run.GetLightHashCode() | 0;
|
|
662
|
+
run.CWLStaticHash = run.GetCWLHashCode() | 0;
|
|
663
|
+
run.CWLInputStaticHash = run.GetCWLInputHashCode() | 0;
|
|
603
664
|
});
|
|
604
665
|
iterate((a_3) => {
|
|
605
666
|
a_3.StaticHash = a_3.GetLightHashCode() | 0;
|
|
@@ -625,57 +686,59 @@ class ARC extends ArcInvestigation {
|
|
|
625
686
|
if (!defaultArg(skipUpdateFS, false)) {
|
|
626
687
|
this$.UpdateFileSystem();
|
|
627
688
|
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
689
|
+
this$.StaticHash = this$.GetLightHashCode() | 0;
|
|
690
|
+
const investigationContract = ARCtrl_ArcInvestigation__ArcInvestigation_ToCreateContract(this$);
|
|
691
|
+
return toArray(delay(() => append$1(singleton(investigationContract), delay(() => append$1(collect((s) => {
|
|
692
|
+
s.StaticHash = s.GetLightHashCode() | 0;
|
|
693
|
+
return append$1(ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true), delay(() => {
|
|
694
|
+
if (s.Datamap != null) {
|
|
695
|
+
const dm = value(s.Datamap);
|
|
696
|
+
dm.StaticHash = safeHash(dm) | 0;
|
|
697
|
+
return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(dm, s.Identifier));
|
|
698
|
+
} else {
|
|
699
|
+
return empty();
|
|
700
|
+
}
|
|
701
|
+
}));
|
|
702
|
+
}, this$.Studies), delay(() => append$1(collect((a) => {
|
|
703
|
+
a.StaticHash = a.GetLightHashCode() | 0;
|
|
704
|
+
return append$1(ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true), delay(() => {
|
|
705
|
+
if (a.Datamap != null) {
|
|
706
|
+
const dm_1 = value(a.Datamap);
|
|
707
|
+
dm_1.StaticHash = safeHash(dm_1) | 0;
|
|
708
|
+
return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(dm_1, a.Identifier));
|
|
709
|
+
} else {
|
|
710
|
+
return empty();
|
|
711
|
+
}
|
|
712
|
+
}));
|
|
713
|
+
}, this$.Assays), delay(() => append$1(collect((w) => {
|
|
714
|
+
w.StaticHash = w.GetLightHashCode() | 0;
|
|
715
|
+
w.CWLStaticHash = w.GetCWLHashCode() | 0;
|
|
716
|
+
return append$1(ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true), delay(() => {
|
|
717
|
+
if (w.Datamap != null) {
|
|
718
|
+
const dm_2 = value(w.Datamap);
|
|
719
|
+
dm_2.StaticHash = safeHash(dm_2) | 0;
|
|
720
|
+
return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(dm_2, w.Identifier));
|
|
721
|
+
} else {
|
|
722
|
+
return empty();
|
|
723
|
+
}
|
|
724
|
+
}));
|
|
725
|
+
}, this$.Workflows), delay(() => append$1(collect((r) => {
|
|
726
|
+
r.StaticHash = r.GetLightHashCode() | 0;
|
|
727
|
+
r.CWLStaticHash = r.GetCWLHashCode() | 0;
|
|
728
|
+
r.CWLInputStaticHash = r.GetCWLInputHashCode() | 0;
|
|
729
|
+
return append$1(ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true), delay(() => {
|
|
730
|
+
if (r.Datamap != null) {
|
|
731
|
+
const dm_3 = value(r.Datamap);
|
|
732
|
+
dm_3.StaticHash = safeHash(dm_3) | 0;
|
|
733
|
+
return singleton(ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(dm_3, r.Identifier));
|
|
734
|
+
} else {
|
|
735
|
+
return empty();
|
|
736
|
+
}
|
|
737
|
+
}));
|
|
738
|
+
}, this$.Runs), delay(() => {
|
|
739
|
+
let l = void 0;
|
|
740
|
+
return append$1(this$.License != null ? (l = value(this$.License), l.StaticHash = safeHash(l) | 0, singleton(l.ToCreateContract())) : empty(), delay(() => append$1(singleton(Contract.createCreate(combine("assays", ".gitkeep"), "PlainText")), delay(() => append$1(singleton(Contract.createCreate(combine("studies", ".gitkeep"), "PlainText")), delay(() => append$1(singleton(Contract.createCreate(combine("workflows", ".gitkeep"), "PlainText")), delay(() => singleton(Contract.createCreate(combine("runs", ".gitkeep"), "PlainText"))))))))));
|
|
741
|
+
}))))))))))));
|
|
679
742
|
}
|
|
680
743
|
/**
|
|
681
744
|
* This function returns the all update Contracts for the current state of the ARC. Only update contracts for those ISA objects that have been changed will be returned.
|
|
@@ -693,22 +756,22 @@ class ARC extends ArcInvestigation {
|
|
|
693
756
|
} else {
|
|
694
757
|
return toArray(delay(() => {
|
|
695
758
|
const hash = this$.GetLightHashCode() | 0;
|
|
696
|
-
return append(this$.StaticHash !== hash ? singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$)) : empty(), delay(() => {
|
|
759
|
+
return append$1(this$.StaticHash !== hash ? singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$)) : empty(), delay(() => {
|
|
697
760
|
this$.StaticHash = hash | 0;
|
|
698
|
-
return append(collect((s) => {
|
|
761
|
+
return append$1(collect((s) => {
|
|
699
762
|
const hash_1 = s.GetLightHashCode() | 0;
|
|
700
|
-
return append(s.StaticHash === 0 ? ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true) : s.StaticHash !== hash_1 ? singleton(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(s)) : empty(), delay(() => {
|
|
763
|
+
return append$1(s.StaticHash === 0 ? ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true) : s.StaticHash !== hash_1 ? singleton(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(s)) : empty(), delay(() => {
|
|
701
764
|
let dm = void 0, dm_1 = void 0;
|
|
702
765
|
s.StaticHash = hash_1 | 0;
|
|
703
766
|
const matchValue = s.Datamap;
|
|
704
767
|
let matchResult = void 0, dm_2 = void 0, dm_3 = void 0;
|
|
705
768
|
if (matchValue != null) {
|
|
706
|
-
if (dm =
|
|
769
|
+
if (dm = matchValue, dm.StaticHash === 0) {
|
|
707
770
|
matchResult = 0;
|
|
708
|
-
dm_2 =
|
|
709
|
-
} else if (dm_1 =
|
|
771
|
+
dm_2 = matchValue;
|
|
772
|
+
} else if (dm_1 = matchValue, dm_1.StaticHash !== safeHash(dm_1)) {
|
|
710
773
|
matchResult = 1;
|
|
711
|
-
dm_3 =
|
|
774
|
+
dm_3 = matchValue;
|
|
712
775
|
} else {
|
|
713
776
|
matchResult = 2;
|
|
714
777
|
}
|
|
@@ -717,12 +780,12 @@ class ARC extends ArcInvestigation {
|
|
|
717
780
|
}
|
|
718
781
|
switch (matchResult) {
|
|
719
782
|
case 0:
|
|
720
|
-
return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(dm_2, s.Identifier)), delay(() => {
|
|
783
|
+
return append$1(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForStudy_Z721C83C5(dm_2, s.Identifier)), delay(() => {
|
|
721
784
|
dm_2.StaticHash = safeHash(dm_2) | 0;
|
|
722
785
|
return empty();
|
|
723
786
|
}));
|
|
724
787
|
case 1:
|
|
725
|
-
return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5(dm_3, s.Identifier)), delay(() => {
|
|
788
|
+
return append$1(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForStudy_Z721C83C5(dm_3, s.Identifier)), delay(() => {
|
|
726
789
|
dm_3.StaticHash = safeHash(dm_3) | 0;
|
|
727
790
|
return empty();
|
|
728
791
|
}));
|
|
@@ -731,20 +794,20 @@ class ARC extends ArcInvestigation {
|
|
|
731
794
|
}
|
|
732
795
|
}
|
|
733
796
|
}));
|
|
734
|
-
}, this$.Studies), delay(() => append(collect((a) => {
|
|
797
|
+
}, this$.Studies), delay(() => append$1(collect((a) => {
|
|
735
798
|
const hash_2 = a.GetLightHashCode() | 0;
|
|
736
|
-
return append(a.StaticHash === 0 ? ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true) : a.StaticHash !== hash_2 ? singleton(ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(a)) : empty(), delay(() => {
|
|
799
|
+
return append$1(a.StaticHash === 0 ? ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true) : a.StaticHash !== hash_2 ? singleton(ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(a)) : empty(), delay(() => {
|
|
737
800
|
let dm_4 = void 0, dm_5 = void 0;
|
|
738
801
|
a.StaticHash = hash_2 | 0;
|
|
739
802
|
const matchValue_1 = a.Datamap;
|
|
740
803
|
let matchResult_1 = void 0, dm_6 = void 0, dm_7 = void 0;
|
|
741
804
|
if (matchValue_1 != null) {
|
|
742
|
-
if (dm_4 =
|
|
805
|
+
if (dm_4 = matchValue_1, dm_4.StaticHash === 0) {
|
|
743
806
|
matchResult_1 = 0;
|
|
744
|
-
dm_6 =
|
|
745
|
-
} else if (dm_5 =
|
|
807
|
+
dm_6 = matchValue_1;
|
|
808
|
+
} else if (dm_5 = matchValue_1, dm_5.StaticHash !== safeHash(dm_5)) {
|
|
746
809
|
matchResult_1 = 1;
|
|
747
|
-
dm_7 =
|
|
810
|
+
dm_7 = matchValue_1;
|
|
748
811
|
} else {
|
|
749
812
|
matchResult_1 = 2;
|
|
750
813
|
}
|
|
@@ -753,12 +816,12 @@ class ARC extends ArcInvestigation {
|
|
|
753
816
|
}
|
|
754
817
|
switch (matchResult_1) {
|
|
755
818
|
case 0:
|
|
756
|
-
return append(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(dm_6, a.Identifier)), delay(() => {
|
|
819
|
+
return append$1(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForAssay_Z721C83C5(dm_6, a.Identifier)), delay(() => {
|
|
757
820
|
dm_6.StaticHash = safeHash(dm_6) | 0;
|
|
758
821
|
return empty();
|
|
759
822
|
}));
|
|
760
823
|
case 1:
|
|
761
|
-
return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5(dm_7, a.Identifier)), delay(() => {
|
|
824
|
+
return append$1(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForAssay_Z721C83C5(dm_7, a.Identifier)), delay(() => {
|
|
762
825
|
dm_7.StaticHash = safeHash(dm_7) | 0;
|
|
763
826
|
return empty();
|
|
764
827
|
}));
|
|
@@ -767,86 +830,97 @@ class ARC extends ArcInvestigation {
|
|
|
767
830
|
}
|
|
768
831
|
}
|
|
769
832
|
}));
|
|
770
|
-
}, this$.Assays), delay(() => append(collect((w) => {
|
|
833
|
+
}, this$.Assays), delay(() => append$1(collect((w) => {
|
|
771
834
|
const hash_3 = w.GetLightHashCode() | 0;
|
|
772
|
-
return append(w.StaticHash === 0 ? ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true)
|
|
773
|
-
|
|
835
|
+
return append$1(w.StaticHash === 0 ? append$1(ARCtrl_ArcWorkflow__ArcWorkflow_ToCreateContract_6FCE9E49(w, true), delay(() => {
|
|
836
|
+
w.CWLStaticHash = w.GetCWLHashCode() | 0;
|
|
837
|
+
return empty();
|
|
838
|
+
})) : w.StaticHash !== hash_3 ? singleton(ARCtrl_ArcWorkflow__ArcWorkflow_ToUpdateContract(w)) : empty(), delay(() => {
|
|
774
839
|
w.StaticHash = hash_3 | 0;
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
840
|
+
return append$1(ARCAux_workflowFileContracts(w), delay(() => {
|
|
841
|
+
let dm_8 = void 0, dm_9 = void 0;
|
|
842
|
+
const matchValue_2 = w.Datamap;
|
|
843
|
+
let matchResult_2 = void 0, dm_10 = void 0, dm_11 = void 0;
|
|
844
|
+
if (matchValue_2 != null) {
|
|
845
|
+
if (dm_8 = matchValue_2, dm_8.StaticHash === 0) {
|
|
846
|
+
matchResult_2 = 0;
|
|
847
|
+
dm_10 = matchValue_2;
|
|
848
|
+
} else if (dm_9 = matchValue_2, dm_9.StaticHash !== safeHash(dm_9)) {
|
|
849
|
+
matchResult_2 = 1;
|
|
850
|
+
dm_11 = matchValue_2;
|
|
851
|
+
} else {
|
|
852
|
+
matchResult_2 = 2;
|
|
853
|
+
}
|
|
784
854
|
} else {
|
|
785
855
|
matchResult_2 = 2;
|
|
786
856
|
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
857
|
+
switch (matchResult_2) {
|
|
858
|
+
case 0:
|
|
859
|
+
return append$1(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForWorkflow_Z721C83C5(dm_10, w.Identifier)), delay(() => {
|
|
860
|
+
dm_10.StaticHash = safeHash(dm_10) | 0;
|
|
861
|
+
return empty();
|
|
862
|
+
}));
|
|
863
|
+
case 1:
|
|
864
|
+
return append$1(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5(dm_11, w.Identifier)), delay(() => {
|
|
865
|
+
dm_11.StaticHash = safeHash(dm_11) | 0;
|
|
866
|
+
return empty();
|
|
867
|
+
}));
|
|
868
|
+
default: {
|
|
794
869
|
return empty();
|
|
795
|
-
}
|
|
796
|
-
case 1:
|
|
797
|
-
return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForWorkflow_Z721C83C5(dm_11, w.Identifier)), delay(() => {
|
|
798
|
-
dm_11.StaticHash = safeHash(dm_11) | 0;
|
|
799
|
-
return empty();
|
|
800
|
-
}));
|
|
801
|
-
default: {
|
|
802
|
-
return empty();
|
|
870
|
+
}
|
|
803
871
|
}
|
|
804
|
-
}
|
|
872
|
+
}));
|
|
805
873
|
}));
|
|
806
|
-
}, this$.Workflows), delay(() => append(collect((r) => {
|
|
874
|
+
}, this$.Workflows), delay(() => append$1(collect((r) => {
|
|
807
875
|
const hash_4 = r.GetLightHashCode() | 0;
|
|
808
|
-
return append(r.StaticHash === 0 ? ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true)
|
|
809
|
-
|
|
876
|
+
return append$1(r.StaticHash === 0 ? append$1(ARCtrl_ArcRun__ArcRun_ToCreateContract_6FCE9E49(r, true), delay(() => {
|
|
877
|
+
r.CWLStaticHash = r.GetCWLHashCode() | 0;
|
|
878
|
+
r.CWLInputStaticHash = r.GetCWLInputHashCode() | 0;
|
|
879
|
+
return empty();
|
|
880
|
+
})) : r.StaticHash !== hash_4 ? singleton(ARCtrl_ArcRun__ArcRun_ToUpdateContract(r)) : empty(), delay(() => {
|
|
810
881
|
r.StaticHash = hash_4 | 0;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
882
|
+
return append$1(ARCAux_runFileContracts(r), delay(() => {
|
|
883
|
+
let dm_12 = void 0, dm_13 = void 0;
|
|
884
|
+
const matchValue_3 = r.Datamap;
|
|
885
|
+
let matchResult_3 = void 0, dm_14 = void 0, dm_15 = void 0;
|
|
886
|
+
if (matchValue_3 != null) {
|
|
887
|
+
if (dm_12 = matchValue_3, dm_12.StaticHash === 0) {
|
|
888
|
+
matchResult_3 = 0;
|
|
889
|
+
dm_14 = matchValue_3;
|
|
890
|
+
} else if (dm_13 = matchValue_3, dm_13.StaticHash !== safeHash(dm_13)) {
|
|
891
|
+
matchResult_3 = 1;
|
|
892
|
+
dm_15 = matchValue_3;
|
|
893
|
+
} else {
|
|
894
|
+
matchResult_3 = 2;
|
|
895
|
+
}
|
|
820
896
|
} else {
|
|
821
897
|
matchResult_3 = 2;
|
|
822
898
|
}
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
899
|
+
switch (matchResult_3) {
|
|
900
|
+
case 0:
|
|
901
|
+
return append$1(singleton(ARCtrl_Datamap__Datamap_ToCreateContractForRun_Z721C83C5(dm_14, r.Identifier)), delay(() => {
|
|
902
|
+
dm_14.StaticHash = safeHash(dm_14) | 0;
|
|
903
|
+
return empty();
|
|
904
|
+
}));
|
|
905
|
+
case 1:
|
|
906
|
+
return append$1(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5(dm_15, r.Identifier)), delay(() => {
|
|
907
|
+
dm_15.StaticHash = safeHash(dm_15) | 0;
|
|
908
|
+
return empty();
|
|
909
|
+
}));
|
|
910
|
+
default: {
|
|
830
911
|
return empty();
|
|
831
|
-
}
|
|
832
|
-
case 1:
|
|
833
|
-
return append(singleton(ARCtrl_Datamap__Datamap_ToUpdateContractForRun_Z721C83C5(dm_15, r.Identifier)), delay(() => {
|
|
834
|
-
dm_15.StaticHash = safeHash(dm_15) | 0;
|
|
835
|
-
return empty();
|
|
836
|
-
}));
|
|
837
|
-
default: {
|
|
838
|
-
return empty();
|
|
912
|
+
}
|
|
839
913
|
}
|
|
840
|
-
}
|
|
914
|
+
}));
|
|
841
915
|
}));
|
|
842
916
|
}, this$.Runs), delay(() => {
|
|
843
917
|
const matchValue_4 = this$.License;
|
|
844
918
|
if (matchValue_4 == null) {
|
|
845
919
|
return empty();
|
|
846
920
|
} else {
|
|
847
|
-
const l =
|
|
921
|
+
const l = matchValue_4;
|
|
848
922
|
const hash_5 = safeHash(l) | 0;
|
|
849
|
-
return append(l.StaticHash === 0 ? singleton(l.ToCreateContract()) : l.StaticHash !== hash_5 ? singleton(l.ToUpdateContract()) : empty(), delay(() => {
|
|
923
|
+
return append$1(l.StaticHash === 0 ? singleton(l.ToCreateContract()) : l.StaticHash !== hash_5 ? singleton(l.ToUpdateContract()) : empty(), delay(() => {
|
|
850
924
|
l.StaticHash = hash_5 | 0;
|
|
851
925
|
return empty();
|
|
852
926
|
}));
|
|
@@ -859,7 +933,7 @@ class ARC extends ArcInvestigation {
|
|
|
859
933
|
GetGitInitContracts(branch, repositoryAddress, defaultGitignore, defaultGitattributes) {
|
|
860
934
|
const defaultGitignore_1 = defaultArg(defaultGitignore, false);
|
|
861
935
|
const defaultGitattributes_1 = defaultArg(defaultGitattributes, false);
|
|
862
|
-
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()))))))));
|
|
936
|
+
return toArray(delay(() => append$1(singleton(Init_createInitContract_6DFDD678(unwrap(branch))), delay(() => append$1(defaultGitignore_1 ? singleton(gitignoreContract) : empty(), delay(() => append$1(defaultGitattributes_1 ? singleton(gitattributesContract) : empty(), delay(() => repositoryAddress != null ? singleton(Init_createAddRemoteContract_Z721C83C5(value(repositoryAddress))) : empty()))))))));
|
|
863
937
|
}
|
|
864
938
|
static getCloneContract(remoteUrl, merge, branch, token, nolfs) {
|
|
865
939
|
return Clone_createCloneContract_5000466F(remoteUrl, unwrap(merge), unwrap(branch), unwrap(token), unwrap(nolfs));
|
|
@@ -919,7 +993,7 @@ class ARC extends ArcInvestigation {
|
|
|
919
993
|
const nextStudyIdentifiers = Array.from(this$.RegisteredStudyIdentifiers);
|
|
920
994
|
let nextLicense;
|
|
921
995
|
const option_1 = this$.License;
|
|
922
|
-
nextLicense = option_1 != null ? (_arg =
|
|
996
|
+
nextLicense = option_1 != null ? (_arg = option_1, _arg.Copy()) : void 0;
|
|
923
997
|
const fsCopy = this$._fs.Copy();
|
|
924
998
|
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, fsCopy, unwrap(nextLicense));
|
|
925
999
|
}
|
|
@@ -932,13 +1006,13 @@ class ARC extends ArcInvestigation {
|
|
|
932
1006
|
const copy = this$.Copy();
|
|
933
1007
|
const registeredStudies = copy.Studies.slice();
|
|
934
1008
|
const registeredAssays = concat(map((s) => s.RegisteredAssays.slice(), registeredStudies));
|
|
935
|
-
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())))))), {
|
|
1009
|
+
const includeFiles = unionMany([ofSeq(toList(delay(() => append$1(singleton("isa.investigation.xlsx"), delay(() => append$1(singleton("README.md"), delay(() => this$.License != null ? singleton(value(this$.License).Path) : empty())))))), {
|
|
936
1010
|
Compare: (x, y) => comparePrimitives(x, y) | 0
|
|
937
1011
|
}), unionMany(map((s_1) => {
|
|
938
1012
|
const studyFoldername = concat$1("studies", "/", s_1.Identifier);
|
|
939
|
-
return ofSeq(toList(delay(() => append(singleton(concat$1(studyFoldername, "/", "isa.study.xlsx")), delay(() => append(singleton(concat$1(studyFoldername, "/", "README.md")), delay(() => collect((table) => collect((kv) => {
|
|
1013
|
+
return ofSeq(toList(delay(() => append$1(singleton(concat$1(studyFoldername, "/", "isa.study.xlsx")), delay(() => append$1(singleton(concat$1(studyFoldername, "/", "README.md")), delay(() => collect((table) => collect((kv) => {
|
|
940
1014
|
const textValue = kv[1].ToFreeTextCell().AsFreeText;
|
|
941
|
-
return append(singleton(textValue), delay(() => append(singleton(`${studyFoldername}/${"resources"}/${textValue}`), delay(() => singleton(`${studyFoldername}/${"protocols"}/${textValue}`)))));
|
|
1015
|
+
return append$1(singleton(textValue), delay(() => append$1(singleton(`${studyFoldername}/${"resources"}/${textValue}`), delay(() => singleton(`${studyFoldername}/${"protocols"}/${textValue}`)))));
|
|
942
1016
|
}, table.Values), s_1.Tables))))))), {
|
|
943
1017
|
Compare: (x_1, y_1) => comparePrimitives(x_1, y_1) | 0
|
|
944
1018
|
});
|
|
@@ -946,9 +1020,9 @@ class ARC extends ArcInvestigation {
|
|
|
946
1020
|
Compare: (x_2, y_2) => comparePrimitives(x_2, y_2) | 0
|
|
947
1021
|
}), unionMany(map((a) => {
|
|
948
1022
|
const assayFoldername = concat$1("assays", "/", a.Identifier);
|
|
949
|
-
return ofSeq(toList(delay(() => append(singleton(concat$1(assayFoldername, "/", "isa.assay.xlsx")), delay(() => append(singleton(concat$1(assayFoldername, "/", "README.md")), delay(() => collect((table_1) => collect((kv_1) => {
|
|
1023
|
+
return ofSeq(toList(delay(() => append$1(singleton(concat$1(assayFoldername, "/", "isa.assay.xlsx")), delay(() => append$1(singleton(concat$1(assayFoldername, "/", "README.md")), delay(() => collect((table_1) => collect((kv_1) => {
|
|
950
1024
|
const textValue_1 = kv_1[1].ToFreeTextCell().AsFreeText;
|
|
951
|
-
return append(singleton(textValue_1), delay(() => append(singleton(`${assayFoldername}/${"dataset"}/${textValue_1}`), delay(() => singleton(`${assayFoldername}/${"protocols"}/${textValue_1}`)))));
|
|
1025
|
+
return append$1(singleton(textValue_1), delay(() => append$1(singleton(`${assayFoldername}/${"dataset"}/${textValue_1}`), delay(() => singleton(`${assayFoldername}/${"protocols"}/${textValue_1}`)))));
|
|
952
1026
|
}, table_1.Values), a.Tables))))))), {
|
|
953
1027
|
Compare: (x_3, y_3) => comparePrimitives(x_3, y_3) | 0
|
|
954
1028
|
});
|
|
@@ -965,7 +1039,7 @@ class ARC extends ArcInvestigation {
|
|
|
965
1039
|
} else {
|
|
966
1040
|
return FSharpSet__Contains(includeFiles, p);
|
|
967
1041
|
}
|
|
968
|
-
})), FileSystemTree.fromFilePaths(paths)), ignoreHidden ? FileSystemTree.filterFiles((n) => !n.startsWith("."))(tree) : tree), option_1 != null ? (tree_1 =
|
|
1042
|
+
})), FileSystemTree.fromFilePaths(paths)), ignoreHidden ? FileSystemTree.filterFiles((n) => !n.startsWith("."))(tree) : tree), option_1 != null ? (tree_1 = option_1, ignoreHidden ? FileSystemTree.filterFolders((n_1) => !n_1.startsWith("."))(tree_1) : tree_1) : void 0), FileSystemTree.fromFilePaths([]));
|
|
969
1043
|
}
|
|
970
1044
|
/**
|
|
971
1045
|
* Returns the FileSystemTree of the ARC with only and folders included that are considered additional payload.
|
|
@@ -977,7 +1051,7 @@ class ARC extends ArcInvestigation {
|
|
|
977
1051
|
const registeredPayload = ofSeq(FileSystemTree.toFilePaths()(this$.GetRegisteredPayload()), {
|
|
978
1052
|
Compare: (x, y) => comparePrimitives(x, y) | 0
|
|
979
1053
|
});
|
|
980
|
-
return defaultArg((option_1 = (tree = (paths = (array = FileSystemTree.toFilePaths()(this$._fs.Copy().Tree), array.filter((p) => !FSharpSet__Contains(registeredPayload, p))), FileSystemTree.fromFilePaths(paths)), ignoreHidden ? FileSystemTree.filterFiles((n) => !n.startsWith("."))(tree) : tree), option_1 != null ? (tree_1 =
|
|
1054
|
+
return defaultArg((option_1 = (tree = (paths = (array = FileSystemTree.toFilePaths()(this$._fs.Copy().Tree), array.filter((p) => !FSharpSet__Contains(registeredPayload, p))), FileSystemTree.fromFilePaths(paths)), ignoreHidden ? FileSystemTree.filterFiles((n) => !n.startsWith("."))(tree) : tree), option_1 != null ? (tree_1 = option_1, ignoreHidden ? FileSystemTree.filterFolders((n_1) => !n_1.startsWith("."))(tree_1) : tree_1) : void 0), FileSystemTree.fromFilePaths([]));
|
|
981
1055
|
}
|
|
982
1056
|
static get DefaultContracts() {
|
|
983
1057
|
return ARCAux_defaultContracts;
|
|
@@ -1036,7 +1110,7 @@ class ARC extends ArcInvestigation {
|
|
|
1036
1110
|
const this$ = this;
|
|
1037
1111
|
let _arg;
|
|
1038
1112
|
const option_1 = this$.License;
|
|
1039
|
-
_arg = option_1 != null ?
|
|
1113
|
+
_arg = option_1 != null ? option_1 : License.GetDefaultLicense();
|
|
1040
1114
|
return _arg.ToCreateContract();
|
|
1041
1115
|
}
|
|
1042
1116
|
/**
|
|
@@ -1051,7 +1125,7 @@ class ARC extends ArcInvestigation {
|
|
|
1051
1125
|
Equals: (x, y) => x === y,
|
|
1052
1126
|
GetHashCode: (x) => stringHash(x) | 0
|
|
1053
1127
|
})) {
|
|
1054
|
-
const filePaths = append
|
|
1128
|
+
const filePaths = append([ValidationPackagesConfigHelper_ConfigFilePath], paths);
|
|
1055
1129
|
this$.SetFilePaths(filePaths);
|
|
1056
1130
|
}
|
|
1057
1131
|
return ARCtrl_ValidationPackages_ValidationPackagesConfig__ValidationPackagesConfig_toCreateContract_Static_724DAE55(vpc);
|
|
@@ -1125,6 +1199,31 @@ function ARC_$reflection() {
|
|
|
1125
1199
|
function ARC_$ctor_Z443FB9BF(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, fs, license) {
|
|
1126
1200
|
return new ARC(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, workflows, runs, registeredStudyIdentifiers, comments, remarks, fs, license);
|
|
1127
1201
|
}
|
|
1202
|
+
function ARCAux_fileContract(path, staticHash, hash, contractOf) {
|
|
1203
|
+
if (staticHash === hash) {
|
|
1204
|
+
return void 0;
|
|
1205
|
+
} else if (hash === 0) {
|
|
1206
|
+
return Contract.createDelete(path);
|
|
1207
|
+
} else if (staticHash === 0) {
|
|
1208
|
+
return contractOf("CREATE");
|
|
1209
|
+
} else {
|
|
1210
|
+
return contractOf("UPDATE");
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
function ARCAux_runFileContracts(run) {
|
|
1214
|
+
const cwlHash = run.GetCWLHashCode() | 0;
|
|
1215
|
+
const ymlHash = run.GetCWLInputHashCode() | 0;
|
|
1216
|
+
const contracts = choose((x) => x, [ARCAux_fileContract(Run_cwlFileNameFromIdentifier(run.Identifier), run.CWLStaticHash, cwlHash, (operation) => ARCtrl_ArcRun__ArcRun_TryToCWLContract_Z2D283928(run, operation)), ARCAux_fileContract(Run_ymlFileNameFromIdentifier(run.Identifier), run.CWLInputStaticHash, ymlHash, (operation_1) => ARCtrl_ArcRun__ArcRun_TryToYMLContract_Z2D283928(run, operation_1))]);
|
|
1217
|
+
run.CWLStaticHash = cwlHash | 0;
|
|
1218
|
+
run.CWLInputStaticHash = ymlHash | 0;
|
|
1219
|
+
return contracts;
|
|
1220
|
+
}
|
|
1221
|
+
function ARCAux_workflowFileContracts(workflow) {
|
|
1222
|
+
const cwlHash = workflow.GetCWLHashCode() | 0;
|
|
1223
|
+
const contracts = toArray$1(ARCAux_fileContract(Workflow_cwlFileNameFromIdentifier(workflow.Identifier), workflow.CWLStaticHash, cwlHash, (operation) => ARCtrl_ArcWorkflow__ArcWorkflow_TryToCWLContract_Z2D283928(workflow, operation)));
|
|
1224
|
+
workflow.CWLStaticHash = cwlHash | 0;
|
|
1225
|
+
return contracts;
|
|
1226
|
+
}
|
|
1128
1227
|
function ARCAux_getArcAssaysFromContracts(contracts) {
|
|
1129
1228
|
return choose(ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F, contracts);
|
|
1130
1229
|
}
|
|
@@ -1163,11 +1262,11 @@ function ARCAux_getCWLByPathFromContracts(contracts) {
|
|
|
1163
1262
|
let matchResult = void 0, text = void 0;
|
|
1164
1263
|
if (c.Operation === "READ") {
|
|
1165
1264
|
if (c.DTOType != null) {
|
|
1166
|
-
if (
|
|
1265
|
+
if (c.DTOType === "CWL") {
|
|
1167
1266
|
if (c.DTO != null) {
|
|
1168
|
-
if (typeof
|
|
1267
|
+
if (typeof c.DTO === "string") {
|
|
1169
1268
|
matchResult = 0;
|
|
1170
|
-
text =
|
|
1269
|
+
text = c.DTO;
|
|
1171
1270
|
} else {
|
|
1172
1271
|
matchResult = 1;
|
|
1173
1272
|
}
|
|
@@ -1184,10 +1283,8 @@ function ARCAux_getCWLByPathFromContracts(contracts) {
|
|
|
1184
1283
|
matchResult = 1;
|
|
1185
1284
|
}
|
|
1186
1285
|
switch (matchResult) {
|
|
1187
|
-
case 0:
|
|
1188
|
-
|
|
1189
|
-
return [normalizePathKey(c.Path), cwl];
|
|
1190
|
-
}
|
|
1286
|
+
case 0:
|
|
1287
|
+
return [normalizePathKey(c.Path), CWLFileReading_decodeCWLFile(c.Path, text)];
|
|
1191
1288
|
default:
|
|
1192
1289
|
return void 0;
|
|
1193
1290
|
}
|
|
@@ -1225,7 +1322,7 @@ function ARCAux_updateFSByARC(isa, license, fs) {
|
|
|
1225
1322
|
runsFolder = FileSystemTree.createRunsFolder(runs);
|
|
1226
1323
|
const investigation = FileSystemTree.createInvestigationFile();
|
|
1227
1324
|
let tree_1;
|
|
1228
|
-
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())))))))))))));
|
|
1325
|
+
const tree = FileSystemTree.createRootFolder(toArray(delay(() => append$1(singleton(investigation), delay(() => append$1(singleton(assaysFolder), delay(() => append$1(singleton(studiesFolder), delay(() => append$1(singleton(workflowsFolder), delay(() => append$1(singleton(runsFolder), delay(() => license != null ? singleton(FileSystemTree_File(value(license).Path)) : empty())))))))))))));
|
|
1229
1326
|
tree_1 = FileSystem.create({
|
|
1230
1327
|
tree
|
|
1231
1328
|
});
|
|
@@ -1235,4 +1332,4 @@ const ARCAux_defaultContracts = ofSeq$1([[".gitignore", gitignoreContract], [".g
|
|
|
1235
1332
|
Compare: (x, y) => comparePrimitives(x, y) | 0
|
|
1236
1333
|
});
|
|
1237
1334
|
|
|
1238
|
-
export { ARC, ARCAux_defaultContracts, ARCAux_getArcAssaysFromContracts, ARCAux_getArcInvestigationFromContracts, ARCAux_getArcRunsFromContracts, ARCAux_getArcStudiesFromContracts, ARCAux_getArcWorkflowsFromContracts, ARCAux_getAssayDatamapFromContracts, ARCAux_getCWLByPathFromContracts, ARCAux_getLicenseFromContracts, ARCAux_getRunCWLFromContracts, ARCAux_getRunDatamapFromContracts, ARCAux_getRunYMLFromContracts, ARCAux_getStudyDatamapFromContracts, ARCAux_getWorkflowCWLFromContracts, ARCAux_getWorkflowDatamapFromContracts, ARCAux_tryGetCWLByPath, ARCAux_updateFSByARC, ARC_$ctor_Z443FB9BF, ARC_$reflection };
|
|
1335
|
+
export { ARC, ARCAux_defaultContracts, ARCAux_fileContract, ARCAux_getArcAssaysFromContracts, ARCAux_getArcInvestigationFromContracts, ARCAux_getArcRunsFromContracts, ARCAux_getArcStudiesFromContracts, ARCAux_getArcWorkflowsFromContracts, ARCAux_getAssayDatamapFromContracts, ARCAux_getCWLByPathFromContracts, ARCAux_getLicenseFromContracts, ARCAux_getRunCWLFromContracts, ARCAux_getRunDatamapFromContracts, ARCAux_getRunYMLFromContracts, ARCAux_getStudyDatamapFromContracts, ARCAux_getWorkflowCWLFromContracts, ARCAux_getWorkflowDatamapFromContracts, ARCAux_runFileContracts, ARCAux_tryGetCWLByPath, ARCAux_updateFSByARC, ARCAux_workflowFileContracts, ARC_$ctor_Z443FB9BF, ARC_$reflection };
|