@nfdi4plants/arctrl 3.2.3 → 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/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 +19 -2
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +128 -89
- 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.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
- 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.js +11 -11
- package/dist/ts/ts/Conversion/Person.js +11 -11
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Process.js +107 -86
- 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.js +5 -5
- 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 +41 -41
- package/dist/ts/ts/Core/Data.d.ts.map +1 -1
- package/dist/ts/ts/Core/Data.js +14 -11
- 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 +50 -70
- package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
- 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.js +8 -8
- 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 +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
- 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 +7 -7
- 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 +8 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Option } from '@fable-org/fable-library-ts/Option.ts';
|
|
2
|
+
import { SourceNodes, DocText_$union, SchemaSaladString_$union, ListEntry$1_$union } from './CWLTypes.ts';
|
|
2
3
|
import { CWLOutput } from './Outputs.ts';
|
|
3
4
|
import { HintEntry_$union, Requirement_$union } from './Requirements.ts';
|
|
4
5
|
import { CWLInput } from './Inputs.ts';
|
|
@@ -8,51 +9,64 @@ import { TypeInfo } from '@fable-org/fable-library-ts/Reflection.ts';
|
|
|
8
9
|
export declare class CWLExpressionToolDescription extends DynamicObj {
|
|
9
10
|
_id: Option<string>;
|
|
10
11
|
_cwlVersion: string;
|
|
11
|
-
_outputs: CWLOutput[];
|
|
12
|
-
_expression:
|
|
12
|
+
_outputs: ListEntry$1_$union<CWLOutput>[];
|
|
13
|
+
_expression: SchemaSaladString_$union;
|
|
13
14
|
_requirements: Option<Requirement_$union[]>;
|
|
14
15
|
_hints: Option<HintEntry_$union[]>;
|
|
15
|
-
_intent: Option<
|
|
16
|
-
_inputs: Option<CWLInput[]>;
|
|
16
|
+
_intent: Option<SchemaSaladString_$union[]>;
|
|
17
|
+
_inputs: Option<ListEntry$1_$union<CWLInput>[]>;
|
|
17
18
|
_metadata: Option<DynamicObj>;
|
|
18
|
-
_label: Option<
|
|
19
|
-
_doc: Option<
|
|
20
|
-
|
|
19
|
+
_label: Option<SchemaSaladString_$union>;
|
|
20
|
+
_doc: Option<DocText_$union>;
|
|
21
|
+
_sourceNodes: SourceNodes;
|
|
22
|
+
constructor(outputs: ListEntry$1_$union<CWLOutput>[], expression: SchemaSaladString_$union, cwlVersion?: string, requirements?: Requirement_$union[], hints?: HintEntry_$union[], intent?: SchemaSaladString_$union[], inputs?: ListEntry$1_$union<CWLInput>[], metadata?: DynamicObj, label?: SchemaSaladString_$union, doc?: DocText_$union, id?: string);
|
|
21
23
|
get Id(): string | undefined;
|
|
22
24
|
set Id(id: Option<string>);
|
|
23
25
|
get CWLVersion(): string;
|
|
24
26
|
set CWLVersion(version: string);
|
|
25
|
-
get Outputs(): CWLOutput[];
|
|
26
|
-
set Outputs(outputs: CWLOutput[]);
|
|
27
|
-
get Expression():
|
|
28
|
-
set Expression(expression:
|
|
27
|
+
get Outputs(): ListEntry$1_$union<CWLOutput>[];
|
|
28
|
+
set Outputs(outputs: ListEntry$1_$union<CWLOutput>[]);
|
|
29
|
+
get Expression(): SchemaSaladString_$union;
|
|
30
|
+
set Expression(expression: SchemaSaladString_$union);
|
|
29
31
|
get Requirements(): Requirement_$union[] | undefined;
|
|
30
32
|
set Requirements(requirements: Option<Requirement_$union[]>);
|
|
31
33
|
get Hints(): HintEntry_$union[] | undefined;
|
|
32
34
|
set Hints(hints: Option<HintEntry_$union[]>);
|
|
33
|
-
get Intent():
|
|
34
|
-
set Intent(intent: Option<
|
|
35
|
-
get Inputs(): CWLInput[] | undefined;
|
|
36
|
-
set Inputs(inputs: Option<CWLInput[]>);
|
|
35
|
+
get Intent(): SchemaSaladString_$union[] | undefined;
|
|
36
|
+
set Intent(intent: Option<SchemaSaladString_$union[]>);
|
|
37
|
+
get Inputs(): ListEntry$1_$union<CWLInput>[] | undefined;
|
|
38
|
+
set Inputs(inputs: Option<ListEntry$1_$union<CWLInput>[]>);
|
|
37
39
|
get Metadata(): DynamicObj | undefined;
|
|
38
40
|
set Metadata(metadata: Option<DynamicObj>);
|
|
39
|
-
get Label():
|
|
40
|
-
set Label(label: Option<
|
|
41
|
-
get Doc():
|
|
42
|
-
set Doc(doc: Option<
|
|
41
|
+
get Label(): SchemaSaladString_$union | undefined;
|
|
42
|
+
set Label(label: Option<SchemaSaladString_$union>);
|
|
43
|
+
get Doc(): DocText_$union | undefined;
|
|
44
|
+
set Doc(doc: Option<DocText_$union>);
|
|
45
|
+
/**
|
|
46
|
+
* The nodes that the doc and the label were read from. The encoder writes the layout of the author from them.
|
|
47
|
+
* They stay out of the equality and the hash of the object.
|
|
48
|
+
*/
|
|
49
|
+
get SourceNodes(): SourceNodes;
|
|
50
|
+
/**
|
|
51
|
+
* The nodes that the doc and the label were read from. The encoder writes the layout of the author from them.
|
|
52
|
+
* They stay out of the equality and the hash of the object.
|
|
53
|
+
*/
|
|
54
|
+
set SourceNodes(value: SourceNodes);
|
|
43
55
|
static get KnownFieldNames(): FSharpSet<string>;
|
|
44
56
|
/**
|
|
45
|
-
* Returns the expression tool
|
|
57
|
+
* Returns a new list of the inputs of the expression tool that are objects, or an empty list. The imports and the
|
|
58
|
+
* mixins are left out, so a change of the list changes nothing in the tool. The entries of the tool are in Inputs.
|
|
46
59
|
*/
|
|
47
|
-
static
|
|
60
|
+
static getInputValuesOrEmpty(tool: CWLExpressionToolDescription): CWLInput[];
|
|
48
61
|
/**
|
|
49
|
-
* Returns expression tool
|
|
62
|
+
* Returns a new list of the outputs of the expression tool that are objects. The imports and the mixins are left out,
|
|
63
|
+
* so a change of the list changes nothing in the tool. The entries of the tool are in Outputs.
|
|
50
64
|
*/
|
|
51
|
-
static
|
|
65
|
+
static getOutputValues(tool: CWLExpressionToolDescription): CWLOutput[];
|
|
52
66
|
/**
|
|
53
|
-
* Returns the expression tool's inputs, creating and assigning a new empty ResizeArray if None.
|
|
67
|
+
* Returns the entries of the expression tool's inputs, creating and assigning a new empty ResizeArray if None.
|
|
54
68
|
*/
|
|
55
|
-
static getOrCreateInputs(tool: CWLExpressionToolDescription): CWLInput[];
|
|
69
|
+
static getOrCreateInputs(tool: CWLExpressionToolDescription): ListEntry$1_$union<CWLInput>[];
|
|
56
70
|
/**
|
|
57
71
|
* Returns the expression tool's requirements or an empty ResizeArray if None.
|
|
58
72
|
*/
|
|
@@ -64,7 +78,7 @@ export declare class CWLExpressionToolDescription extends DynamicObj {
|
|
|
64
78
|
/**
|
|
65
79
|
* Returns the expression tool's intent or an empty ResizeArray if None.
|
|
66
80
|
*/
|
|
67
|
-
static getIntentOrEmpty(tool: CWLExpressionToolDescription):
|
|
81
|
+
static getIntentOrEmpty(tool: CWLExpressionToolDescription): SchemaSaladString_$union[];
|
|
68
82
|
/**
|
|
69
83
|
* Returns the expression tool's hints, creating and assigning a new empty ResizeArray if None.
|
|
70
84
|
*/
|
|
@@ -72,8 +86,8 @@ export declare class CWLExpressionToolDescription extends DynamicObj {
|
|
|
72
86
|
/**
|
|
73
87
|
* Returns the expression tool's intent, creating and assigning a new empty ResizeArray if None.
|
|
74
88
|
*/
|
|
75
|
-
static getOrCreateIntent(tool: CWLExpressionToolDescription):
|
|
89
|
+
static getOrCreateIntent(tool: CWLExpressionToolDescription): SchemaSaladString_$union[];
|
|
76
90
|
}
|
|
77
91
|
export declare function CWLExpressionToolDescription_$reflection(): TypeInfo;
|
|
78
|
-
export declare function CWLExpressionToolDescription_$
|
|
92
|
+
export declare function CWLExpressionToolDescription_$ctor_Z601F7DDE(outputs: ListEntry$1_$union<CWLOutput>[], expression: SchemaSaladString_$union, cwlVersion?: string, requirements?: Requirement_$union[], hints?: HintEntry_$union[], intent?: SchemaSaladString_$union[], inputs?: ListEntry$1_$union<CWLInput>[], metadata?: DynamicObj, label?: SchemaSaladString_$union, doc?: DocText_$union, id?: string): CWLExpressionToolDescription;
|
|
79
93
|
//# sourceMappingURL=ExpressionToolDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpressionToolDescription.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/ExpressionToolDescription.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ExpressionToolDescription.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/ExpressionToolDescription.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,MAAM,EAAU,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAsC,WAAW,EAAE,cAAc,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAC9I,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAA0B,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAExG,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAEjF,qBAAa,4BAA6B,SAAQ,UAAU;IACxD,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;IAC1C,WAAW,EAAE,wBAAwB,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC5C,MAAM,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC,wBAAwB,CAAC,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IAC7B,YAAY,EAAE,WAAW,CAAC;gBACd,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,EAAE,EAAE,UAAU,EAAE,wBAAwB,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,kBAAkB,EAAE,EAAE,KAAK,CAAC,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,wBAAwB,EAAE,EAAE,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,wBAAwB,EAAE,GAAG,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC,EAAE,MAAM;IAe1V,IAAI,EAAE,IAAI,MAAM,GAAG,SAAS,CAG3B;IACD,IAAI,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,EAGxB;IACD,IAAI,UAAU,IAAI,MAAM,CAGvB;IACD,IAAI,UAAU,CAAC,OAAO,EAAE,MAAM,EAG7B;IACD,IAAI,OAAO,IAAI,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAG7C;IACD,IAAI,OAAO,CAAC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,EAAE,EAGnD;IACD,IAAI,UAAU,IAAI,wBAAwB,CAGzC;IACD,IAAI,UAAU,CAAC,UAAU,EAAE,wBAAwB,EAGlD;IACD,IAAI,YAAY,IAAI,kBAAkB,EAAE,GAAG,SAAS,CAGnD;IACD,IAAI,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC,EAG1D;IACD,IAAI,KAAK,IAAI,gBAAgB,EAAE,GAAG,SAAS,CAG1C;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC,EAG1C;IACD,IAAI,MAAM,IAAI,wBAAwB,EAAE,GAAG,SAAS,CAGnD;IACD,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,wBAAwB,EAAE,CAAC,EAGpD;IACD,IAAI,MAAM,IAAI,kBAAkB,CAAC,QAAQ,CAAC,EAAE,GAAG,SAAS,CAGvD;IACD,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAGxD;IACD,IAAI,QAAQ,IAAI,UAAU,GAAG,SAAS,CAGrC;IACD,IAAI,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,EAGxC;IACD,IAAI,KAAK,IAAI,wBAAwB,GAAG,SAAS,CAGhD;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAGhD;IACD,IAAI,GAAG,IAAI,cAAc,GAAG,SAAS,CAGpC;IACD,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,cAAc,CAAC,EAGlC;IACD;;;OAGG;IACH,IAAI,WAAW,IAAI,WAAW,CAG7B;IACD;;;OAGG;IACH,IAAI,WAAW,CAAC,KAAK,EAAE,WAAW,EAGjC;IACD,MAAM,KAAK,eAAe,IAAI,SAAS,CAAC,MAAM,CAAC,CAE9C;IACD;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,IAAI,EAAE,4BAA4B,GAAG,QAAQ,EAAE;IAI5E;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,4BAA4B,GAAG,SAAS,EAAE;IAGvE;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,4BAA4B,GAAG,kBAAkB,CAAC,QAAQ,CAAC,EAAE;IAW5F;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,IAAI,EAAE,4BAA4B,GAAG,kBAAkB,EAAE;IAGvF;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,4BAA4B,GAAG,gBAAgB,EAAE;IAG9E;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,4BAA4B,GAAG,wBAAwB,EAAE;IAGvF;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,4BAA4B,GAAG,gBAAgB,EAAE;IAW/E;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,4BAA4B,GAAG,wBAAwB,EAAE;CAW3F;AAED,wBAAgB,wCAAwC,IAAI,QAAQ,CAEnE;AAED,wBAAgB,4CAA4C,CAAC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,EAAE,EAAE,UAAU,EAAE,wBAAwB,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,kBAAkB,EAAE,EAAE,KAAK,CAAC,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,EAAE,wBAAwB,EAAE,EAAE,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,wBAAwB,EAAE,GAAG,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,4BAA4B,CAEza"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { defaultArg, unwrap
|
|
1
|
+
import { defaultArg, unwrap } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
2
|
+
import { SourceNodes_get_Empty, ListEntry$1 } from './CWLTypes.js';
|
|
2
3
|
import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js';
|
|
3
4
|
import { expressionToolDescription } from './CWLKnownFieldNames.js';
|
|
4
5
|
import { class_type } from '../../node_modules/@fable-org/fable-library-ts/Reflection.js';
|
|
@@ -17,6 +18,7 @@ class CWLExpressionToolDescription extends DynamicObj {
|
|
|
17
18
|
this._metadata = metadata;
|
|
18
19
|
this._label = label;
|
|
19
20
|
this._doc = doc;
|
|
21
|
+
this._sourceNodes = SourceNodes_get_Empty();
|
|
20
22
|
}
|
|
21
23
|
get Id() {
|
|
22
24
|
const this$ = this;
|
|
@@ -106,23 +108,42 @@ class CWLExpressionToolDescription extends DynamicObj {
|
|
|
106
108
|
const this$ = this;
|
|
107
109
|
this$._doc = doc;
|
|
108
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* The nodes that the doc and the label were read from. The encoder writes the layout of the author from them.
|
|
113
|
+
* They stay out of the equality and the hash of the object.
|
|
114
|
+
*/
|
|
115
|
+
get SourceNodes() {
|
|
116
|
+
const this$ = this;
|
|
117
|
+
return this$._sourceNodes;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The nodes that the doc and the label were read from. The encoder writes the layout of the author from them.
|
|
121
|
+
* They stay out of the equality and the hash of the object.
|
|
122
|
+
*/
|
|
123
|
+
set SourceNodes(value) {
|
|
124
|
+
const this$ = this;
|
|
125
|
+
this$._sourceNodes = value;
|
|
126
|
+
}
|
|
109
127
|
static get KnownFieldNames() {
|
|
110
128
|
return expressionToolDescription;
|
|
111
129
|
}
|
|
112
130
|
/**
|
|
113
|
-
* Returns the expression tool
|
|
131
|
+
* Returns a new list of the inputs of the expression tool that are objects, or an empty list. The imports and the
|
|
132
|
+
* mixins are left out, so a change of the list changes nothing in the tool. The entries of the tool are in Inputs.
|
|
114
133
|
*/
|
|
115
|
-
static
|
|
116
|
-
|
|
134
|
+
static getInputValuesOrEmpty(tool) {
|
|
135
|
+
let option_1 = void 0, entries = void 0;
|
|
136
|
+
return defaultArg((option_1 = tool.Inputs, option_1 != null ? (entries = option_1, ListEntry$1.values(entries)) : void 0), []);
|
|
117
137
|
}
|
|
118
138
|
/**
|
|
119
|
-
* Returns expression tool
|
|
139
|
+
* Returns a new list of the outputs of the expression tool that are objects. The imports and the mixins are left out,
|
|
140
|
+
* so a change of the list changes nothing in the tool. The entries of the tool are in Outputs.
|
|
120
141
|
*/
|
|
121
|
-
static
|
|
122
|
-
return tool.Outputs;
|
|
142
|
+
static getOutputValues(tool) {
|
|
143
|
+
return ListEntry$1.values(tool.Outputs);
|
|
123
144
|
}
|
|
124
145
|
/**
|
|
125
|
-
* Returns the expression tool's inputs, creating and assigning a new empty ResizeArray if None.
|
|
146
|
+
* Returns the entries of the expression tool's inputs, creating and assigning a new empty ResizeArray if None.
|
|
126
147
|
*/
|
|
127
148
|
static getOrCreateInputs(tool) {
|
|
128
149
|
const matchValue = tool.Inputs;
|
|
@@ -131,7 +152,7 @@ class CWLExpressionToolDescription extends DynamicObj {
|
|
|
131
152
|
tool.Inputs = inputs_1;
|
|
132
153
|
return inputs_1;
|
|
133
154
|
} else {
|
|
134
|
-
return
|
|
155
|
+
return matchValue;
|
|
135
156
|
}
|
|
136
157
|
}
|
|
137
158
|
/**
|
|
@@ -162,7 +183,7 @@ class CWLExpressionToolDescription extends DynamicObj {
|
|
|
162
183
|
tool.Hints = hints_1;
|
|
163
184
|
return hints_1;
|
|
164
185
|
} else {
|
|
165
|
-
return
|
|
186
|
+
return matchValue;
|
|
166
187
|
}
|
|
167
188
|
}
|
|
168
189
|
/**
|
|
@@ -175,15 +196,15 @@ class CWLExpressionToolDescription extends DynamicObj {
|
|
|
175
196
|
tool.Intent = intent_1;
|
|
176
197
|
return intent_1;
|
|
177
198
|
} else {
|
|
178
|
-
return
|
|
199
|
+
return matchValue;
|
|
179
200
|
}
|
|
180
201
|
}
|
|
181
202
|
}
|
|
182
203
|
function CWLExpressionToolDescription_$reflection() {
|
|
183
204
|
return class_type("ARCtrl.CWL.CWLExpressionToolDescription", void 0, CWLExpressionToolDescription, DynamicObj_$reflection());
|
|
184
205
|
}
|
|
185
|
-
function CWLExpressionToolDescription_$
|
|
206
|
+
function CWLExpressionToolDescription_$ctor_Z601F7DDE(outputs, expression, cwlVersion, requirements, hints, intent, inputs, metadata, label, doc, id) {
|
|
186
207
|
return new CWLExpressionToolDescription(outputs, expression, cwlVersion, requirements, hints, intent, inputs, metadata, label, doc, id);
|
|
187
208
|
}
|
|
188
209
|
|
|
189
|
-
export { CWLExpressionToolDescription, CWLExpressionToolDescription_$
|
|
210
|
+
export { CWLExpressionToolDescription, CWLExpressionToolDescription_$ctor_Z601F7DDE, CWLExpressionToolDescription_$reflection };
|
|
@@ -1,10 +1,48 @@
|
|
|
1
1
|
import { int32 } from '@fable-org/fable-library-ts/Int32.ts';
|
|
2
|
+
import { FSharpList } from '@fable-org/fable-library-ts/List.ts';
|
|
2
3
|
import { MutableArray } from '@fable-org/fable-library-ts/Util.ts';
|
|
3
4
|
import { Option } from '@fable-org/fable-library-ts/Option.ts';
|
|
5
|
+
import { YamlNode } from '../fable_modules/YAMLicious.2.0.0/Model.fs.js';
|
|
4
6
|
export declare function mergeHashes(hash1: int32, hash2: int32): int32;
|
|
7
|
+
/**
|
|
8
|
+
* The hash of the given values taken in order. The hash of a tuple on .NET covers its last eight items only, so an
|
|
9
|
+
* object with more fields hashes them through this list, which has no limit. A missing value hashes to 0.
|
|
10
|
+
*/
|
|
11
|
+
export declare function hashFields(fields: FSharpList<any>): int32;
|
|
5
12
|
export declare function hashDateTime(dt: Date): int32;
|
|
6
13
|
export declare function hash<$a>(obj: $a): int32;
|
|
7
14
|
export declare function boxHashOption<a>(a: Option<a>): any;
|
|
8
15
|
export declare function boxHashArray<a>(a: MutableArray<a>): any;
|
|
9
16
|
export declare function boxHashSeq<a>(a: Iterable<a>): any;
|
|
17
|
+
/**
|
|
18
|
+
* Two sequences are equal when they have the same length and equal elements in the same order. The equality of a
|
|
19
|
+
* ResizeArray compares references, so the objects of the CWL model compare their lists with this.
|
|
20
|
+
*/
|
|
21
|
+
export declare function seqEqual<a>(left: Iterable<a>, right: Iterable<a>): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Two optional lists are equal when both are missing or both hold equal elements in the same order.
|
|
24
|
+
*/
|
|
25
|
+
export declare function optionSeqEqual<a>(left: Option<a[]>, right: Option<a[]>): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* A hash of the elements in order, to go with seqEqual.
|
|
28
|
+
*/
|
|
29
|
+
export declare function hashSeq<a>(items: Iterable<a>): int32;
|
|
30
|
+
/**
|
|
31
|
+
* A hash of an optional list, to go with optionSeqEqual.
|
|
32
|
+
*/
|
|
33
|
+
export declare function hashOptionSeq<a>(items: Option<a[]>): int32;
|
|
34
|
+
/**
|
|
35
|
+
* Two raw YAML nodes of a CWL object are equal when they hold the same data. They have the same shape and the same
|
|
36
|
+
* tags, and their keys and scalar texts agree in order. A plain scalar differs from a quoted one, because the core
|
|
37
|
+
* schema reads only the plain one as a number, a bool or null. The scalars count in the form that the writer spells
|
|
38
|
+
* (see ScalarQuoting.normalizeScalar), so a plain 1_000, which the writer quotes, equals the quoted one that a read of
|
|
39
|
+
* the written text gives. Comments, blank lines, anchors, collection styles, the kind of quote and spans do not count,
|
|
40
|
+
* so the comparison ignores what a write and a read can change.
|
|
41
|
+
*/
|
|
42
|
+
export declare function yamlNodeEqual(left: YamlNode, right: YamlNode): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* A hash that agrees with yamlNodeEqual. It reads the shape of the node and its scalar texts, so two equal nodes
|
|
45
|
+
* always have the same hash.
|
|
46
|
+
*/
|
|
47
|
+
export declare function hashYamlNode(root: YamlNode): int32;
|
|
10
48
|
//# sourceMappingURL=HashHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HashHelpers.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/HashHelpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"HashHelpers.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/HashHelpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAoB,UAAU,EAAQ,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAsB,YAAY,EAA4C,MAAM,qCAAqC,CAAC;AAEjI,OAAO,EAAE,MAAM,EAAoB,MAAM,uCAAuC,CAAC;AAGjF,OAAO,EAAmG,QAAQ,EAAkB,MAAM,+CAA+C,CAAC;AAM1L,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,CAE7D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,KAAK,CAEzD;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,IAAI,GAAG,KAAK,CAS5C;AAED,wBAAgB,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,KAAK,CAGvC;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAGlD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,GAAG,CAEvD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,CAEjD;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO,CAS1E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,CA0BhF;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,KAAK,CAEpD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAO1D;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,GAAG,OAAO,CAuHtE;AAkBD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,KAAK,CAiElD"}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
import { fold, length, iterate2 } from '../../node_modules/@fable-org/fable-library-ts/List.js';
|
|
2
|
+
import { structuralHash, identityHash, numberHash, equals, stringHash } from '../../node_modules/@fable-org/fable-library-ts/Util.js';
|
|
1
3
|
import { year, month, day, hour, minute, second } from '../../node_modules/@fable-org/fable-library-ts/Date.js';
|
|
2
|
-
import { identityHash, numberHash } from '../../node_modules/@fable-org/fable-library-ts/Util.js';
|
|
3
4
|
import { value } from '../../node_modules/@fable-org/fable-library-ts/Option.js';
|
|
4
|
-
import { fold } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
|
|
5
|
-
import { fold as fold$
|
|
5
|
+
import { fold as fold$1, forAll2, item } from '../../node_modules/@fable-org/fable-library-ts/Array.js';
|
|
6
|
+
import { fold as fold$2, toArray, delay, collect, append, singleton, map } from '../../node_modules/@fable-org/fable-library-ts/Seq.js';
|
|
7
|
+
import { YamlNode_$reflection } from '../fable_modules/YAMLicious.2.0.0/Model.fs.js';
|
|
8
|
+
import { YamlTagModule_identifier } from '../fable_modules/YAMLicious.2.0.0/Tag.fs.js';
|
|
9
|
+
import { normalizeScalar } from './ScalarQuoting.js';
|
|
10
|
+
import { Record } from '../../node_modules/@fable-org/fable-library-ts/Types.js';
|
|
11
|
+
import { record_type, array_type, int32_type } from '../../node_modules/@fable-org/fable-library-ts/Reflection.js';
|
|
6
12
|
|
|
7
13
|
function mergeHashes(hash1, hash2) {
|
|
8
14
|
return -1640531527 + hash2 + (hash1 << 6) + (hash1 >> 2) | 0;
|
|
9
15
|
}
|
|
16
|
+
function hashFields(fields) {
|
|
17
|
+
return fold((acc, field) => mergeHashes(acc, structuralHash(field)) | 0, 0, fields) | 0;
|
|
18
|
+
}
|
|
10
19
|
function hashDateTime(dt) {
|
|
11
20
|
let acc = 0;
|
|
12
21
|
acc = mergeHashes(acc, year(dt)) | 0;
|
|
@@ -26,10 +35,250 @@ function boxHashOption(a) {
|
|
|
26
35
|
return a != null ? (copyOfStruct = value(a), identityHash(copyOfStruct)) : (copyOfStruct_1 = 0, numberHash(copyOfStruct_1));
|
|
27
36
|
}
|
|
28
37
|
function boxHashArray(a) {
|
|
29
|
-
return fold((acc, o) => mergeHashes(acc, hash(o)) | 0, 0, a);
|
|
38
|
+
return fold$1((acc, o) => mergeHashes(acc, hash(o)) | 0, 0, a);
|
|
30
39
|
}
|
|
31
40
|
function boxHashSeq(a) {
|
|
32
|
-
return fold$
|
|
41
|
+
return fold$2((acc, o) => mergeHashes(acc, hash(o)) | 0, 0, a);
|
|
42
|
+
}
|
|
43
|
+
function seqEqual(left, right) {
|
|
44
|
+
const leftItems = toArray(left);
|
|
45
|
+
const rightItems = toArray(right);
|
|
46
|
+
if (leftItems.length === rightItems.length) {
|
|
47
|
+
return forAll2(equals, leftItems, rightItems);
|
|
48
|
+
} else {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function optionSeqEqual(left, right) {
|
|
53
|
+
let matchResult = void 0, leftItems = void 0, rightItems = void 0;
|
|
54
|
+
if (left != null) {
|
|
55
|
+
if (right != null) {
|
|
56
|
+
matchResult = 1;
|
|
57
|
+
leftItems = left;
|
|
58
|
+
rightItems = right;
|
|
59
|
+
} else {
|
|
60
|
+
matchResult = 2;
|
|
61
|
+
}
|
|
62
|
+
} else if (right == null) {
|
|
63
|
+
matchResult = 0;
|
|
64
|
+
} else {
|
|
65
|
+
matchResult = 2;
|
|
66
|
+
}
|
|
67
|
+
switch (matchResult) {
|
|
68
|
+
case 0:
|
|
69
|
+
return true;
|
|
70
|
+
case 1:
|
|
71
|
+
return seqEqual(leftItems, rightItems);
|
|
72
|
+
default:
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function hashSeq(items) {
|
|
77
|
+
return fold$2((acc, item) => mergeHashes(acc, hash(item)) | 0, 0, items) | 0;
|
|
78
|
+
}
|
|
79
|
+
function hashOptionSeq(items) {
|
|
80
|
+
if (items == null) {
|
|
81
|
+
return 0;
|
|
82
|
+
} else {
|
|
83
|
+
return mergeHashes(1, hashSeq(items)) | 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function yamlNodeEqual(left, right) {
|
|
87
|
+
const tagOf = (node) => {
|
|
88
|
+
const option_1 = node.Properties.Tag;
|
|
89
|
+
if (option_1 != null) {
|
|
90
|
+
return YamlTagModule_identifier(option_1);
|
|
91
|
+
} else {
|
|
92
|
+
return void 0;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const isPlain = (scalar) => {
|
|
96
|
+
if (scalar.Style.tag === /* Plain */
|
|
97
|
+
0) {
|
|
98
|
+
return true;
|
|
99
|
+
} else {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const pending = [];
|
|
104
|
+
void pending.push([left, right]);
|
|
105
|
+
let equal = true;
|
|
106
|
+
while (equal && pending.length > 0) {
|
|
107
|
+
const patternInput = item(pending.length - 1, pending);
|
|
108
|
+
const rightNode = patternInput[1];
|
|
109
|
+
const leftNode = patternInput[0];
|
|
110
|
+
pending.splice(pending.length - 1, 1);
|
|
111
|
+
if (!equals(tagOf(leftNode), tagOf(rightNode))) {
|
|
112
|
+
equal = false;
|
|
113
|
+
} else {
|
|
114
|
+
const matchValue_1 = leftNode.Kind;
|
|
115
|
+
const matchValue_2 = rightNode.Kind;
|
|
116
|
+
let matchResult = void 0, leftScalar = void 0, rightScalar = void 0, leftName = void 0, rightName = void 0, leftCollection = void 0, rightCollection = void 0, leftCollection_1 = void 0, rightCollection_1 = void 0;
|
|
117
|
+
switch (matchValue_1.tag) {
|
|
118
|
+
case /* Alias */
|
|
119
|
+
3: {
|
|
120
|
+
if (matchValue_2.tag === /* Alias */
|
|
121
|
+
3) {
|
|
122
|
+
matchResult = 1;
|
|
123
|
+
leftName = matchValue_1.fields[0];
|
|
124
|
+
rightName = matchValue_2.fields[0];
|
|
125
|
+
} else {
|
|
126
|
+
matchResult = 4;
|
|
127
|
+
}
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
case /* Sequence */
|
|
131
|
+
2: {
|
|
132
|
+
if (matchValue_2.tag === /* Sequence */
|
|
133
|
+
2) {
|
|
134
|
+
matchResult = 2;
|
|
135
|
+
leftCollection = matchValue_1.fields[0];
|
|
136
|
+
rightCollection = matchValue_2.fields[0];
|
|
137
|
+
} else {
|
|
138
|
+
matchResult = 4;
|
|
139
|
+
}
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
case /* Mapping */
|
|
143
|
+
1: {
|
|
144
|
+
if (matchValue_2.tag === /* Mapping */
|
|
145
|
+
1) {
|
|
146
|
+
matchResult = 3;
|
|
147
|
+
leftCollection_1 = matchValue_1.fields[0];
|
|
148
|
+
rightCollection_1 = matchValue_2.fields[0];
|
|
149
|
+
} else {
|
|
150
|
+
matchResult = 4;
|
|
151
|
+
}
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
default:
|
|
155
|
+
if (matchValue_2.tag === /* Scalar */
|
|
156
|
+
0) {
|
|
157
|
+
matchResult = 0;
|
|
158
|
+
leftScalar = matchValue_1.fields[0];
|
|
159
|
+
rightScalar = matchValue_2.fields[0];
|
|
160
|
+
} else {
|
|
161
|
+
matchResult = 4;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
switch (matchResult) {
|
|
165
|
+
case 0: {
|
|
166
|
+
const leftWritten = normalizeScalar(leftScalar);
|
|
167
|
+
const rightWritten = normalizeScalar(rightScalar);
|
|
168
|
+
equal = leftWritten.Value === rightWritten.Value && isPlain(leftWritten) === isPlain(rightWritten);
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
case 1: {
|
|
172
|
+
equal = leftName === rightName;
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
case 2: {
|
|
176
|
+
if (length(leftCollection.Items) !== length(rightCollection.Items)) {
|
|
177
|
+
equal = false;
|
|
178
|
+
} else {
|
|
179
|
+
iterate2((leftItem, rightItem) => {
|
|
180
|
+
void pending.push([leftItem.Node, rightItem.Node]);
|
|
181
|
+
}, leftCollection.Items, rightCollection.Items);
|
|
182
|
+
}
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
case 3: {
|
|
186
|
+
if (length(leftCollection_1.Items) !== length(rightCollection_1.Items)) {
|
|
187
|
+
equal = false;
|
|
188
|
+
} else {
|
|
189
|
+
iterate2((leftEntry, rightEntry) => {
|
|
190
|
+
void pending.push([leftEntry.Key, rightEntry.Key]);
|
|
191
|
+
void pending.push([leftEntry.Value, rightEntry.Value]);
|
|
192
|
+
}, leftCollection_1.Items, rightCollection_1.Items);
|
|
193
|
+
}
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
case 4: {
|
|
197
|
+
equal = false;
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return equal;
|
|
204
|
+
}
|
|
205
|
+
class OpenCollection extends Record {
|
|
206
|
+
constructor(Children, Next, Acc) {
|
|
207
|
+
super();
|
|
208
|
+
this.Children = Children;
|
|
209
|
+
this.Next = Next | 0;
|
|
210
|
+
this.Acc = Acc | 0;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function OpenCollection_$reflection() {
|
|
214
|
+
return record_type("ARCtrl.CWL.HashHelpers.OpenCollection", [], OpenCollection, () => [["Children", array_type(YamlNode_$reflection())], ["Next", int32_type], ["Acc", int32_type]]);
|
|
215
|
+
}
|
|
216
|
+
function hashYamlNode(root) {
|
|
217
|
+
const leafHash = (node_1) => {
|
|
218
|
+
const matchValue_1 = node_1.Kind;
|
|
219
|
+
switch (matchValue_1.tag) {
|
|
220
|
+
case /* Scalar */
|
|
221
|
+
0:
|
|
222
|
+
return mergeHashes(1, stringHash(normalizeScalar(matchValue_1.fields[0]).Value)) | 0;
|
|
223
|
+
case /* Alias */
|
|
224
|
+
3:
|
|
225
|
+
return mergeHashes(2, stringHash(matchValue_1.fields[0])) | 0;
|
|
226
|
+
default:
|
|
227
|
+
return 0;
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
const unfinished = [];
|
|
231
|
+
const enter = (node_2) => {
|
|
232
|
+
let matchValue_2;
|
|
233
|
+
const matchValue = node_2.Kind;
|
|
234
|
+
switch (matchValue.tag) {
|
|
235
|
+
case /* Sequence */
|
|
236
|
+
2: {
|
|
237
|
+
const collection = matchValue.fields[0];
|
|
238
|
+
matchValue_2 = [3, toArray(delay(() => map((item) => item.Node, collection.Items)))];
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
case /* Mapping */
|
|
242
|
+
1: {
|
|
243
|
+
const collection_1 = matchValue.fields[0];
|
|
244
|
+
matchValue_2 = [4, toArray(delay(() => collect((entry) => append(singleton(entry.Key), delay(() => singleton(entry.Value))), collection_1.Items)))];
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
default:
|
|
248
|
+
matchValue_2 = void 0;
|
|
249
|
+
}
|
|
250
|
+
if (matchValue_2 == null) {
|
|
251
|
+
return false;
|
|
252
|
+
} else {
|
|
253
|
+
const seed = matchValue_2[0] | 0;
|
|
254
|
+
const children = matchValue_2[1];
|
|
255
|
+
void unfinished.push(new OpenCollection(children, 0, seed));
|
|
256
|
+
return true;
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
let result = 0;
|
|
260
|
+
if (!enter(root)) {
|
|
261
|
+
result = leafHash(root) | 0;
|
|
262
|
+
}
|
|
263
|
+
while (unfinished.length > 0) {
|
|
264
|
+
const top = item(unfinished.length - 1, unfinished);
|
|
265
|
+
if (top.Next < top.Children.length) {
|
|
266
|
+
const child = item(top.Next, top.Children);
|
|
267
|
+
top.Next = top.Next + 1 | 0;
|
|
268
|
+
if (!enter(child)) {
|
|
269
|
+
top.Acc = mergeHashes(top.Acc, leafHash(child)) | 0;
|
|
270
|
+
}
|
|
271
|
+
} else {
|
|
272
|
+
unfinished.splice(unfinished.length - 1, 1);
|
|
273
|
+
if (unfinished.length === 0) {
|
|
274
|
+
result = top.Acc | 0;
|
|
275
|
+
} else {
|
|
276
|
+
const parent = item(unfinished.length - 1, unfinished);
|
|
277
|
+
parent.Acc = mergeHashes(parent.Acc, top.Acc) | 0;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return result | 0;
|
|
33
282
|
}
|
|
34
283
|
|
|
35
|
-
export { boxHashArray, boxHashOption, boxHashSeq, hash, hashDateTime, mergeHashes };
|
|
284
|
+
export { boxHashArray, boxHashOption, boxHashSeq, hash, hashDateTime, hashFields, hashOptionSeq, hashSeq, hashYamlNode, mergeHashes, optionSeqEqual, seqEqual, yamlNodeEqual };
|