@nfdi4plants/arctrl 1.1.0 → 2.0.0-alpha.1
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/ARC.js +53 -35
- package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
- package/Contract/ArcAssay.js +102 -0
- package/Contract/ArcInvestigation.js +78 -0
- package/Contract/ArcStudy.js +102 -0
- package/Contract/Contract.js +3 -3
- package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
- package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
- package/Core/Comment.js +97 -0
- package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
- package/Core/Conversion.js +1056 -0
- package/Core/Helper/Collections.js +318 -0
- package/Core/Helper/HashCodes.js +39 -0
- package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
- package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
- package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
- package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
- package/Core/OntologyAnnotation.js +186 -0
- package/Core/OntologySourceReference.js +92 -0
- package/Core/Person.js +194 -0
- package/Core/Process/ColumnIndex.js +248 -0
- package/Core/Process/Component.js +188 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
- package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
- package/Core/Process/Factor.js +109 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
- package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
- package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
- package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
- package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
- package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
- package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +24 -31
- package/Core/Publication.js +116 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +49 -155
- package/Core/Table/ArcTableAux.js +532 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +9 -8
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
- package/{Templates → Core}/Template.js +16 -17
- package/Core/Templates.js +84 -0
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +46 -8
- package/FileSystem/Path.js +10 -2
- package/Json/ARC.js +25 -0
- package/Json/Assay.js +202 -0
- package/Json/Comment.js +130 -0
- package/Json/ConverterOptions.js +18 -0
- package/Json/Decode.js +128 -0
- package/Json/Encode.js +45 -0
- package/Json/Investigation.js +220 -0
- package/Json/OntologyAnnotation.js +169 -0
- package/Json/OntologySourceReference.js +122 -0
- package/Json/Person.js +250 -0
- package/Json/Process/AssayMaterials.js +22 -0
- package/Json/Process/Component.js +79 -0
- package/Json/Process/Data.js +102 -0
- package/Json/Process/DataFile.js +81 -0
- package/Json/Process/Factor.js +48 -0
- package/Json/Process/FactorValue.js +53 -0
- package/Json/Process/Material.js +107 -0
- package/Json/Process/MaterialAttribute.js +45 -0
- package/Json/Process/MaterialAttributeValue.js +70 -0
- package/Json/Process/MaterialType.js +60 -0
- package/Json/Process/Process.js +107 -0
- package/Json/Process/ProcessInput.js +59 -0
- package/Json/Process/ProcessOutput.js +71 -0
- package/Json/Process/ProcessParameterValue.js +69 -0
- package/Json/Process/ProcessSequence.js +53 -0
- package/Json/Process/PropertyValue.js +82 -0
- package/Json/Process/Protocol.js +147 -0
- package/Json/Process/ProtocolParameter.js +45 -0
- package/Json/Process/Sample.js +134 -0
- package/Json/Process/Source.js +101 -0
- package/Json/Process/StudyMaterials.js +24 -0
- package/Json/Process/Value.js +42 -0
- package/Json/Publication.js +142 -0
- package/Json/StringTable.js +44 -0
- package/Json/Study.js +306 -0
- package/Json/Table/ArcTable.js +223 -0
- package/Json/Table/CellTable.js +40 -0
- package/Json/Table/CompositeCell.js +65 -0
- package/Json/Table/CompositeHeader.js +57 -0
- package/Json/Table/Compression.js +38 -0
- package/Json/Table/IOType.js +37 -0
- package/Json/Table/OATable.js +40 -0
- package/Json/Table/Templates.js +107 -0
- package/Json/context/rocrate/isa_assay_context.js +32 -0
- package/Json/context/rocrate/isa_comment_context.js +23 -0
- package/Json/context/rocrate/isa_component_context.js +24 -0
- package/Json/context/rocrate/isa_data_context.js +25 -0
- package/Json/context/rocrate/isa_factor_context.js +25 -0
- package/Json/context/rocrate/isa_factor_value_context.js +23 -0
- package/Json/context/rocrate/isa_investigation_context.js +33 -0
- package/Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
- package/Json/context/rocrate/isa_material_context.js +26 -0
- package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/Json/context/rocrate/isa_organization_context.js +22 -0
- package/Json/context/rocrate/isa_person_context.js +33 -0
- package/Json/context/rocrate/isa_process_context.js +29 -0
- package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
- package/Json/context/rocrate/isa_protocol_context.js +28 -0
- package/Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/Json/context/rocrate/isa_publication_context.js +25 -0
- package/Json/context/rocrate/isa_sample_context.js +24 -0
- package/Json/context/rocrate/isa_source_context.js +25 -0
- package/Json/context/rocrate/isa_study_context.js +40 -0
- package/Json/context/rocrate/property_value_context.js +4 -0
- package/Json/context/rocrate/rocrate_context.js +23 -0
- package/Json.js +193 -0
- package/README.md +50 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +8 -8
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
- package/Spreadsheet/Metadata/Comment.js +71 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
- package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +34 -28
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
- package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
- package/Template.Web.js +27 -0
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/Xlsx.js +85 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.js +124 -86
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
- package/fable_modules/fable-library-js.4.16.0/CHANGELOG.md +47 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.js +0 -43
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.js +340 -42
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.js +3 -3
- package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.16.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.16.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.js +60 -8
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.js +2 -13
- package/fable_modules/fable-library-js.4.16.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/index.js +14 -12
- package/package.json +1 -1
- package/Contracts/Contracts.ArcTypes.js +0 -268
- package/FileSystemTree.js +0 -51
- package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
- package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
- package/ISA/ISA/Builder/Types.js +0 -243
- package/ISA/ISA/Fable.js +0 -123
- package/ISA/ISA/Helper.js +0 -503
- package/ISA/ISA/JsonTypes/Assay.js +0 -620
- package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
- package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
- package/ISA/ISA/JsonTypes/Comment.js +0 -58
- package/ISA/ISA/JsonTypes/Component.js +0 -165
- package/ISA/ISA/JsonTypes/Factor.js +0 -128
- package/ISA/ISA/JsonTypes/Investigation.js +0 -204
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
- package/ISA/ISA/JsonTypes/Person.js +0 -137
- package/ISA/ISA/JsonTypes/Publication.js +0 -105
- package/ISA/ISA/JsonTypes/Study.js +0 -942
- package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
- package/ISA/ISA/UIHelper.js +0 -19
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -282
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -93
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -170
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +0 -178
- package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -46
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -77
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +0 -82
- package/ISA/ISA.Json/ArcTypes/IOType.js +0 -35
- package/ISA/ISA.Json/ArcTypes/OATable.js +0 -48
- package/ISA/ISA.Json/Assay.js +0 -105
- package/ISA/ISA.Json/Comment.js +0 -84
- package/ISA/ISA.Json/ConverterOptions.js +0 -33
- package/ISA/ISA.Json/Data.js +0 -271
- package/ISA/ISA.Json/Decode.js +0 -46
- package/ISA/ISA.Json/Factor.js +0 -194
- package/ISA/ISA.Json/GEncode.js +0 -15
- package/ISA/ISA.Json/Investigation.js +0 -114
- package/ISA/ISA.Json/Material.js +0 -233
- package/ISA/ISA.Json/Ontology.js +0 -223
- package/ISA/ISA.Json/Person.js +0 -204
- package/ISA/ISA.Json/Process.js +0 -291
- package/ISA/ISA.Json/Protocol.js +0 -242
- package/ISA/ISA.Json/Publication.js +0 -92
- package/ISA/ISA.Json/StringTable.js +0 -43
- package/ISA/ISA.Json/Study.js +0 -212
- package/ISA/ISA.Json/Validation/Fable.js +0 -69
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
- package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +0 -59
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +0 -60
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
- package/Path.js +0 -10
- package/Templates/Template.Json.js +0 -83
- package/Templates/Template.Web.js +0 -27
- package/Templates/Templates.js +0 -82
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
- package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
- package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
- package/fable_modules/fable-library.4.5.0/MapUtil.d.ts +0 -10
- /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Record, toString } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { record_type, option_type, string_type } from "
|
|
1
|
+
import { Record, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { unwrap, defaultArg, bind, map } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
3
|
+
import { MaterialAttribute__SetCategory_ZDED3A0F, MaterialAttribute_create_A220A8A, MaterialAttribute__MapCategory_658CFBF6, MaterialAttribute__get_TryNameText, MaterialAttribute_$reflection, MaterialAttribute__get_NameText } from "./MaterialAttribute.js";
|
|
4
|
+
import { record_type, option_type, string_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
5
5
|
import { Value_$reflection } from "./Value.js";
|
|
6
|
-
import { OntologyAnnotation_$reflection } from "
|
|
7
|
-
import { int32ToString } from "
|
|
8
|
-
import { printf, toText } from "
|
|
6
|
+
import { OntologyAnnotation_$reflection } from "../OntologyAnnotation.js";
|
|
7
|
+
import { int32ToString } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
8
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
9
9
|
|
|
10
10
|
export class MaterialAttributeValue extends Record {
|
|
11
11
|
constructor(ID, Category, Value, Unit) {
|
|
@@ -35,22 +35,37 @@ export class MaterialAttributeValue extends Record {
|
|
|
35
35
|
}, this$.Value);
|
|
36
36
|
return (category == null) ? ((value == null) ? "" : ((value_2 = value, value_2))) : ((value == null) ? ((category_2 = category, (category_2 + ":") + "No Value")) : ((category_1 = category, (value_1 = value, (category_1 + ":") + value_1))));
|
|
37
37
|
}
|
|
38
|
+
GetCategory() {
|
|
39
|
+
const this$ = this;
|
|
40
|
+
return bind((x) => x.CharacteristicType, this$.Category);
|
|
41
|
+
}
|
|
42
|
+
GetValue() {
|
|
43
|
+
const this$ = this;
|
|
44
|
+
return this$.Value;
|
|
45
|
+
}
|
|
46
|
+
GetUnit() {
|
|
47
|
+
const this$ = this;
|
|
48
|
+
return this$.Unit;
|
|
49
|
+
}
|
|
50
|
+
GetAdditionalType() {
|
|
51
|
+
return "MaterialAttributeValue";
|
|
52
|
+
}
|
|
38
53
|
}
|
|
39
54
|
|
|
40
55
|
export function MaterialAttributeValue_$reflection() {
|
|
41
|
-
return record_type("ARCtrl.
|
|
56
|
+
return record_type("ARCtrl.Process.MaterialAttributeValue", [], MaterialAttributeValue, () => [["ID", option_type(string_type)], ["Category", option_type(MaterialAttribute_$reflection())], ["Value", option_type(Value_$reflection())], ["Unit", option_type(OntologyAnnotation_$reflection())]]);
|
|
42
57
|
}
|
|
43
58
|
|
|
44
59
|
export function MaterialAttributeValue_make(id, category, value, unit) {
|
|
45
60
|
return new MaterialAttributeValue(id, category, value, unit);
|
|
46
61
|
}
|
|
47
62
|
|
|
48
|
-
export function
|
|
63
|
+
export function MaterialAttributeValue_create_BE8DE56(Id, Category, Value, Unit) {
|
|
49
64
|
return MaterialAttributeValue_make(Id, Category, Value, Unit);
|
|
50
65
|
}
|
|
51
66
|
|
|
52
67
|
export function MaterialAttributeValue_get_empty() {
|
|
53
|
-
return
|
|
68
|
+
return MaterialAttributeValue_create_BE8DE56();
|
|
54
69
|
}
|
|
55
70
|
|
|
56
71
|
/**
|
|
@@ -94,26 +109,26 @@ export function MaterialAttributeValue__get_ValueWithUnitText(this$) {
|
|
|
94
109
|
}
|
|
95
110
|
}
|
|
96
111
|
|
|
97
|
-
export function
|
|
98
|
-
return new MaterialAttributeValue(this$.ID, map((p) =>
|
|
112
|
+
export function MaterialAttributeValue__MapCategory_658CFBF6(this$, f) {
|
|
113
|
+
return new MaterialAttributeValue(this$.ID, map((p) => MaterialAttribute__MapCategory_658CFBF6(p, f), this$.Category), this$.Value, this$.Unit);
|
|
99
114
|
}
|
|
100
115
|
|
|
101
|
-
export function
|
|
116
|
+
export function MaterialAttributeValue__SetCategory_ZDED3A0F(this$, c) {
|
|
102
117
|
let matchValue;
|
|
103
|
-
return new MaterialAttributeValue(this$.ID, (matchValue = this$.Category, (matchValue == null) ?
|
|
118
|
+
return new MaterialAttributeValue(this$.ID, (matchValue = this$.Category, (matchValue == null) ? MaterialAttribute_create_A220A8A(void 0, c) : MaterialAttribute__SetCategory_ZDED3A0F(matchValue, c)), this$.Value, this$.Unit);
|
|
104
119
|
}
|
|
105
120
|
|
|
106
121
|
/**
|
|
107
122
|
* Returns the name of the characteristic value as string if it exists
|
|
108
123
|
*/
|
|
109
|
-
export function
|
|
124
|
+
export function MaterialAttributeValue_tryGetNameText_Z772273B8(mv) {
|
|
110
125
|
return MaterialAttributeValue__get_TryNameText(mv);
|
|
111
126
|
}
|
|
112
127
|
|
|
113
128
|
/**
|
|
114
129
|
* Returns the name of the characteristic value as string
|
|
115
130
|
*/
|
|
116
|
-
export function
|
|
131
|
+
export function MaterialAttributeValue_getNameAsString_Z772273B8(mv) {
|
|
117
132
|
return MaterialAttributeValue__get_TryNameText(mv);
|
|
118
133
|
}
|
|
119
134
|
|
|
@@ -124,3 +139,7 @@ export function MaterialAttributeValue_nameEqualsString(name, mv) {
|
|
|
124
139
|
return MaterialAttributeValue__get_NameText(mv) === name;
|
|
125
140
|
}
|
|
126
141
|
|
|
142
|
+
export function MaterialAttributeValue_createAsPV(category, value, unit) {
|
|
143
|
+
return MaterialAttributeValue_create_BE8DE56(void 0, unwrap(map((c) => MaterialAttribute_create_A220A8A(void 0, c), category)), unwrap(value), unwrap(unit));
|
|
144
|
+
}
|
|
145
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Union } from "
|
|
2
|
-
import { union_type } from "
|
|
1
|
+
import { Union } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { union_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
3
3
|
|
|
4
4
|
export class MaterialType extends Union {
|
|
5
5
|
constructor(tag, fields) {
|
|
@@ -13,7 +13,7 @@ export class MaterialType extends Union {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export function MaterialType_$reflection() {
|
|
16
|
-
return union_type("ARCtrl.
|
|
16
|
+
return union_type("ARCtrl.Process.MaterialType", [], MaterialType, () => [[], []]);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export function MaterialType_create_Z721C83C5(t) {
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { Record, toString } from "
|
|
2
|
-
import { zip, tryPick, map as map_1, tryFind, append, collect, choose, empty, length } from "
|
|
3
|
-
import { map, value as value_4, bind, defaultArg } from "
|
|
4
|
-
import { printf, toText } from "
|
|
5
|
-
import {
|
|
1
|
+
import { Record, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { zip, tryPick, map as map_1, tryFind, append, collect, choose, empty, length } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
3
|
+
import { map, value as value_4, bind, defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
4
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
5
|
+
import { record_type, list_type, option_type, string_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
6
6
|
import { Protocol_$reflection } from "./Protocol.js";
|
|
7
7
|
import { ProcessParameterValue_$reflection } from "./ProcessParameterValue.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { Comment$_$reflection } from "
|
|
11
|
-
import { ActivePatterns_$007CRegex$007C_$007C } from "../Regex.js";
|
|
12
|
-
import { parse } from "
|
|
13
|
-
import { List_distinct } from "
|
|
14
|
-
import { safeHash, equals } from "
|
|
8
|
+
import { ProcessInput_tryMaterial_5B3D5BA9, ProcessInput_trySample_5B3D5BA9, ProcessInput_tryData_5B3D5BA9, ProcessInput_trySource_5B3D5BA9, ProcessInput_tryGetCharacteristicValues_5B3D5BA9, ProcessInput_$reflection } from "./ProcessInput.js";
|
|
9
|
+
import { ProcessOutput_tryMaterial_Z42C11600, ProcessOutput_trySample_Z42C11600, ProcessOutput_tryData_Z42C11600, ProcessOutput_tryGetFactorValues_Z42C11600, ProcessOutput_tryGetCharacteristicValues_Z42C11600, ProcessOutput_$reflection } from "./ProcessOutput.js";
|
|
10
|
+
import { Comment$_$reflection } from "../Comment.js";
|
|
11
|
+
import { ActivePatterns_$007CRegex$007C_$007C } from "../Helper/Regex.js";
|
|
12
|
+
import { parse } from "../../fable_modules/fable-library-js.4.16.0/Int32.js";
|
|
13
|
+
import { List_distinct } from "../../fable_modules/fable-library-js.4.16.0/Seq2.js";
|
|
14
|
+
import { safeHash, equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
15
15
|
import { ProtocolParameter } from "./ProtocolParameter.js";
|
|
16
|
-
import {
|
|
17
|
-
import { map2 } from "../../../fable_modules/fable-library.4.5.0/Array.js";
|
|
18
|
-
import { Update_updateOnlyByExistingAppend, Update_updateOnlyByExisting, Update_updateAppend } from "../Helper.js";
|
|
16
|
+
import { Option_fromValueWithDefault } from "../Helper/Collections.js";
|
|
19
17
|
|
|
20
18
|
export class Process extends Record {
|
|
21
19
|
constructor(ID, Name, ExecutesProtocol, ParameterValues, Performer, Date$, PreviousProcess, NextProcess, Inputs, Outputs, Comments) {
|
|
@@ -47,19 +45,19 @@ export class Process extends Record {
|
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
export function Process_$reflection() {
|
|
50
|
-
return record_type("ARCtrl.
|
|
48
|
+
return record_type("ARCtrl.Process.Process", [], Process, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["ExecutesProtocol", option_type(Protocol_$reflection())], ["ParameterValues", option_type(list_type(ProcessParameterValue_$reflection()))], ["Performer", option_type(string_type)], ["Date", option_type(string_type)], ["PreviousProcess", option_type(Process_$reflection())], ["NextProcess", option_type(Process_$reflection())], ["Inputs", option_type(list_type(ProcessInput_$reflection()))], ["Outputs", option_type(list_type(ProcessOutput_$reflection()))], ["Comments", option_type(list_type(Comment$_$reflection()))]]);
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export function Process_make(id, name, executesProtocol, parameterValues, performer, date, previousProcess, nextProcess, inputs, outputs, comments) {
|
|
54
52
|
return new Process(id, name, executesProtocol, parameterValues, performer, date, previousProcess, nextProcess, inputs, outputs, comments);
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
export function
|
|
55
|
+
export function Process_create_Z7C1F7FA9(Id, Name, ExecutesProtocol, ParameterValues, Performer, Date$, PreviousProcess, NextProcess, Inputs, Outputs, Comments) {
|
|
58
56
|
return Process_make(Id, Name, ExecutesProtocol, ParameterValues, Performer, Date$, PreviousProcess, NextProcess, Inputs, Outputs, Comments);
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function Process_get_empty() {
|
|
62
|
-
return
|
|
60
|
+
return Process_create_Z7C1F7FA9();
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
export function Process_composeName(processNameRoot, i) {
|
|
@@ -80,41 +78,41 @@ export function Process_decomposeName_Z721C83C5(name) {
|
|
|
80
78
|
/**
|
|
81
79
|
* Returns the name of the protocol the given process executes
|
|
82
80
|
*/
|
|
83
|
-
export function
|
|
81
|
+
export function Process_tryGetProtocolName_763471FF(p) {
|
|
84
82
|
return bind((p_1) => p_1.Name, p.ExecutesProtocol);
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
/**
|
|
88
86
|
* Returns the name of the protocol the given process executes
|
|
89
87
|
*/
|
|
90
|
-
export function
|
|
88
|
+
export function Process_getProtocolName_763471FF(p) {
|
|
91
89
|
return value_4(bind((p_1) => p_1.Name, p.ExecutesProtocol));
|
|
92
90
|
}
|
|
93
91
|
|
|
94
92
|
/**
|
|
95
93
|
* Returns the parameter values describing the process
|
|
96
94
|
*/
|
|
97
|
-
export function
|
|
95
|
+
export function Process_getParameterValues_763471FF(p) {
|
|
98
96
|
return defaultArg(p.ParameterValues, empty());
|
|
99
97
|
}
|
|
100
98
|
|
|
101
99
|
/**
|
|
102
100
|
* Returns the parameters describing the process
|
|
103
101
|
*/
|
|
104
|
-
export function
|
|
105
|
-
return choose((pv) => pv.Category,
|
|
102
|
+
export function Process_getParameters_763471FF(p) {
|
|
103
|
+
return choose((pv) => pv.Category, Process_getParameterValues_763471FF(p));
|
|
106
104
|
}
|
|
107
105
|
|
|
108
106
|
/**
|
|
109
107
|
* Returns the characteristics describing the inputs of the process
|
|
110
108
|
*/
|
|
111
|
-
export function
|
|
109
|
+
export function Process_getInputCharacteristicValues_763471FF(p) {
|
|
112
110
|
const matchValue = p.Inputs;
|
|
113
111
|
if (matchValue == null) {
|
|
114
112
|
return empty();
|
|
115
113
|
}
|
|
116
114
|
else {
|
|
117
|
-
return List_distinct(collect((inp) => defaultArg(
|
|
115
|
+
return List_distinct(collect((inp) => defaultArg(ProcessInput_tryGetCharacteristicValues_5B3D5BA9(inp), empty()), matchValue), {
|
|
118
116
|
Equals: equals,
|
|
119
117
|
GetHashCode: safeHash,
|
|
120
118
|
});
|
|
@@ -124,13 +122,13 @@ export function Process_getInputCharacteristicValues_716E708F(p) {
|
|
|
124
122
|
/**
|
|
125
123
|
* Returns the characteristics describing the outputs of the process
|
|
126
124
|
*/
|
|
127
|
-
export function
|
|
125
|
+
export function Process_getOutputCharacteristicValues_763471FF(p) {
|
|
128
126
|
const matchValue = p.Outputs;
|
|
129
127
|
if (matchValue == null) {
|
|
130
128
|
return empty();
|
|
131
129
|
}
|
|
132
130
|
else {
|
|
133
|
-
return List_distinct(collect((out) => defaultArg(
|
|
131
|
+
return List_distinct(collect((out) => defaultArg(ProcessOutput_tryGetCharacteristicValues_Z42C11600(out), empty()), matchValue), {
|
|
134
132
|
Equals: equals,
|
|
135
133
|
GetHashCode: safeHash,
|
|
136
134
|
});
|
|
@@ -140,8 +138,8 @@ export function Process_getOutputCharacteristicValues_716E708F(p) {
|
|
|
140
138
|
/**
|
|
141
139
|
* Returns the characteristic values describing the inputs and outputs of the process
|
|
142
140
|
*/
|
|
143
|
-
export function
|
|
144
|
-
return List_distinct(append(
|
|
141
|
+
export function Process_getCharacteristicValues_763471FF(p) {
|
|
142
|
+
return List_distinct(append(Process_getInputCharacteristicValues_763471FF(p), Process_getOutputCharacteristicValues_763471FF(p)), {
|
|
145
143
|
Equals: equals,
|
|
146
144
|
GetHashCode: safeHash,
|
|
147
145
|
});
|
|
@@ -150,8 +148,8 @@ export function Process_getCharacteristicValues_716E708F(p) {
|
|
|
150
148
|
/**
|
|
151
149
|
* Returns the characteristics describing the inputs and outputs of the process
|
|
152
150
|
*/
|
|
153
|
-
export function
|
|
154
|
-
return List_distinct(choose((cv) => cv.Category,
|
|
151
|
+
export function Process_getCharacteristics_763471FF(p) {
|
|
152
|
+
return List_distinct(choose((cv) => cv.Category, Process_getCharacteristicValues_763471FF(p)), {
|
|
155
153
|
Equals: equals,
|
|
156
154
|
GetHashCode: safeHash,
|
|
157
155
|
});
|
|
@@ -160,8 +158,8 @@ export function Process_getCharacteristics_716E708F(p) {
|
|
|
160
158
|
/**
|
|
161
159
|
* Returns the factor values of the samples of the process
|
|
162
160
|
*/
|
|
163
|
-
export function
|
|
164
|
-
return List_distinct(collect((arg) => defaultArg(
|
|
161
|
+
export function Process_getFactorValues_763471FF(p) {
|
|
162
|
+
return List_distinct(collect((arg) => defaultArg(ProcessOutput_tryGetFactorValues_Z42C11600(arg), empty()), defaultArg(p.Outputs, empty())), {
|
|
165
163
|
Equals: equals,
|
|
166
164
|
GetHashCode: safeHash,
|
|
167
165
|
});
|
|
@@ -170,8 +168,8 @@ export function Process_getFactorValues_716E708F(p) {
|
|
|
170
168
|
/**
|
|
171
169
|
* Returns the factors of the samples of the process
|
|
172
170
|
*/
|
|
173
|
-
export function
|
|
174
|
-
return List_distinct(choose((fv) => fv.Category,
|
|
171
|
+
export function Process_getFactors_763471FF(p) {
|
|
172
|
+
return List_distinct(choose((fv) => fv.Category, Process_getFactorValues_763471FF(p)), {
|
|
175
173
|
Equals: equals,
|
|
176
174
|
GetHashCode: safeHash,
|
|
177
175
|
});
|
|
@@ -180,8 +178,8 @@ export function Process_getFactors_716E708F(p) {
|
|
|
180
178
|
/**
|
|
181
179
|
* Returns the units of the process
|
|
182
180
|
*/
|
|
183
|
-
export function
|
|
184
|
-
return append(choose((cv) => cv.Unit,
|
|
181
|
+
export function Process_getUnits_763471FF(p) {
|
|
182
|
+
return append(choose((cv) => cv.Unit, Process_getCharacteristicValues_763471FF(p)), append(choose((pv) => pv.Unit, Process_getParameterValues_763471FF(p)), choose((fv) => fv.Unit, Process_getFactorValues_763471FF(p))));
|
|
185
183
|
}
|
|
186
184
|
|
|
187
185
|
/**
|
|
@@ -254,7 +252,7 @@ export function Process_tryGetInputsWithCharacteristicBy(predicate, p) {
|
|
|
254
252
|
default:
|
|
255
253
|
return void 0;
|
|
256
254
|
}
|
|
257
|
-
}, defaultArg(
|
|
255
|
+
}, defaultArg(ProcessInput_tryGetCharacteristicValues_5B3D5BA9(i), empty())), matchValue));
|
|
258
256
|
}
|
|
259
257
|
}
|
|
260
258
|
|
|
@@ -301,7 +299,7 @@ export function Process_tryGetOutputsWithCharacteristicBy(predicate, p) {
|
|
|
301
299
|
default:
|
|
302
300
|
return void 0;
|
|
303
301
|
}
|
|
304
|
-
}, defaultArg(
|
|
302
|
+
}, defaultArg(ProcessInput_tryGetCharacteristicValues_5B3D5BA9(tupledArg[0]), empty())), zip(is, os)));
|
|
305
303
|
default:
|
|
306
304
|
return void 0;
|
|
307
305
|
}
|
|
@@ -337,66 +335,35 @@ export function Process_tryGetOutputsWithFactorBy(predicate, p) {
|
|
|
337
335
|
default:
|
|
338
336
|
return void 0;
|
|
339
337
|
}
|
|
340
|
-
}, defaultArg(
|
|
338
|
+
}, defaultArg(ProcessOutput_tryGetFactorValues_Z42C11600(o), empty())), matchValue));
|
|
341
339
|
}
|
|
342
340
|
}
|
|
343
341
|
|
|
344
|
-
export function
|
|
345
|
-
return List_distinct(choose(
|
|
342
|
+
export function Process_getSources_763471FF(p) {
|
|
343
|
+
return List_distinct(choose(ProcessInput_trySource_5B3D5BA9, defaultArg(p.Inputs, empty())), {
|
|
346
344
|
Equals: equals,
|
|
347
345
|
GetHashCode: safeHash,
|
|
348
346
|
});
|
|
349
347
|
}
|
|
350
348
|
|
|
351
|
-
export function
|
|
352
|
-
return List_distinct(append(choose(
|
|
349
|
+
export function Process_getData_763471FF(p) {
|
|
350
|
+
return List_distinct(append(choose(ProcessInput_tryData_5B3D5BA9, defaultArg(p.Inputs, empty())), choose(ProcessOutput_tryData_Z42C11600, defaultArg(p.Outputs, empty()))), {
|
|
353
351
|
Equals: equals,
|
|
354
352
|
GetHashCode: safeHash,
|
|
355
353
|
});
|
|
356
354
|
}
|
|
357
355
|
|
|
358
|
-
export function
|
|
359
|
-
return List_distinct(append(choose(
|
|
356
|
+
export function Process_getSamples_763471FF(p) {
|
|
357
|
+
return List_distinct(append(choose(ProcessInput_trySample_5B3D5BA9, defaultArg(p.Inputs, empty())), choose(ProcessOutput_trySample_Z42C11600, defaultArg(p.Outputs, empty()))), {
|
|
360
358
|
Equals: equals,
|
|
361
359
|
GetHashCode: safeHash,
|
|
362
360
|
});
|
|
363
361
|
}
|
|
364
362
|
|
|
365
|
-
export function
|
|
366
|
-
return List_distinct(append(choose(
|
|
363
|
+
export function Process_getMaterials_763471FF(p) {
|
|
364
|
+
return List_distinct(append(choose(ProcessInput_tryMaterial_5B3D5BA9, defaultArg(p.Inputs, empty())), choose(ProcessOutput_tryMaterial_Z42C11600, defaultArg(p.Outputs, empty()))), {
|
|
367
365
|
Equals: equals,
|
|
368
366
|
GetHashCode: safeHash,
|
|
369
367
|
});
|
|
370
368
|
}
|
|
371
369
|
|
|
372
|
-
export function Process_updateProtocol(referenceProtocols, p) {
|
|
373
|
-
let this$, recordType_1, recordType_2;
|
|
374
|
-
const matchValue = p.ExecutesProtocol;
|
|
375
|
-
let matchResult, protocol_1;
|
|
376
|
-
if (matchValue != null) {
|
|
377
|
-
if (matchValue.Name != null) {
|
|
378
|
-
matchResult = 0;
|
|
379
|
-
protocol_1 = matchValue;
|
|
380
|
-
}
|
|
381
|
-
else {
|
|
382
|
-
matchResult = 1;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
else {
|
|
386
|
-
matchResult = 1;
|
|
387
|
-
}
|
|
388
|
-
switch (matchResult) {
|
|
389
|
-
case 0: {
|
|
390
|
-
const matchValue_1 = tryFind((prot) => (value_4(prot.Name) === defaultArg(protocol_1.Name, "")), referenceProtocols);
|
|
391
|
-
if (matchValue_1 != null) {
|
|
392
|
-
return new Process(p.ID, p.Name, (this$ = (new Update_UpdateOptions(3, [])), (recordType_1 = protocol_1, (recordType_2 = matchValue_1, (this$.tag === 2) ? makeRecord(Protocol_$reflection(), map2(Update_updateAppend, getRecordFields(recordType_1), getRecordFields(recordType_2))) : ((this$.tag === 1) ? makeRecord(Protocol_$reflection(), map2(Update_updateOnlyByExisting, getRecordFields(recordType_1), getRecordFields(recordType_2))) : ((this$.tag === 3) ? makeRecord(Protocol_$reflection(), map2(Update_updateOnlyByExistingAppend, getRecordFields(recordType_1), getRecordFields(recordType_2))) : recordType_2))))), p.ParameterValues, p.Performer, p.Date, p.PreviousProcess, p.NextProcess, p.Inputs, p.Outputs, p.Comments);
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
return p;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
default:
|
|
399
|
-
return p;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Union, toString } from "
|
|
2
|
-
import { printf, toText } from "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { union_type } from "
|
|
8
|
-
import { unwrap, map, defaultArg } from "
|
|
9
|
-
import { empty, choose } from "
|
|
1
|
+
import { Union, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
3
|
+
import { Source_create_Z5CA08497, Source_getUnits_53E41069, Source_setCharacteristicValues, Source_get_empty, Source_$reflection } from "./Source.js";
|
|
4
|
+
import { Sample_create_62424AD2, Sample_getUnits_53716792, Sample_setCharacteristicValues, Sample_$reflection } from "./Sample.js";
|
|
5
|
+
import { Data_create_Z2AF98BBE, Data_$reflection } from "./Data.js";
|
|
6
|
+
import { Material_create_Z66909A6D, Material_getUnits_ZBCDEB61, Material_setCharacteristicValues, Material_$reflection } from "./Material.js";
|
|
7
|
+
import { union_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
8
|
+
import { unwrap, map, defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
9
|
+
import { empty, choose } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
10
10
|
import { DataFile } from "./DataFile.js";
|
|
11
11
|
|
|
12
12
|
export class ProcessInput extends Union {
|
|
@@ -46,7 +46,7 @@ export class ProcessInput extends Union {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export function ProcessInput_$reflection() {
|
|
49
|
-
return union_type("ARCtrl.
|
|
49
|
+
return union_type("ARCtrl.Process.ProcessInput", [], ProcessInput, () => [[["Item", Source_$reflection()]], [["Item", Sample_$reflection()]], [["Item", Data_$reflection()]], [["Item", Material_$reflection()]]]);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export function ProcessInput__get_TryName(this$) {
|
|
@@ -73,14 +73,14 @@ export function ProcessInput_get_Default() {
|
|
|
73
73
|
/**
|
|
74
74
|
* Returns name of processInput
|
|
75
75
|
*/
|
|
76
|
-
export function
|
|
76
|
+
export function ProcessInput_tryGetName_5B3D5BA9(pi) {
|
|
77
77
|
return ProcessInput__get_TryName(pi);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
81
|
* Returns name of processInput
|
|
82
82
|
*/
|
|
83
|
-
export function
|
|
83
|
+
export function ProcessInput_getName_5B3D5BA9(pi) {
|
|
84
84
|
return ProcessInput__get_Name(pi);
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -94,7 +94,7 @@ export function ProcessInput_nameEquals(name, pi) {
|
|
|
94
94
|
/**
|
|
95
95
|
* Returns true, if Process Input is Sample
|
|
96
96
|
*/
|
|
97
|
-
export function
|
|
97
|
+
export function ProcessInput_isSample_5B3D5BA9(pi) {
|
|
98
98
|
if (pi.tag === 1) {
|
|
99
99
|
return true;
|
|
100
100
|
}
|
|
@@ -106,7 +106,7 @@ export function ProcessInput_isSample_102B6859(pi) {
|
|
|
106
106
|
/**
|
|
107
107
|
* Returns true, if Process Input is Source
|
|
108
108
|
*/
|
|
109
|
-
export function
|
|
109
|
+
export function ProcessInput_isSource_5B3D5BA9(pi) {
|
|
110
110
|
if (pi.tag === 0) {
|
|
111
111
|
return true;
|
|
112
112
|
}
|
|
@@ -118,7 +118,7 @@ export function ProcessInput_isSource_102B6859(pi) {
|
|
|
118
118
|
/**
|
|
119
119
|
* Returns true, if Process Input is Data
|
|
120
120
|
*/
|
|
121
|
-
export function
|
|
121
|
+
export function ProcessInput_isData_5B3D5BA9(pi) {
|
|
122
122
|
if (pi.tag === 2) {
|
|
123
123
|
return true;
|
|
124
124
|
}
|
|
@@ -130,7 +130,7 @@ export function ProcessInput_isData_102B6859(pi) {
|
|
|
130
130
|
/**
|
|
131
131
|
* Returns true, if Process Input is Material
|
|
132
132
|
*/
|
|
133
|
-
export function
|
|
133
|
+
export function ProcessInput_isMaterial_5B3D5BA9(pi) {
|
|
134
134
|
if (pi.tag === 3) {
|
|
135
135
|
return true;
|
|
136
136
|
}
|
|
@@ -143,34 +143,34 @@ export function ProcessInput_isMaterial_102B6859(pi) {
|
|
|
143
143
|
* Returns true, if Process Input is Source
|
|
144
144
|
*/
|
|
145
145
|
export function ProcessInput__isSource(this$) {
|
|
146
|
-
return
|
|
146
|
+
return ProcessInput_isSource_5B3D5BA9(this$);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Returns true, if Process Input is Sample
|
|
151
151
|
*/
|
|
152
152
|
export function ProcessInput__isSample(this$) {
|
|
153
|
-
return
|
|
153
|
+
return ProcessInput_isSample_5B3D5BA9(this$);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Returns true, if Process Input is Data
|
|
158
158
|
*/
|
|
159
159
|
export function ProcessInput__isData(this$) {
|
|
160
|
-
return
|
|
160
|
+
return ProcessInput_isData_5B3D5BA9(this$);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* Returns true, if Process Input is Material
|
|
165
165
|
*/
|
|
166
166
|
export function ProcessInput__isMaterial(this$) {
|
|
167
|
-
return
|
|
167
|
+
return ProcessInput_isMaterial_5B3D5BA9(this$);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* If given process input is a sample, returns it, else returns None
|
|
172
172
|
*/
|
|
173
|
-
export function
|
|
173
|
+
export function ProcessInput_trySample_5B3D5BA9(pi) {
|
|
174
174
|
if (pi.tag === 1) {
|
|
175
175
|
return pi.fields[0];
|
|
176
176
|
}
|
|
@@ -182,7 +182,7 @@ export function ProcessInput_trySample_102B6859(pi) {
|
|
|
182
182
|
/**
|
|
183
183
|
* If given process input is a source, returns it, else returns None
|
|
184
184
|
*/
|
|
185
|
-
export function
|
|
185
|
+
export function ProcessInput_trySource_5B3D5BA9(pi) {
|
|
186
186
|
if (pi.tag === 0) {
|
|
187
187
|
return pi.fields[0];
|
|
188
188
|
}
|
|
@@ -194,7 +194,7 @@ export function ProcessInput_trySource_102B6859(pi) {
|
|
|
194
194
|
/**
|
|
195
195
|
* If given process input is a data, returns it, else returns None
|
|
196
196
|
*/
|
|
197
|
-
export function
|
|
197
|
+
export function ProcessInput_tryData_5B3D5BA9(pi) {
|
|
198
198
|
if (pi.tag === 2) {
|
|
199
199
|
return pi.fields[0];
|
|
200
200
|
}
|
|
@@ -206,7 +206,7 @@ export function ProcessInput_tryData_102B6859(pi) {
|
|
|
206
206
|
/**
|
|
207
207
|
* If given process input is a material, returns it, else returns None
|
|
208
208
|
*/
|
|
209
|
-
export function
|
|
209
|
+
export function ProcessInput_tryMaterial_5B3D5BA9(pi) {
|
|
210
210
|
if (pi.tag === 3) {
|
|
211
211
|
return pi.fields[0];
|
|
212
212
|
}
|
|
@@ -231,7 +231,7 @@ export function ProcessInput_setCharacteristicValues(characteristics, pi) {
|
|
|
231
231
|
/**
|
|
232
232
|
* If given process input contains characteristics, returns them
|
|
233
233
|
*/
|
|
234
|
-
export function
|
|
234
|
+
export function ProcessInput_tryGetCharacteristicValues_5B3D5BA9(pi) {
|
|
235
235
|
switch (pi.tag) {
|
|
236
236
|
case 0:
|
|
237
237
|
return pi.fields[0].Characteristics;
|
|
@@ -247,51 +247,51 @@ export function ProcessInput_tryGetCharacteristicValues_102B6859(pi) {
|
|
|
247
247
|
/**
|
|
248
248
|
* If given process input contains characteristics, returns them
|
|
249
249
|
*/
|
|
250
|
-
export function
|
|
251
|
-
return map((list) => choose((c) => c.Category, list),
|
|
250
|
+
export function ProcessInput_tryGetCharacteristics_5B3D5BA9(pi) {
|
|
251
|
+
return map((list) => choose((c) => c.Category, list), ProcessInput_tryGetCharacteristicValues_5B3D5BA9(pi));
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
export function
|
|
255
|
-
return defaultArg(
|
|
254
|
+
export function ProcessInput_getCharacteristicValues_5B3D5BA9(pi) {
|
|
255
|
+
return defaultArg(ProcessInput_tryGetCharacteristicValues_5B3D5BA9(pi), empty());
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
259
|
* If given process output contains units, returns them
|
|
260
260
|
*/
|
|
261
|
-
export function
|
|
261
|
+
export function ProcessInput_getUnits_5B3D5BA9(pi) {
|
|
262
262
|
switch (pi.tag) {
|
|
263
263
|
case 1:
|
|
264
|
-
return
|
|
264
|
+
return Sample_getUnits_53716792(pi.fields[0]);
|
|
265
265
|
case 3:
|
|
266
|
-
return
|
|
266
|
+
return Material_getUnits_ZBCDEB61(pi.fields[0]);
|
|
267
267
|
case 2:
|
|
268
268
|
return empty();
|
|
269
269
|
default:
|
|
270
|
-
return
|
|
270
|
+
return Source_getUnits_53E41069(pi.fields[0]);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
export function
|
|
275
|
-
return new ProcessInput(0, [
|
|
274
|
+
export function ProcessInput_createSource_Z5E00540E(name, characteristics) {
|
|
275
|
+
return new ProcessInput(0, [Source_create_Z5CA08497(void 0, name, unwrap(characteristics))]);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
export function
|
|
279
|
-
return new ProcessInput(1, [
|
|
278
|
+
export function ProcessInput_createSample_Z598187B7(name, characteristics, factors, derivesFrom) {
|
|
279
|
+
return new ProcessInput(1, [Sample_create_62424AD2(void 0, name, unwrap(characteristics), unwrap(factors), unwrap(derivesFrom))]);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
export function
|
|
283
|
-
return new ProcessInput(3, [
|
|
282
|
+
export function ProcessInput_createMaterial_4452CB4C(name, characteristics, derivesFrom) {
|
|
283
|
+
return new ProcessInput(3, [Material_create_Z66909A6D(void 0, name, void 0, unwrap(characteristics), unwrap(derivesFrom))]);
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
export function ProcessInput_createImageFile_Z721C83C5(name) {
|
|
287
|
-
return new ProcessInput(2, [
|
|
287
|
+
return new ProcessInput(2, [Data_create_Z2AF98BBE(void 0, name, new DataFile(2, []))]);
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
export function ProcessInput_createRawData_Z721C83C5(name) {
|
|
291
|
-
return new ProcessInput(2, [
|
|
291
|
+
return new ProcessInput(2, [Data_create_Z2AF98BBE(void 0, name, new DataFile(0, []))]);
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
export function ProcessInput_createDerivedData_Z721C83C5(name) {
|
|
295
|
-
return new ProcessInput(2, [
|
|
295
|
+
return new ProcessInput(2, [Data_create_Z2AF98BBE(void 0, name, new DataFile(1, []))]);
|
|
296
296
|
}
|
|
297
297
|
|