@nfdi4plants/arctrl 1.2.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 +13 -13
- package/Core/Publication.js +116 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +43 -149
- 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 +6 -6
- 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/{ISA/ISA.Json/ArcTypes → Json/Table}/ArcTable.js +53 -49
- package/Json/Table/CellTable.js +40 -0
- package/Json/Table/CompositeCell.js +65 -0
- package/{ISA/ISA.Json/ArcTypes → Json/Table}/CompositeHeader.js +22 -19
- 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/{ISA/ISA.Json → Json}/context/rocrate/isa_investigation_context.js +5 -5
- package/{ISA/ISA.Json → Json}/context/rocrate/isa_material_attribute_context.js +4 -4
- 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/{ISA/ISA.Json → Json}/context/rocrate/isa_protocol_parameter_context.js +4 -4
- 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 +32 -11
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeColumn.js +10 -10
- 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 +7 -7
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Comment.js +5 -5
- 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 +23 -22
- 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 +2 -2
- package/WebRequest/WebRequest.js +2 -2
- 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 +3 -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.js +19 -19
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +5 -5
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +2 -2
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +1 -1
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +2 -2
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/CHANGELOG.md +18 -0
- 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-js.4.13.0 → fable-library-js.4.16.0}/Date.js +337 -40
- package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.js +2 -13
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/package.json +1 -1
- 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 -505
- 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 -152
- 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 -303
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -122
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -203
- package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -40
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -62
- package/ISA/ISA.Json/ArcTypes/IOType.js +0 -33
- package/ISA/ISA.Json/ArcTypes/OATable.js +0 -42
- package/ISA/ISA.Json/Assay.js +0 -129
- package/ISA/ISA.Json/Comment.js +0 -80
- package/ISA/ISA.Json/ConverterOptions.js +0 -51
- package/ISA/ISA.Json/Data.js +0 -253
- package/ISA/ISA.Json/Decode.js +0 -61
- package/ISA/ISA.Json/Factor.js +0 -194
- package/ISA/ISA.Json/GEncode.js +0 -40
- package/ISA/ISA.Json/Investigation.js +0 -89
- package/ISA/ISA.Json/Material.js +0 -232
- package/ISA/ISA.Json/Ontology.js +0 -200
- package/ISA/ISA.Json/Person.js +0 -186
- package/ISA/ISA.Json/Process.js +0 -305
- package/ISA/ISA.Json/Protocol.js +0 -281
- package/ISA/ISA.Json/Publication.js +0 -86
- package/ISA/ISA.Json/StringTable.js +0 -44
- package/ISA/ISA.Json/Study.js +0 -186
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +0 -34
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +0 -23
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +0 -24
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +0 -22
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +0 -31
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +0 -31
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +0 -30
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +0 -27
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +0 -42
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +0 -25
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
- package/Path.js +0 -10
- package/Templates/Template.Json.js +0 -90
- package/Templates/Template.Web.js +0 -27
- package/Templates/Templates.js +0 -82
- package/fable_modules/fable-library-js.4.13.0/MapUtil.d.ts +0 -10
- /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/README.md +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
package/ARC.js
CHANGED
|
@@ -1,38 +1,44 @@
|
|
|
1
|
-
import { concat, fold, map, exactlyOne, choose } from "./fable_modules/fable-library-js.4.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { concat, fold, map, exactlyOne, choose } from "./fable_modules/fable-library-js.4.16.0/Array.js";
|
|
2
|
+
import { ARCtrl_ArcAssay__ArcAssay_ToUpdateContract, ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49, ARCtrl_ArcAssay__ArcAssay_ToDeleteContract, ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F } from "./Contract/ArcAssay.js";
|
|
3
|
+
import { ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49, ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F } from "./Contract/ArcStudy.js";
|
|
4
|
+
import { ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract_6FCE9E49, ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F } from "./Contract/ArcInvestigation.js";
|
|
5
|
+
import { collect, empty, iterate, find, tryFind, map as map_1, singleton, append, delay, toList, toArray } from "./fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
5
6
|
import { FileSystemTree } from "./FileSystem/FileSystemTree.js";
|
|
6
7
|
import { FileSystem } from "./FileSystem/FileSystem.js";
|
|
7
|
-
import { bind, map as map_2, value as value_2, defaultArg, unwrap } from "./fable_modules/fable-library-js.4.
|
|
8
|
-
import { getStudyFolderPath, getAssayFolderPath } from "./Path.js";
|
|
8
|
+
import { bind, map as map_2, value as value_2, defaultArg, unwrap } from "./fable_modules/fable-library-js.4.16.0/Option.js";
|
|
9
|
+
import { getStudyFolderPath, getAssayFolderPath } from "./FileSystem/Path.js";
|
|
9
10
|
import { Contract } from "./Contract/Contract.js";
|
|
10
|
-
import { ofArray } from "./fable_modules/fable-library-js.4.
|
|
11
|
-
import { tryISAReadContractFromPath } from "./
|
|
12
|
-
import { ArcTables } from "./
|
|
13
|
-
import { comparePrimitives, safeHash } from "./fable_modules/fable-library-js.4.
|
|
14
|
-
import { addToDict } from "./fable_modules/fable-library-js.4.
|
|
15
|
-
import { toFsWorkbook, toLightFsWorkbook } from "./
|
|
16
|
-
import { ArcInvestigation } from "./
|
|
17
|
-
import { Assay_fileNameFromIdentifier, Study_fileNameFromIdentifier } from "./
|
|
18
|
-
import {
|
|
19
|
-
import { toFsWorkbook as toFsWorkbook_1 } from "./
|
|
11
|
+
import { ofArray } from "./fable_modules/fable-library-js.4.16.0/List.js";
|
|
12
|
+
import { tryISAReadContractFromPath } from "./Contract/ARC.js";
|
|
13
|
+
import { ArcTables } from "./Core/Table/ArcTables.js";
|
|
14
|
+
import { comparePrimitives, safeHash } from "./fable_modules/fable-library-js.4.16.0/Util.js";
|
|
15
|
+
import { addToDict } from "./fable_modules/fable-library-js.4.16.0/MapUtil.js";
|
|
16
|
+
import { toFsWorkbook, toLightFsWorkbook } from "./Spreadsheet/ArcInvestigation.js";
|
|
17
|
+
import { ArcInvestigation } from "./Core/ArcTypes.js";
|
|
18
|
+
import { Assay_fileNameFromIdentifier, Study_fileNameFromIdentifier } from "./Core/Helper/Identifier.js";
|
|
19
|
+
import { ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_353D0DB7 } from "./Spreadsheet/ArcStudy.js";
|
|
20
|
+
import { toFsWorkbook as toFsWorkbook_1 } from "./Spreadsheet/ArcAssay.js";
|
|
20
21
|
import { Dictionary_tryGet } from "./fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js";
|
|
21
|
-
import { Clone_createCloneContract_5000466F, Init_createAddRemoteContract_Z721C83C5, gitignoreContract, Init_createInitContract_6DFDD678 } from "./
|
|
22
|
-
import { FSharpSet__Contains, ofSeq, unionMany } from "./fable_modules/fable-library-js.4.
|
|
23
|
-
import { ofSeq as ofSeq_1 } from "./fable_modules/fable-library-js.4.
|
|
24
|
-
import {
|
|
22
|
+
import { Clone_createCloneContract_5000466F, Init_createAddRemoteContract_Z721C83C5, gitignoreContract, Init_createInitContract_6DFDD678 } from "./Contract/Git.js";
|
|
23
|
+
import { FSharpSet__Contains, ofSeq, unionMany } from "./fable_modules/fable-library-js.4.16.0/Set.js";
|
|
24
|
+
import { ofSeq as ofSeq_1 } from "./fable_modules/fable-library-js.4.16.0/Map.js";
|
|
25
|
+
import { fromString } from "./fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js";
|
|
26
|
+
import { encoder, decoder as decoder_1 } from "./Json/ARC.js";
|
|
27
|
+
import { printf, toText } from "./fable_modules/fable-library-js.4.16.0/String.js";
|
|
28
|
+
import { toString } from "./fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js";
|
|
29
|
+
import { defaultSpaces } from "./Json/Encode.js";
|
|
30
|
+
import { class_type } from "./fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
25
31
|
|
|
26
32
|
export function ARCAux_getArcAssaysFromContracts(contracts) {
|
|
27
|
-
return choose(
|
|
33
|
+
return choose(ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F, contracts);
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
export function ARCAux_getArcStudiesFromContracts(contracts) {
|
|
31
|
-
return choose(
|
|
37
|
+
return choose(ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F, contracts);
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
export function ARCAux_getArcInvestigationFromContracts(contracts) {
|
|
35
|
-
return exactlyOne(choose(
|
|
41
|
+
return exactlyOne(choose(ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F, contracts));
|
|
36
42
|
}
|
|
37
43
|
|
|
38
44
|
export function ARCAux_updateFSByISA(isa, fs) {
|
|
@@ -44,9 +50,9 @@ export function ARCAux_updateFSByISA(isa, fs) {
|
|
|
44
50
|
const inv = isa;
|
|
45
51
|
patternInput = [toArray(inv.StudyIdentifiers), toArray(inv.AssayIdentifiers)];
|
|
46
52
|
}
|
|
47
|
-
const assays = createAssaysFolder(map(createAssayFolder, patternInput[1]));
|
|
48
|
-
const studies = createStudiesFolder(map(createStudyFolder, patternInput[0]));
|
|
49
|
-
const investigation = createInvestigationFile();
|
|
53
|
+
const assays = FileSystemTree.createAssaysFolder(map((assayName) => FileSystemTree.createAssayFolder(assayName), patternInput[1]));
|
|
54
|
+
const studies = FileSystemTree.createStudiesFolder(map((studyName) => FileSystemTree.createStudyFolder(studyName), patternInput[0]));
|
|
55
|
+
const investigation = FileSystemTree.createInvestigationFile();
|
|
50
56
|
let tree_1;
|
|
51
57
|
const tree = FileSystemTree.createRootFolder([investigation, assays, studies]);
|
|
52
58
|
tree_1 = FileSystem.create({
|
|
@@ -56,8 +62,8 @@ export function ARCAux_updateFSByISA(isa, fs) {
|
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
export function ARCAux_updateFSByCWL(cwl, fs) {
|
|
59
|
-
const workflows = createWorkflowsFolder([]);
|
|
60
|
-
const runs = createRunsFolder([]);
|
|
65
|
+
const workflows = FileSystemTree.createWorkflowsFolder([]);
|
|
66
|
+
const runs = FileSystemTree.createRunsFolder([]);
|
|
61
67
|
let tree_1;
|
|
62
68
|
const tree = FileSystemTree.createRootFolder([workflows, runs]);
|
|
63
69
|
tree_1 = FileSystem.create({
|
|
@@ -113,7 +119,7 @@ export class ARC {
|
|
|
113
119
|
const assayFolderPath = getAssayFolderPath(assayIdentifier);
|
|
114
120
|
const filteredPaths = paths.filter((p) => !(p.indexOf(assayFolderPath) === 0));
|
|
115
121
|
this$.SetFilePaths(filteredPaths);
|
|
116
|
-
const collection = toList(delay(() => append(singleton(
|
|
122
|
+
const collection = toList(delay(() => append(singleton(ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(assay)), delay(() => append(singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract_6FCE9E49(isa)), delay(() => map_1(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract, studies)))))));
|
|
117
123
|
return Array.from(collection);
|
|
118
124
|
}
|
|
119
125
|
RemoveStudy(studyIdentifier) {
|
|
@@ -131,7 +137,7 @@ export class ARC {
|
|
|
131
137
|
const studyFolderPath = getStudyFolderPath(studyIdentifier);
|
|
132
138
|
const filteredPaths = paths.filter((p) => !(p.indexOf(studyFolderPath) === 0));
|
|
133
139
|
this$.SetFilePaths(filteredPaths);
|
|
134
|
-
const collection = ofArray([Contract.createDelete(studyFolderPath),
|
|
140
|
+
const collection = ofArray([Contract.createDelete(studyFolderPath), ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract_6FCE9E49(isa)]);
|
|
135
141
|
return Array.from(collection);
|
|
136
142
|
}
|
|
137
143
|
static fromFilePaths(filePaths) {
|
|
@@ -219,7 +225,7 @@ export class ARC {
|
|
|
219
225
|
inv.StaticHash = (inv.GetLightHashCode() | 0);
|
|
220
226
|
iterate((s) => {
|
|
221
227
|
s.StaticHash = (s.GetLightHashCode() | 0);
|
|
222
|
-
addToDict(workbooks, Study_fileNameFromIdentifier(s.Identifier), ["ISA_Study",
|
|
228
|
+
addToDict(workbooks, Study_fileNameFromIdentifier(s.Identifier), ["ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_353D0DB7(s)]);
|
|
223
229
|
}, inv.Studies);
|
|
224
230
|
iterate((a) => {
|
|
225
231
|
a.StaticHash = (safeHash(a) | 0);
|
|
@@ -245,17 +251,17 @@ export class ARC {
|
|
|
245
251
|
const matchValue = this$.ISA;
|
|
246
252
|
return (matchValue != null) ? (((inv = matchValue, inv.StaticHash === 0)) ? ((inv_1 = matchValue, this$.GetWriteContracts(isLight_1))) : ((inv_2 = matchValue, toArray(delay(() => {
|
|
247
253
|
const hash = inv_2.GetLightHashCode() | 0;
|
|
248
|
-
return append((inv_2.StaticHash !== hash) ? singleton(
|
|
254
|
+
return append((inv_2.StaticHash !== hash) ? singleton(ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract_6FCE9E49(inv_2, isLight_1)) : empty(), delay(() => {
|
|
249
255
|
inv_2.StaticHash = (hash | 0);
|
|
250
256
|
return append(collect((s) => {
|
|
251
257
|
const hash_1 = s.GetLightHashCode() | 0;
|
|
252
|
-
return append((s.StaticHash === 0) ?
|
|
258
|
+
return append((s.StaticHash === 0) ? ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true) : ((s.StaticHash !== hash_1) ? singleton(ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(s)) : empty()), delay(() => {
|
|
253
259
|
s.StaticHash = (hash_1 | 0);
|
|
254
260
|
return empty();
|
|
255
261
|
}));
|
|
256
262
|
}, inv_2.Studies), delay(() => collect((a) => {
|
|
257
263
|
const hash_2 = safeHash(a) | 0;
|
|
258
|
-
return append((a.StaticHash === 0) ?
|
|
264
|
+
return append((a.StaticHash === 0) ? ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true) : ((a.StaticHash !== hash_2) ? singleton(ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(a)) : empty()), delay(() => {
|
|
259
265
|
a.StaticHash = (hash_2 | 0);
|
|
260
266
|
return empty();
|
|
261
267
|
}));
|
|
@@ -345,13 +351,25 @@ export class ARC {
|
|
|
345
351
|
Compare: comparePrimitives,
|
|
346
352
|
});
|
|
347
353
|
}
|
|
354
|
+
static fromROCrateJsonString(s) {
|
|
355
|
+
let matchValue;
|
|
356
|
+
return new ARC((matchValue = fromString(decoder_1, s), (matchValue.tag === 1) ? (() => {
|
|
357
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
358
|
+
})() : matchValue.fields[0]));
|
|
359
|
+
}
|
|
360
|
+
static toROCrateJsonString(spaces) {
|
|
361
|
+
return (obj) => {
|
|
362
|
+
const value = encoder(value_2(obj.ISA));
|
|
363
|
+
return toString(defaultSpaces(spaces), value);
|
|
364
|
+
};
|
|
365
|
+
}
|
|
348
366
|
}
|
|
349
367
|
|
|
350
368
|
export function ARC_$reflection() {
|
|
351
369
|
return class_type("ARCtrl.ARC", void 0, ARC);
|
|
352
370
|
}
|
|
353
371
|
|
|
354
|
-
export function ARC_$
|
|
372
|
+
export function ARC_$ctor_79978BA1(isa, cwl, fs) {
|
|
355
373
|
return new ARC(isa, cwl, fs);
|
|
356
374
|
}
|
|
357
375
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { split as split_1 } from "../FileSystem/Path.js";
|
|
2
|
-
import { $
|
|
3
|
-
import { Contract } from "
|
|
2
|
+
import { $007CInvestigationPath$007C_$007C } from "./ArcInvestigation.js";
|
|
3
|
+
import { Contract } from "./Contract.js";
|
|
4
|
+
import { $007CAssayPath$007C_$007C } from "./ArcAssay.js";
|
|
5
|
+
import { $007CStudyPath$007C_$007C } from "./ArcStudy.js";
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* Tries to create READ contract with DTOType = ISA_Assay, ISA_Study or ISA_Investigation from given path relative to ARC root.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { equalsWith, item } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
2
|
+
import { getAssayFolderPath, combineMany } from "../FileSystem/Path.js";
|
|
3
|
+
import { defaultOf } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
4
|
+
import { unwrap, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
5
|
+
import { Assay_fileNameFromIdentifier } from "../Core/Helper/Identifier.js";
|
|
6
|
+
import { Contract } from "./Contract.js";
|
|
7
|
+
import { fromFsWorkbook, toFsWorkbook } from "../Spreadsheet/ArcAssay.js";
|
|
8
|
+
import { empty, singleton, collect, append, delay, toArray } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
9
|
+
import { FileSystemTree } from "../FileSystem/FileSystemTree.js";
|
|
10
|
+
|
|
11
|
+
export function $007CAssayPath$007C_$007C(input) {
|
|
12
|
+
let matchResult;
|
|
13
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 3)) {
|
|
14
|
+
if (item(0, input) === "assays") {
|
|
15
|
+
if (item(2, input) === "isa.assay.xlsx") {
|
|
16
|
+
matchResult = 0;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
matchResult = 1;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
matchResult = 1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
matchResult = 1;
|
|
28
|
+
}
|
|
29
|
+
switch (matchResult) {
|
|
30
|
+
case 0: {
|
|
31
|
+
const anyAssayName = item(1, input);
|
|
32
|
+
return combineMany(input);
|
|
33
|
+
}
|
|
34
|
+
default:
|
|
35
|
+
return void 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(this$, WithFolder) {
|
|
40
|
+
const withFolder = defaultArg(WithFolder, false);
|
|
41
|
+
const path = Assay_fileNameFromIdentifier(this$.Identifier);
|
|
42
|
+
const c = Contract.createCreate(path, "ISA_Assay", toFsWorkbook(this$));
|
|
43
|
+
return toArray(delay(() => {
|
|
44
|
+
let folderFS;
|
|
45
|
+
return append(withFolder ? ((folderFS = FileSystemTree.createAssayFolder(this$.Identifier), collect((p) => ((p !== path) ? singleton(Contract.createCreate(p, "PlainText")) : empty()), folderFS.ToFilePaths(false)))) : empty(), delay(() => singleton(c)));
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(this$) {
|
|
50
|
+
const path = Assay_fileNameFromIdentifier(this$.Identifier);
|
|
51
|
+
return Contract.createUpdate(path, "ISA_Assay", toFsWorkbook(this$));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(this$) {
|
|
55
|
+
const path = getAssayFolderPath(this$.Identifier);
|
|
56
|
+
return Contract.createDelete(path);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ARCtrl_ArcAssay__ArcAssay_toDeleteContract_Static_1501C0F8(assay) {
|
|
60
|
+
return ARCtrl_ArcAssay__ArcAssay_ToDeleteContract(assay);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ARCtrl_ArcAssay__ArcAssay_toCreateContract_Static_Z2508BE4F(assay, WithFolder) {
|
|
64
|
+
return ARCtrl_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(assay, unwrap(WithFolder));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ARCtrl_ArcAssay__ArcAssay_toUpdateContract_Static_1501C0F8(assay) {
|
|
68
|
+
return ARCtrl_ArcAssay__ArcAssay_ToUpdateContract(assay);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ARCtrl_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F(c) {
|
|
72
|
+
let matchResult, fsworkbook;
|
|
73
|
+
if (c.Operation === "READ") {
|
|
74
|
+
if (c.DTOType != null) {
|
|
75
|
+
if (c.DTOType === "ISA_Assay") {
|
|
76
|
+
if (c.DTO != null) {
|
|
77
|
+
matchResult = 0;
|
|
78
|
+
fsworkbook = c.DTO;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
matchResult = 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
matchResult = 1;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
matchResult = 1;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
matchResult = 1;
|
|
94
|
+
}
|
|
95
|
+
switch (matchResult) {
|
|
96
|
+
case 0:
|
|
97
|
+
return fromFsWorkbook(fsworkbook);
|
|
98
|
+
default:
|
|
99
|
+
return void 0;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { combineMany } from "../FileSystem/Path.js";
|
|
2
|
+
import { item, equalsWith } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
3
|
+
import { defaultOf } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
4
|
+
import { unwrap, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
5
|
+
import { fromFsWorkbook, toFsWorkbook, toLightFsWorkbook } from "../Spreadsheet/ArcInvestigation.js";
|
|
6
|
+
import { Contract } from "./Contract.js";
|
|
7
|
+
|
|
8
|
+
export function $007CInvestigationPath$007C_$007C(input) {
|
|
9
|
+
let matchResult;
|
|
10
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 1)) {
|
|
11
|
+
if (item(0, input) === "isa.investigation.xlsx") {
|
|
12
|
+
matchResult = 0;
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
matchResult = 1;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
matchResult = 1;
|
|
20
|
+
}
|
|
21
|
+
switch (matchResult) {
|
|
22
|
+
case 0:
|
|
23
|
+
return combineMany(input);
|
|
24
|
+
default:
|
|
25
|
+
return void 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function ARCtrl_ArcInvestigation__ArcInvestigation_ToCreateContract_6FCE9E49(this$, isLight) {
|
|
30
|
+
const converter = defaultArg(isLight, true) ? (toLightFsWorkbook) : (toFsWorkbook);
|
|
31
|
+
return Contract.createCreate("isa.investigation.xlsx", "ISA_Investigation", converter(this$));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract_6FCE9E49(this$, isLight) {
|
|
35
|
+
const converter = defaultArg(isLight, true) ? (toLightFsWorkbook) : (toFsWorkbook);
|
|
36
|
+
return Contract.createUpdate("isa.investigation.xlsx", "ISA_Investigation", converter(this$));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ARCtrl_ArcInvestigation__ArcInvestigation_toCreateContract_Static_23B73268(inv, isLight) {
|
|
40
|
+
return ARCtrl_ArcInvestigation__ArcInvestigation_ToCreateContract_6FCE9E49(inv, unwrap(isLight));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ARCtrl_ArcInvestigation__ArcInvestigation_toUpdateContract_Static_23B73268(inv, isLight) {
|
|
44
|
+
return ARCtrl_ArcInvestigation__ArcInvestigation_ToUpdateContract_6FCE9E49(inv, unwrap(isLight));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ARCtrl_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F(c) {
|
|
48
|
+
let matchResult, fsworkbook;
|
|
49
|
+
if (c.Operation === "READ") {
|
|
50
|
+
if (c.DTOType != null) {
|
|
51
|
+
if (c.DTOType === "ISA_Investigation") {
|
|
52
|
+
if (c.DTO != null) {
|
|
53
|
+
matchResult = 0;
|
|
54
|
+
fsworkbook = c.DTO;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
matchResult = 1;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
matchResult = 1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
matchResult = 1;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
matchResult = 1;
|
|
70
|
+
}
|
|
71
|
+
switch (matchResult) {
|
|
72
|
+
case 0:
|
|
73
|
+
return fromFsWorkbook(fsworkbook);
|
|
74
|
+
default:
|
|
75
|
+
return void 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { equalsWith, item } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
2
|
+
import { getStudyFolderPath, combineMany } from "../FileSystem/Path.js";
|
|
3
|
+
import { defaultOf } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
4
|
+
import { unwrap, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
5
|
+
import { Study_fileNameFromIdentifier } from "../Core/Helper/Identifier.js";
|
|
6
|
+
import { Contract } from "./Contract.js";
|
|
7
|
+
import { ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_353D0DB7 } from "../Spreadsheet/ArcStudy.js";
|
|
8
|
+
import { empty, singleton, collect, append, delay, toArray } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
9
|
+
import { FileSystemTree } from "../FileSystem/FileSystemTree.js";
|
|
10
|
+
|
|
11
|
+
export function $007CStudyPath$007C_$007C(input) {
|
|
12
|
+
let matchResult;
|
|
13
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 3)) {
|
|
14
|
+
if (item(0, input) === "studies") {
|
|
15
|
+
if (item(2, input) === "isa.study.xlsx") {
|
|
16
|
+
matchResult = 0;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
matchResult = 1;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
matchResult = 1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
matchResult = 1;
|
|
28
|
+
}
|
|
29
|
+
switch (matchResult) {
|
|
30
|
+
case 0: {
|
|
31
|
+
const anyStudyName = item(1, input);
|
|
32
|
+
return combineMany(input);
|
|
33
|
+
}
|
|
34
|
+
default:
|
|
35
|
+
return void 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(this$, WithFolder) {
|
|
40
|
+
const withFolder = defaultArg(WithFolder, false);
|
|
41
|
+
const path = Study_fileNameFromIdentifier(this$.Identifier);
|
|
42
|
+
const c = Contract.createCreate(path, "ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_353D0DB7(this$));
|
|
43
|
+
return toArray(delay(() => {
|
|
44
|
+
let folderFS;
|
|
45
|
+
return append(withFolder ? ((folderFS = FileSystemTree.createStudiesFolder([FileSystemTree.createStudyFolder(this$.Identifier)]), collect((p) => ((p !== path) ? singleton(Contract.createCreate(p, "PlainText")) : empty()), folderFS.ToFilePaths(false)))) : empty(), delay(() => singleton(c)));
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(this$) {
|
|
50
|
+
const path = Study_fileNameFromIdentifier(this$.Identifier);
|
|
51
|
+
return Contract.createUpdate(path, "ISA_Study", ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_353D0DB7(this$));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ARCtrl_ArcStudy__ArcStudy_ToDeleteContract(this$) {
|
|
55
|
+
const path = getStudyFolderPath(this$.Identifier);
|
|
56
|
+
return Contract.createDelete(path);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ARCtrl_ArcStudy__ArcStudy_toDeleteContract_Static_1680536E(study) {
|
|
60
|
+
return ARCtrl_ArcStudy__ArcStudy_ToDeleteContract(study);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ARCtrl_ArcStudy__ArcStudy_toCreateContract_Static_Z76BBA099(study, WithFolder) {
|
|
64
|
+
return ARCtrl_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(study, unwrap(WithFolder));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ARCtrl_ArcStudy__ArcStudy_toUpdateContract_Static_1680536E(study) {
|
|
68
|
+
return ARCtrl_ArcStudy__ArcStudy_ToUpdateContract(study);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ARCtrl_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F(c) {
|
|
72
|
+
let matchResult, fsworkbook;
|
|
73
|
+
if (c.Operation === "READ") {
|
|
74
|
+
if (c.DTOType != null) {
|
|
75
|
+
if (c.DTOType === "ISA_Study") {
|
|
76
|
+
if (c.DTO != null) {
|
|
77
|
+
matchResult = 0;
|
|
78
|
+
fsworkbook = c.DTO;
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
matchResult = 1;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
matchResult = 1;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
matchResult = 1;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
matchResult = 1;
|
|
94
|
+
}
|
|
95
|
+
switch (matchResult) {
|
|
96
|
+
case 0:
|
|
97
|
+
return ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(fsworkbook);
|
|
98
|
+
default:
|
|
99
|
+
return void 0;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
package/Contract/Contract.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Record } from "../fable_modules/fable-library-js.4.
|
|
2
|
-
import { class_type, option_type, record_type, array_type, string_type } from "../fable_modules/fable-library-js.4.
|
|
3
|
-
import { defaultArg } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { Record } from "../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { class_type, option_type, record_type, array_type, string_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
3
|
+
import { defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
4
4
|
|
|
5
5
|
export class CLITool extends Record {
|
|
6
6
|
constructor(Name, Arguments) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Contract, CLITool } from "
|
|
1
|
+
import { Contract, CLITool } from "./Contract.js";
|
|
2
2
|
import { dgi } from "../FileSystem/DefaultGitignore.js";
|
|
3
|
-
import { class_type } from "../fable_modules/fable-library-js.4.
|
|
4
|
-
import { value, defaultArg } from "../fable_modules/fable-library-js.4.
|
|
5
|
-
import { replace } from "../fable_modules/fable-library-js.4.
|
|
6
|
-
import { empty, singleton, append, delay, toArray } from "../fable_modules/fable-library-js.4.
|
|
3
|
+
import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
4
|
+
import { value, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
5
|
+
import { replace } from "../fable_modules/fable-library-js.4.16.0/String.js";
|
|
6
|
+
import { empty, singleton, append, delay, toArray } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
7
7
|
|
|
8
8
|
export function gitWithArgs(arguments$) {
|
|
9
9
|
return CLITool.create("git", arguments$);
|