@nfdi4plants/arctrl 1.0.0-alpha10
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 +262 -0
- package/Contract/Contract.js +95 -0
- package/Contracts/Contracts.ARCtrl.js +35 -0
- package/Contracts/Contracts.ArcAssay.js +65 -0
- package/Contracts/Contracts.ArcInvestigation.js +58 -0
- package/Contracts/Contracts.ArcStudy.js +65 -0
- package/Contracts/Contracts.Git.js +91 -0
- package/FileSystem/Commit.js +18 -0
- package/FileSystem/DefaultGitignore.js +3 -0
- package/FileSystem/FileSystem.js +53 -0
- package/FileSystem/FileSystemTree.js +223 -0
- package/FileSystem/Path.js +38 -0
- package/FileSystemTree.js +51 -0
- package/ISA/ISA/ArcTypes/ArcTable.js +848 -0
- package/ISA/ISA/ArcTypes/ArcTableAux.js +1105 -0
- package/ISA/ISA/ArcTypes/ArcTables.js +479 -0
- package/ISA/ISA/ArcTypes/ArcTypes.js +2281 -0
- package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
- package/ISA/ISA/ArcTypes/CompositeColumn.js +48 -0
- package/ISA/ISA/ArcTypes/CompositeHeader.js +668 -0
- package/ISA/ISA/ArcTypes/CompositeRow.js +111 -0
- package/ISA/ISA/ArcTypes/IdentifierSetters.js +26 -0
- package/ISA/ISA/Builder/Types.js +243 -0
- package/ISA/ISA/Fable.js +50 -0
- package/ISA/ISA/Helper.js +338 -0
- package/ISA/ISA/Identifier.js +76 -0
- package/ISA/ISA/JsonTypes/AnnotationValue.js +56 -0
- package/ISA/ISA/JsonTypes/Assay.js +620 -0
- package/ISA/ISA/JsonTypes/AssayMaterials.js +39 -0
- package/ISA/ISA/JsonTypes/ColumnIndex.js +246 -0
- package/ISA/ISA/JsonTypes/Comment.js +58 -0
- package/ISA/ISA/JsonTypes/CommentList.js +139 -0
- package/ISA/ISA/JsonTypes/Component.js +158 -0
- package/ISA/ISA/JsonTypes/Data.js +55 -0
- package/ISA/ISA/JsonTypes/DataFile.js +68 -0
- package/ISA/ISA/JsonTypes/Factor.js +128 -0
- package/ISA/ISA/JsonTypes/FactorValue.js +109 -0
- package/ISA/ISA/JsonTypes/Investigation.js +204 -0
- package/ISA/ISA/JsonTypes/Material.js +66 -0
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +101 -0
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +126 -0
- package/ISA/ISA/JsonTypes/MaterialType.js +41 -0
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +219 -0
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +85 -0
- package/ISA/ISA/JsonTypes/Person.js +137 -0
- package/ISA/ISA/JsonTypes/Process.js +401 -0
- package/ISA/ISA/JsonTypes/ProcessInput.js +297 -0
- package/ISA/ISA/JsonTypes/ProcessOutput.js +263 -0
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +129 -0
- package/ISA/ISA/JsonTypes/ProcessSequence.js +255 -0
- package/ISA/ISA/JsonTypes/Protocol.js +277 -0
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +101 -0
- package/ISA/ISA/JsonTypes/Publication.js +105 -0
- package/ISA/ISA/JsonTypes/Sample.js +71 -0
- package/ISA/ISA/JsonTypes/Source.js +54 -0
- package/ISA/ISA/JsonTypes/Study.js +942 -0
- package/ISA/ISA/JsonTypes/StudyMaterials.js +45 -0
- package/ISA/ISA/JsonTypes/URI.js +19 -0
- package/ISA/ISA/JsonTypes/Value.js +210 -0
- package/ISA/ISA/Regex.js +588 -0
- package/ISA/ISA.Json/Assay.js +123 -0
- package/ISA/ISA.Json/Comment.js +84 -0
- package/ISA/ISA.Json/ConverterOptions.js +33 -0
- package/ISA/ISA.Json/Data.js +271 -0
- package/ISA/ISA.Json/Decode.js +46 -0
- package/ISA/ISA.Json/Factor.js +194 -0
- package/ISA/ISA.Json/GEncode.js +15 -0
- package/ISA/ISA.Json/Investigation.js +132 -0
- package/ISA/ISA.Json/Material.js +233 -0
- package/ISA/ISA.Json/Ontology.js +204 -0
- package/ISA/ISA.Json/Person.js +204 -0
- package/ISA/ISA.Json/Process.js +291 -0
- package/ISA/ISA.Json/Protocol.js +242 -0
- package/ISA/ISA.Json/Publication.js +92 -0
- package/ISA/ISA.Json/Study.js +230 -0
- package/ISA/ISA.Json/Validation/Fable.js +69 -0
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +88 -0
- package/ISA/ISA.Json/Validation/ValidationResult.js +45 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +137 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +78 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +478 -0
- package/ISA/ISA.Spreadsheet/ArcAssay.js +150 -0
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +314 -0
- package/ISA/ISA.Spreadsheet/ArcStudy.js +67 -0
- package/ISA/ISA.Spreadsheet/CollectionAux.js +128 -0
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +81 -0
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +60 -0
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +104 -0
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +180 -0
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +27 -0
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +85 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +65 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +73 -0
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +116 -0
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +96 -0
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +451 -0
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +260 -0
- package/README.md +277 -0
- package/SemVer.js +60 -0
- package/Templates/Template.Json.js +85 -0
- package/Templates/Template.Spreadsheet.js +315 -0
- package/Templates/Template.Web.js +27 -0
- package/Templates/Template.js +179 -0
- package/Templates/Templates.js +82 -0
- package/WebRequest/WebRequest.js +38 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fable.Fetch.fableproj +21 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs +469 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +111 -0
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +104 -0
- package/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +20 -0
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +217 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +19 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Fable.SimpleHttp.fableproj +23 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs +357 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +429 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs +52 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +112 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs +387 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +240 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs +725 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs.js +522 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs +195 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs.js +208 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs +209 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs +61 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs.js +62 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs +24 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs.js +56 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs +102 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs.js +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs +139 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs.js +116 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs.js +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs +229 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs.js +421 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs +151 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs.js +277 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs +114 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs.js +104 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs +177 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs.js +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs.js +125 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs +202 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs.js +135 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsSpreadsheet.fableproj +58 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs +183 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs.js +138 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs +628 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs.js +398 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs.js +41 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs +222 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs.js +235 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs +93 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs.js +91 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs +65 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs.js +74 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs +22 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs.js +40 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs.js +325 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs +455 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs.js +310 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs +140 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs.js +173 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs.js +17 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +1366 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +1798 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +621 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +472 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +31 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +8 -0
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +30 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +59 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +98 -0
- package/fable_modules/Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/package.json +5 -0
- package/fable_modules/fable-library.4.1.4/Array.d.ts +120 -0
- package/fable_modules/fable-library.4.1.4/Array.js +1204 -0
- package/fable_modules/fable-library.4.1.4/Async.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Async.js +158 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.d.ts +59 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.js +183 -0
- package/fable_modules/fable-library.4.1.4/BigInt.d.ts +115 -0
- package/fable_modules/fable-library.4.1.4/BigInt.js +282 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.d.ts +27 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.js +138 -0
- package/fable_modules/fable-library.4.1.4/Boolean.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Boolean.js +21 -0
- package/fable_modules/fable-library.4.1.4/Char.d.ts +65 -0
- package/fable_modules/fable-library.4.1.4/Char.js +169 -0
- package/fable_modules/fable-library.4.1.4/Choice.d.ts +138 -0
- package/fable_modules/fable-library.4.1.4/Choice.js +227 -0
- package/fable_modules/fable-library.4.1.4/Date.d.ts +70 -0
- package/fable_modules/fable-library.4.1.4/Date.js +451 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.d.ts +63 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.js +268 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.js +124 -0
- package/fable_modules/fable-library.4.1.4/Decimal.d.ts +45 -0
- package/fable_modules/fable-library.4.1.4/Decimal.js +212 -0
- package/fable_modules/fable-library.4.1.4/Double.d.ts +11 -0
- package/fable_modules/fable-library.4.1.4/Double.js +46 -0
- package/fable_modules/fable-library.4.1.4/Encoding.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Encoding.js +173 -0
- package/fable_modules/fable-library.4.1.4/Event.d.ts +31 -0
- package/fable_modules/fable-library.4.1.4/Event.js +93 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.d.ts +7 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.js +27 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.d.ts +17 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.js +69 -0
- package/fable_modules/fable-library.4.1.4/Global.d.ts +24 -0
- package/fable_modules/fable-library.4.1.4/Global.js +8 -0
- package/fable_modules/fable-library.4.1.4/Guid.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/Guid.js +142 -0
- package/fable_modules/fable-library.4.1.4/Int32.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Int32.js +135 -0
- package/fable_modules/fable-library.4.1.4/List.d.ts +143 -0
- package/fable_modules/fable-library.4.1.4/List.js +1273 -0
- package/fable_modules/fable-library.4.1.4/Long.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Long.js +46 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.d.ts +25 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.js +93 -0
- package/fable_modules/fable-library.4.1.4/Map.d.ts +178 -0
- package/fable_modules/fable-library.4.1.4/Map.js +1396 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.js +112 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.d.ts +52 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.js +326 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.d.ts +39 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.js +232 -0
- package/fable_modules/fable-library.4.1.4/Native.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Native.js +8 -0
- package/fable_modules/fable-library.4.1.4/Numeric.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Numeric.js +71 -0
- package/fable_modules/fable-library.4.1.4/Observable.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Observable.js +113 -0
- package/fable_modules/fable-library.4.1.4/Option.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Option.js +96 -0
- package/fable_modules/fable-library.4.1.4/README.md +3 -0
- package/fable_modules/fable-library.4.1.4/Random.d.ts +37 -0
- package/fable_modules/fable-library.4.1.4/Random.js +170 -0
- package/fable_modules/fable-library.4.1.4/Range.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Range.js +45 -0
- package/fable_modules/fable-library.4.1.4/Reflection.d.ts +119 -0
- package/fable_modules/fable-library.4.1.4/Reflection.js +461 -0
- package/fable_modules/fable-library.4.1.4/RegExp.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/RegExp.js +132 -0
- package/fable_modules/fable-library.4.1.4/Seq.d.ts +165 -0
- package/fable_modules/fable-library.4.1.4/Seq.js +1379 -0
- package/fable_modules/fable-library.4.1.4/Seq2.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/Seq2.js +111 -0
- package/fable_modules/fable-library.4.1.4/Set.d.ts +190 -0
- package/fable_modules/fable-library.4.1.4/Set.js +1789 -0
- package/fable_modules/fable-library.4.1.4/String.d.ts +49 -0
- package/fable_modules/fable-library.4.1.4/String.js +540 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.d.ts +71 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.js +307 -0
- package/fable_modules/fable-library.4.1.4/System.Text.d.ts +30 -0
- package/fable_modules/fable-library.4.1.4/System.Text.js +110 -0
- package/fable_modules/fable-library.4.1.4/SystemException.d.ts +5 -0
- package/fable_modules/fable-library.4.1.4/SystemException.js +5 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.d.ts +15 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.js +122 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.d.ts +34 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.js +177 -0
- package/fable_modules/fable-library.4.1.4/Timer.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Timer.js +67 -0
- package/fable_modules/fable-library.4.1.4/Types.d.ts +58 -0
- package/fable_modules/fable-library.4.1.4/Types.js +208 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.js +4 -0
- package/fable_modules/fable-library.4.1.4/Uri.d.ts +29 -0
- package/fable_modules/fable-library.4.1.4/Uri.js +142 -0
- package/fable_modules/fable-library.4.1.4/Util.d.ts +187 -0
- package/fable_modules/fable-library.4.1.4/Util.js +662 -0
- package/fable_modules/fable-library.4.1.4/lib/big.d.ts +338 -0
- package/fable_modules/fable-library.4.1.4/lib/big.js +826 -0
- package/fable_modules/fable-library.4.1.4/package.json +23 -0
- package/fable_modules/project_cracked.json +1 -0
- package/index.js +13 -0
- package/package.json +24 -0
package/ARC.js
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { concat, fold, exactlyOne, choose, map } from "./fable_modules/fable-library.4.1.4/Array.js";
|
|
2
|
+
import { toFsWorkbook as toFsWorkbook_1, fromFsWorkbook } from "./ISA/ISA.Spreadsheet/ArcAssay.js";
|
|
3
|
+
import { tryFromContract } from "./Contracts/Contracts.ArcAssay.js";
|
|
4
|
+
import { ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9, ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D } from "./ISA/ISA.Spreadsheet/ArcStudy.js";
|
|
5
|
+
import { tryFromContract as tryFromContract_1 } from "./Contracts/Contracts.ArcStudy.js";
|
|
6
|
+
import { toFsWorkbook, fromFsWorkbook as fromFsWorkbook_1 } from "./ISA/ISA.Spreadsheet/ArcInvestigation.js";
|
|
7
|
+
import { tryFromContract as tryFromContract_2 } from "./Contracts/Contracts.ArcInvestigation.js";
|
|
8
|
+
import { collect, toList, empty, singleton, append, delay, iterate, find, tryFind, toArray } from "./fable_modules/fable-library.4.1.4/Seq.js";
|
|
9
|
+
import { createRunsFolder, createWorkflowsFolder, createInvestigationFile, createStudyFolder, createStudiesFolder, createAssayFolder, createAssaysFolder } from "./FileSystemTree.js";
|
|
10
|
+
import { FileSystemTree } from "./FileSystem/FileSystemTree.js";
|
|
11
|
+
import { FileSystem } from "./FileSystem/FileSystem.js";
|
|
12
|
+
import { bind, map as map_1, value as value_2, defaultArg, unwrap } from "./fable_modules/fable-library.4.1.4/Option.js";
|
|
13
|
+
import { tryISAReadContractFromPath } from "./Contracts/Contracts.ARCtrl.js";
|
|
14
|
+
import { ArcTables__get_Tables, ArcTables_$ctor_Z18C2F36D, ArcTables_updateReferenceTablesBySheets_Z2EE88E97 } from "./ISA/ISA/ArcTypes/ArcTables.js";
|
|
15
|
+
import { addToDict } from "./fable_modules/fable-library.4.1.4/MapUtil.js";
|
|
16
|
+
import { ArcInvestigation } from "./ISA/ISA/ArcTypes/ArcTypes.js";
|
|
17
|
+
import { Assay_fileNameFromIdentifier, Study_fileNameFromIdentifier } from "./ISA/ISA/Identifier.js";
|
|
18
|
+
import { Dictionary_tryGet } from "./fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs.js";
|
|
19
|
+
import { Contract } from "./Contract/Contract.js";
|
|
20
|
+
import { Clone_createCloneContract_5000466F, Init_createAddRemoteContract_Z721C83C5, gitignoreContract, Init_createInitContract_6DFDD678 } from "./Contracts/Contracts.Git.js";
|
|
21
|
+
import { FSharpSet__Contains, ofSeq, unionMany } from "./fable_modules/fable-library.4.1.4/Set.js";
|
|
22
|
+
import { comparePrimitives } from "./fable_modules/fable-library.4.1.4/Util.js";
|
|
23
|
+
import { ofSeq as ofSeq_1 } from "./fable_modules/fable-library.4.1.4/Map.js";
|
|
24
|
+
import { class_type } from "./fable_modules/fable-library.4.1.4/Reflection.js";
|
|
25
|
+
|
|
26
|
+
export function ARCAux_getArcAssaysFromContracts(contracts) {
|
|
27
|
+
return map(fromFsWorkbook, choose(tryFromContract, contracts));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function ARCAux_getArcStudiesFromContracts(contracts) {
|
|
31
|
+
return map(ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, choose(tryFromContract_1, contracts));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function ARCAux_getArcInvestigationFromContracts(contracts) {
|
|
35
|
+
return fromFsWorkbook_1(exactlyOne(choose(tryFromContract_2, contracts)));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ARCAux_updateFSByISA(isa, fs) {
|
|
39
|
+
let patternInput;
|
|
40
|
+
if (isa == null) {
|
|
41
|
+
patternInput = [[], []];
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const inv = isa;
|
|
45
|
+
patternInput = [toArray(inv.StudyIdentifiers), toArray(inv.AssayIdentifiers)];
|
|
46
|
+
}
|
|
47
|
+
const assays = createAssaysFolder(map(createAssayFolder, patternInput[1]));
|
|
48
|
+
const studies = createStudiesFolder(map(createStudyFolder, patternInput[0]));
|
|
49
|
+
const investigation = createInvestigationFile();
|
|
50
|
+
let tree;
|
|
51
|
+
const arg = FileSystemTree.createRootFolder([investigation, assays, studies]);
|
|
52
|
+
tree = FileSystem.create({
|
|
53
|
+
tree: arg,
|
|
54
|
+
});
|
|
55
|
+
return fs.Union(tree);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ARCAux_updateFSByCWL(cwl, fs) {
|
|
59
|
+
const workflows = createWorkflowsFolder([]);
|
|
60
|
+
const runs = createRunsFolder([]);
|
|
61
|
+
let tree;
|
|
62
|
+
const arg = FileSystemTree.createRootFolder([workflows, runs]);
|
|
63
|
+
tree = FileSystem.create({
|
|
64
|
+
tree: arg,
|
|
65
|
+
});
|
|
66
|
+
return fs.Union(tree);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export class ARC {
|
|
70
|
+
constructor(isa, cwl, fs) {
|
|
71
|
+
this.cwl = cwl;
|
|
72
|
+
this._isa = isa;
|
|
73
|
+
this._cwl = this.cwl;
|
|
74
|
+
this._fs = ARCAux_updateFSByCWL(this.cwl, ARCAux_updateFSByISA(isa, defaultArg(fs, FileSystem.create({
|
|
75
|
+
tree: new FileSystemTree(1, ["", []]),
|
|
76
|
+
}))));
|
|
77
|
+
}
|
|
78
|
+
get ISA() {
|
|
79
|
+
const this$ = this;
|
|
80
|
+
return unwrap(this$._isa);
|
|
81
|
+
}
|
|
82
|
+
set ISA(newISA) {
|
|
83
|
+
const this$ = this;
|
|
84
|
+
this$._isa = newISA;
|
|
85
|
+
this$.UpdateFileSystem();
|
|
86
|
+
}
|
|
87
|
+
get CWL() {
|
|
88
|
+
const this$ = this;
|
|
89
|
+
return this$.cwl;
|
|
90
|
+
}
|
|
91
|
+
get FileSystem() {
|
|
92
|
+
const this$ = this;
|
|
93
|
+
return this$._fs;
|
|
94
|
+
}
|
|
95
|
+
static fromFilePaths(filePaths) {
|
|
96
|
+
return new ARC(void 0, void 0, FileSystem.fromFilePaths(filePaths));
|
|
97
|
+
}
|
|
98
|
+
GetReadContracts() {
|
|
99
|
+
const this$ = this;
|
|
100
|
+
return choose(tryISAReadContractFromPath, this$._fs.Tree.ToFilePaths());
|
|
101
|
+
}
|
|
102
|
+
SetISAFromContracts(contracts, enableLogging) {
|
|
103
|
+
const this$ = this;
|
|
104
|
+
const enableLogging_1 = defaultArg(enableLogging, false);
|
|
105
|
+
const investigation = ARCAux_getArcInvestigationFromContracts(contracts);
|
|
106
|
+
const studies = map((tuple) => tuple[0], ARCAux_getArcStudiesFromContracts(contracts));
|
|
107
|
+
const assays = ARCAux_getArcAssaysFromContracts(contracts);
|
|
108
|
+
studies.forEach((study) => {
|
|
109
|
+
const registeredStudyOpt = tryFind((s) => (s.Identifier === study.Identifier), investigation.Studies);
|
|
110
|
+
if (registeredStudyOpt == null) {
|
|
111
|
+
investigation.AddStudy(study);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
const registeredStudy = registeredStudyOpt;
|
|
115
|
+
registeredStudy.UpdateReferenceByStudyFile(study, true);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
assays.forEach((assay) => {
|
|
119
|
+
const registeredAssayOpt = tryFind((a) => (a.Identifier === assay.Identifier), investigation.Assays);
|
|
120
|
+
if (registeredAssayOpt == null) {
|
|
121
|
+
investigation.AddAssay(assay);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
const registeredAssay = registeredAssayOpt;
|
|
125
|
+
registeredAssay.UpdateReferenceByAssayFile(assay, true);
|
|
126
|
+
}
|
|
127
|
+
const assay_1 = find((a_1) => (a_1.Identifier === assay.Identifier), investigation.Assays);
|
|
128
|
+
let updatedTables;
|
|
129
|
+
const array_2 = assay_1.StudiesRegisteredIn;
|
|
130
|
+
updatedTables = fold((tables, study_1) => ArcTables_updateReferenceTablesBySheets_Z2EE88E97(ArcTables_$ctor_Z18C2F36D(study_1.Tables), tables, false), ArcTables_$ctor_Z18C2F36D(assay_1.Tables), array_2);
|
|
131
|
+
assay_1.Tables = ArcTables__get_Tables(updatedTables);
|
|
132
|
+
});
|
|
133
|
+
this$.ISA = investigation;
|
|
134
|
+
}
|
|
135
|
+
UpdateFileSystem() {
|
|
136
|
+
const this$ = this;
|
|
137
|
+
let newFS;
|
|
138
|
+
const fs = ARCAux_updateFSByISA(this$._isa, this$._fs);
|
|
139
|
+
newFS = ARCAux_updateFSByCWL(this$._cwl, fs);
|
|
140
|
+
this$._fs = newFS;
|
|
141
|
+
}
|
|
142
|
+
GetWriteContracts() {
|
|
143
|
+
const this$ = this;
|
|
144
|
+
const workbooks = new Map([]);
|
|
145
|
+
const matchValue = this$.ISA;
|
|
146
|
+
if (matchValue == null) {
|
|
147
|
+
addToDict(workbooks, "isa.investigation.xlsx", ["ISA_Investigation", toFsWorkbook(ArcInvestigation.create("MISSING_IDENTIFIER_"))]);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
const inv = matchValue;
|
|
151
|
+
addToDict(workbooks, "isa.investigation.xlsx", ["ISA_Investigation", toFsWorkbook(inv)]);
|
|
152
|
+
iterate((s) => {
|
|
153
|
+
addToDict(workbooks, Study_fileNameFromIdentifier(s.Identifier), ["ISA_Study", ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9(s)]);
|
|
154
|
+
}, inv.Studies);
|
|
155
|
+
iterate((a) => {
|
|
156
|
+
addToDict(workbooks, Assay_fileNameFromIdentifier(a.Identifier), ["ISA_Assay", toFsWorkbook_1(a)]);
|
|
157
|
+
}, inv.Assays);
|
|
158
|
+
}
|
|
159
|
+
return map((fp) => {
|
|
160
|
+
const matchValue_1 = Dictionary_tryGet(fp, workbooks);
|
|
161
|
+
if (matchValue_1 == null) {
|
|
162
|
+
return Contract.createCreate(fp, "PlainText");
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
const wb = matchValue_1[1];
|
|
166
|
+
const dto = matchValue_1[0];
|
|
167
|
+
return Contract.createCreate(fp, dto, wb);
|
|
168
|
+
}
|
|
169
|
+
}, this$._fs.Tree.ToFilePaths(true));
|
|
170
|
+
}
|
|
171
|
+
GetGitInitContracts(branch, repositoryAddress, defaultGitignore) {
|
|
172
|
+
const defaultGitignore_1 = defaultArg(defaultGitignore, false);
|
|
173
|
+
return toArray(delay(() => append(singleton(Init_createInitContract_6DFDD678(unwrap(branch))), delay(() => append(defaultGitignore_1 ? singleton(gitignoreContract) : empty(), delay(() => ((repositoryAddress != null) ? singleton(Init_createAddRemoteContract_Z721C83C5(value_2(repositoryAddress))) : empty())))))));
|
|
174
|
+
}
|
|
175
|
+
static getCloneContract(remoteUrl, merge, branch, token, nolfs) {
|
|
176
|
+
return Clone_createCloneContract_5000466F(remoteUrl, unwrap(merge), unwrap(branch), unwrap(token), unwrap(nolfs));
|
|
177
|
+
}
|
|
178
|
+
Copy() {
|
|
179
|
+
const this$ = this;
|
|
180
|
+
const isaCopy = map_1((i) => i.Copy(), this$._isa);
|
|
181
|
+
const fsCopy = this$._fs.Copy();
|
|
182
|
+
return new ARC(unwrap(isaCopy), this$._cwl, fsCopy);
|
|
183
|
+
}
|
|
184
|
+
GetRegisteredPayload(IgnoreHidden) {
|
|
185
|
+
let tree, arg, array_3;
|
|
186
|
+
const this$ = this;
|
|
187
|
+
const registeredStudies = defaultArg(map_1((isa) => isa.Studies.slice(), map_1((i) => i.Copy(), this$._isa)), []);
|
|
188
|
+
const registeredAssays = concat(map((s) => s.RegisteredAssays.slice(), registeredStudies));
|
|
189
|
+
const includeFiles = unionMany([ofSeq(["isa.investigation.xlsx", "README.md"], {
|
|
190
|
+
Compare: comparePrimitives,
|
|
191
|
+
}), unionMany(map((s_1) => {
|
|
192
|
+
const studyFoldername = `${"studies"}/${s_1.Identifier}`;
|
|
193
|
+
return ofSeq(toList(delay(() => append(singleton(`${studyFoldername}/${"isa.study.xlsx"}`), delay(() => append(singleton(`${studyFoldername}/${"README.md"}`), delay(() => collect((table) => collect((kv) => {
|
|
194
|
+
const textValue = kv[1].ToFreeTextCell().AsFreeText;
|
|
195
|
+
return append(singleton(textValue), delay(() => append(singleton(`${studyFoldername}/${"resources"}/${textValue}`), delay(() => singleton(`${studyFoldername}/${"protocols"}/${textValue}`)))));
|
|
196
|
+
}, table.Values), s_1.Tables))))))), {
|
|
197
|
+
Compare: comparePrimitives,
|
|
198
|
+
});
|
|
199
|
+
}, registeredStudies), {
|
|
200
|
+
Compare: comparePrimitives,
|
|
201
|
+
}), unionMany(map((a) => {
|
|
202
|
+
const assayFoldername = `${"assays"}/${a.Identifier}`;
|
|
203
|
+
return ofSeq(toList(delay(() => append(singleton(`${assayFoldername}/${"isa.assay.xlsx"}`), delay(() => append(singleton(`${assayFoldername}/${"README.md"}`), delay(() => collect((table_1) => collect((kv_1) => {
|
|
204
|
+
const textValue_1 = kv_1[1].ToFreeTextCell().AsFreeText;
|
|
205
|
+
return append(singleton(textValue_1), delay(() => append(singleton(`${assayFoldername}/${"dataset"}/${textValue_1}`), delay(() => singleton(`${assayFoldername}/${"protocols"}/${textValue_1}`)))));
|
|
206
|
+
}, table_1.Values), a.Tables))))))), {
|
|
207
|
+
Compare: comparePrimitives,
|
|
208
|
+
});
|
|
209
|
+
}, registeredAssays), {
|
|
210
|
+
Compare: comparePrimitives,
|
|
211
|
+
})], {
|
|
212
|
+
Compare: comparePrimitives,
|
|
213
|
+
});
|
|
214
|
+
const ignoreHidden = defaultArg(IgnoreHidden, true);
|
|
215
|
+
const fsCopy = this$._fs.Copy();
|
|
216
|
+
return defaultArg(bind((tree_1) => {
|
|
217
|
+
if (ignoreHidden) {
|
|
218
|
+
return FileSystemTree.filterFolders((n_1) => !(n_1.indexOf(".") === 0))(tree_1);
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
return tree_1;
|
|
222
|
+
}
|
|
223
|
+
}, (tree = ((arg = ((array_3 = FileSystemTree.toFilePaths()(fsCopy.Tree), array_3.filter((p) => {
|
|
224
|
+
if ((p.indexOf("workflows") === 0) ? true : (p.indexOf("runs") === 0)) {
|
|
225
|
+
return true;
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
return FSharpSet__Contains(includeFiles, p);
|
|
229
|
+
}
|
|
230
|
+
}))), FileSystemTree.fromFilePaths(arg))), ignoreHidden ? FileSystemTree.filterFiles((n) => !(n.indexOf(".") === 0))(tree) : tree)), FileSystemTree.fromFilePaths([]));
|
|
231
|
+
}
|
|
232
|
+
GetAdditionalPayload(IgnoreHidden) {
|
|
233
|
+
let tree, arg, array;
|
|
234
|
+
const this$ = this;
|
|
235
|
+
const ignoreHidden = defaultArg(IgnoreHidden, true);
|
|
236
|
+
const registeredPayload = ofSeq(FileSystemTree.toFilePaths()(this$.GetRegisteredPayload()), {
|
|
237
|
+
Compare: comparePrimitives,
|
|
238
|
+
});
|
|
239
|
+
return defaultArg(bind((tree_1) => {
|
|
240
|
+
if (ignoreHidden) {
|
|
241
|
+
return FileSystemTree.filterFolders((n_1) => !(n_1.indexOf(".") === 0))(tree_1);
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
return tree_1;
|
|
245
|
+
}
|
|
246
|
+
}, (tree = ((arg = ((array = FileSystemTree.toFilePaths()(this$._fs.Copy().Tree), array.filter((p) => !FSharpSet__Contains(registeredPayload, p)))), FileSystemTree.fromFilePaths(arg))), ignoreHidden ? FileSystemTree.filterFiles((n) => !(n.indexOf(".") === 0))(tree) : tree)), FileSystemTree.fromFilePaths([]));
|
|
247
|
+
}
|
|
248
|
+
static get DefaultContracts() {
|
|
249
|
+
return ofSeq_1([[".gitignore", gitignoreContract]], {
|
|
250
|
+
Compare: comparePrimitives,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export function ARC_$reflection() {
|
|
256
|
+
return class_type("ARCtrl.ARC", void 0, ARC);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export function ARC_$ctor_81B80F4(isa, cwl, fs) {
|
|
260
|
+
return new ARC(isa, cwl, fs);
|
|
261
|
+
}
|
|
262
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Record } from "../fable_modules/fable-library.4.1.4/Types.js";
|
|
2
|
+
import { class_type, option_type, record_type, array_type, string_type } from "../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
3
|
+
import { defaultArg } from "../fable_modules/fable-library.4.1.4/Option.js";
|
|
4
|
+
|
|
5
|
+
export class CLITool extends Record {
|
|
6
|
+
constructor(Name, Arguments) {
|
|
7
|
+
super();
|
|
8
|
+
this.Name = Name;
|
|
9
|
+
this.Arguments = Arguments;
|
|
10
|
+
}
|
|
11
|
+
static create(name, arguments$) {
|
|
12
|
+
return new CLITool(name, arguments$);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function CLITool_$reflection() {
|
|
17
|
+
return record_type("ARCtrl.Contract.CLITool", [], CLITool, () => [["Name", string_type], ["Arguments", array_type(string_type)]]);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function DTO__get_isSpreadsheet(this$) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function DTO__get_isText(this$) {
|
|
25
|
+
if (typeof this$ === "string") {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function DTO__get_isCLITool(this$) {
|
|
34
|
+
if (this$ instanceof CLITool) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DTO__AsSpreadsheet(this$) {
|
|
43
|
+
return this$;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function DTO__AsText(this$) {
|
|
47
|
+
if (typeof this$ === "string") {
|
|
48
|
+
return this$;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
throw new Error("Not text");
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function DTO__AsCLITool(this$) {
|
|
56
|
+
if (this$ instanceof CLITool) {
|
|
57
|
+
return this$;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
throw new Error("Not a CLI tool");
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export class Contract extends Record {
|
|
65
|
+
constructor(Operation, Path, DTOType, DTO) {
|
|
66
|
+
super();
|
|
67
|
+
this.Operation = Operation;
|
|
68
|
+
this.Path = Path;
|
|
69
|
+
this.DTOType = DTOType;
|
|
70
|
+
this.DTO = DTO;
|
|
71
|
+
}
|
|
72
|
+
static create(op, path, { dtoType, dto }) {
|
|
73
|
+
return new Contract(op, path, dtoType, dto);
|
|
74
|
+
}
|
|
75
|
+
static createCreate(path, dtoType, dto) {
|
|
76
|
+
return new Contract("CREATE", path, dtoType, dto);
|
|
77
|
+
}
|
|
78
|
+
static createUpdate(path, dtoType, dto) {
|
|
79
|
+
return new Contract("UPDATE", path, dtoType, dto);
|
|
80
|
+
}
|
|
81
|
+
static createDelete(path) {
|
|
82
|
+
return new Contract("DELETE", path, void 0, void 0);
|
|
83
|
+
}
|
|
84
|
+
static createRead(path, dtoType) {
|
|
85
|
+
return new Contract("READ", path, dtoType, void 0);
|
|
86
|
+
}
|
|
87
|
+
static createExecute(dto, path) {
|
|
88
|
+
return new Contract("EXECUTE", defaultArg(path, ""), "Cli", dto);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function Contract_$reflection() {
|
|
93
|
+
return record_type("ARCtrl.Contract.Contract", [], Contract, () => [["Operation", string_type], ["Path", string_type], ["DTOType", option_type(string_type)], ["DTO", option_type(class_type("ARCtrl.Contract.DTO"))]]);
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { split as split_1 } from "../FileSystem/Path.js";
|
|
2
|
+
import { $007CInvestigationPath$007C_$007C } from "./Contracts.ArcInvestigation.js";
|
|
3
|
+
import { Contract } from "../Contract/Contract.js";
|
|
4
|
+
import { $007CAssayPath$007C_$007C } from "./Contracts.ArcAssay.js";
|
|
5
|
+
import { $007CStudyPath$007C_$007C } from "./Contracts.ArcStudy.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Tries to create READ contract with DTOType = ISA_Assay, ISA_Study or ISA_Investigation from given path relative to ARC root.
|
|
9
|
+
*/
|
|
10
|
+
export function tryISAReadContractFromPath(path) {
|
|
11
|
+
const split = split_1(path);
|
|
12
|
+
const activePatternResult = $007CInvestigationPath$007C_$007C(split);
|
|
13
|
+
if (activePatternResult != null) {
|
|
14
|
+
const p = activePatternResult;
|
|
15
|
+
return Contract.createRead(p, "ISA_Investigation");
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
const activePatternResult_1 = $007CAssayPath$007C_$007C(split);
|
|
19
|
+
if (activePatternResult_1 != null) {
|
|
20
|
+
const p_1 = activePatternResult_1;
|
|
21
|
+
return Contract.createRead(p_1, "ISA_Assay");
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
const activePatternResult_2 = $007CStudyPath$007C_$007C(split);
|
|
25
|
+
if (activePatternResult_2 != null) {
|
|
26
|
+
const p_2 = activePatternResult_2;
|
|
27
|
+
return Contract.createRead(p_2, "ISA_Study");
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return void 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { some } from "../fable_modules/fable-library.4.1.4/Option.js";
|
|
2
|
+
import { combineMany } from "../FileSystem/Path.js";
|
|
3
|
+
import { equalsWith } from "../fable_modules/fable-library.4.1.4/Array.js";
|
|
4
|
+
import { defaultOf } from "../fable_modules/fable-library.4.1.4/Util.js";
|
|
5
|
+
|
|
6
|
+
export function tryFromContract(c) {
|
|
7
|
+
let matchResult, fsworkbook;
|
|
8
|
+
if (c.Operation === "READ") {
|
|
9
|
+
if (c.DTOType != null) {
|
|
10
|
+
if (c.DTOType === "ISA_Assay") {
|
|
11
|
+
if (c.DTO != null) {
|
|
12
|
+
matchResult = 0;
|
|
13
|
+
fsworkbook = c.DTO;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
matchResult = 1;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
matchResult = 1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
matchResult = 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
matchResult = 1;
|
|
29
|
+
}
|
|
30
|
+
switch (matchResult) {
|
|
31
|
+
case 0:
|
|
32
|
+
return some(fsworkbook);
|
|
33
|
+
default:
|
|
34
|
+
return void 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function $007CAssayPath$007C_$007C(input) {
|
|
39
|
+
let matchResult;
|
|
40
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 3)) {
|
|
41
|
+
if (input[0] === "assays") {
|
|
42
|
+
if (input[2] === "isa.assay.xlsx") {
|
|
43
|
+
matchResult = 0;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
matchResult = 1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
matchResult = 1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
matchResult = 1;
|
|
55
|
+
}
|
|
56
|
+
switch (matchResult) {
|
|
57
|
+
case 0: {
|
|
58
|
+
const anyAssayName = input[1];
|
|
59
|
+
return combineMany(input);
|
|
60
|
+
}
|
|
61
|
+
default:
|
|
62
|
+
return void 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { some } from "../fable_modules/fable-library.4.1.4/Option.js";
|
|
2
|
+
import { combineMany } from "../FileSystem/Path.js";
|
|
3
|
+
import { equalsWith } from "../fable_modules/fable-library.4.1.4/Array.js";
|
|
4
|
+
import { defaultOf } from "../fable_modules/fable-library.4.1.4/Util.js";
|
|
5
|
+
|
|
6
|
+
export function tryFromContract(c) {
|
|
7
|
+
let matchResult, fsworkbook;
|
|
8
|
+
if (c.Operation === "READ") {
|
|
9
|
+
if (c.DTOType != null) {
|
|
10
|
+
if (c.DTOType === "ISA_Investigation") {
|
|
11
|
+
if (c.DTO != null) {
|
|
12
|
+
matchResult = 0;
|
|
13
|
+
fsworkbook = c.DTO;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
matchResult = 1;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
matchResult = 1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
matchResult = 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
matchResult = 1;
|
|
29
|
+
}
|
|
30
|
+
switch (matchResult) {
|
|
31
|
+
case 0:
|
|
32
|
+
return some(fsworkbook);
|
|
33
|
+
default:
|
|
34
|
+
return void 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function $007CInvestigationPath$007C_$007C(input) {
|
|
39
|
+
let matchResult;
|
|
40
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 1)) {
|
|
41
|
+
if (input[0] === "isa.investigation.xlsx") {
|
|
42
|
+
matchResult = 0;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
matchResult = 1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
matchResult = 1;
|
|
50
|
+
}
|
|
51
|
+
switch (matchResult) {
|
|
52
|
+
case 0:
|
|
53
|
+
return combineMany(input);
|
|
54
|
+
default:
|
|
55
|
+
return void 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { some } from "../fable_modules/fable-library.4.1.4/Option.js";
|
|
2
|
+
import { combineMany } from "../FileSystem/Path.js";
|
|
3
|
+
import { equalsWith } from "../fable_modules/fable-library.4.1.4/Array.js";
|
|
4
|
+
import { defaultOf } from "../fable_modules/fable-library.4.1.4/Util.js";
|
|
5
|
+
|
|
6
|
+
export function tryFromContract(c) {
|
|
7
|
+
let matchResult, fsworkbook;
|
|
8
|
+
if (c.Operation === "READ") {
|
|
9
|
+
if (c.DTOType != null) {
|
|
10
|
+
if (c.DTOType === "ISA_Study") {
|
|
11
|
+
if (c.DTO != null) {
|
|
12
|
+
matchResult = 0;
|
|
13
|
+
fsworkbook = c.DTO;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
matchResult = 1;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
matchResult = 1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
matchResult = 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
matchResult = 1;
|
|
29
|
+
}
|
|
30
|
+
switch (matchResult) {
|
|
31
|
+
case 0:
|
|
32
|
+
return some(fsworkbook);
|
|
33
|
+
default:
|
|
34
|
+
return void 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function $007CStudyPath$007C_$007C(input) {
|
|
39
|
+
let matchResult;
|
|
40
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 3)) {
|
|
41
|
+
if (input[0] === "studies") {
|
|
42
|
+
if (input[2] === "isa.study.xlsx") {
|
|
43
|
+
matchResult = 0;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
matchResult = 1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
matchResult = 1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
matchResult = 1;
|
|
55
|
+
}
|
|
56
|
+
switch (matchResult) {
|
|
57
|
+
case 0: {
|
|
58
|
+
const anyStudyName = input[1];
|
|
59
|
+
return combineMany(input);
|
|
60
|
+
}
|
|
61
|
+
default:
|
|
62
|
+
return void 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Contract, CLITool } from "../Contract/Contract.js";
|
|
2
|
+
import { dgi } from "../FileSystem/DefaultGitignore.js";
|
|
3
|
+
import { class_type } from "../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
4
|
+
import { value, defaultArg } from "../fable_modules/fable-library.4.1.4/Option.js";
|
|
5
|
+
import { replace } from "../fable_modules/fable-library.4.1.4/String.js";
|
|
6
|
+
import { empty, singleton, append, delay, toArray } from "../fable_modules/fable-library.4.1.4/Seq.js";
|
|
7
|
+
|
|
8
|
+
export function gitWithArgs(arguments$) {
|
|
9
|
+
return CLITool.create("git", arguments$);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function createGitContractAt(path, arguments$) {
|
|
13
|
+
return Contract.createExecute(gitWithArgs(arguments$), path);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function createGitContract(arguments$) {
|
|
17
|
+
return Contract.createExecute(gitWithArgs(arguments$));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const gitignoreContract = Contract.createCreate(".gitignore", "PlainText", dgi);
|
|
21
|
+
|
|
22
|
+
export class Init {
|
|
23
|
+
constructor() {
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function Init_$reflection() {
|
|
28
|
+
return class_type("ARCtrl.Contract.Git.Init", void 0, Init);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class Clone {
|
|
32
|
+
constructor() {
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function Clone_$reflection() {
|
|
37
|
+
return class_type("ARCtrl.Contract.Git.Clone", void 0, Clone);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function Init_get_init() {
|
|
41
|
+
return "init";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function Init_get_branchFlag() {
|
|
45
|
+
return "-b";
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function Init_get_remote() {
|
|
49
|
+
return "remote";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function Init_get_add() {
|
|
53
|
+
return "add";
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function Init_get_origin() {
|
|
57
|
+
return "origin";
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function Init_createInitContract_6DFDD678(branch) {
|
|
61
|
+
const branch_1 = defaultArg(branch, "main");
|
|
62
|
+
return createGitContract([Init_get_init(), Init_get_branchFlag(), branch_1]);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function Init_createAddRemoteContract_Z721C83C5(remoteUrl) {
|
|
66
|
+
return createGitContract([Init_get_remote(), Init_get_add(), Init_get_origin(), remoteUrl]);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function Clone_get_clone() {
|
|
70
|
+
return "clone";
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function Clone_get_branchFlag() {
|
|
74
|
+
return "-b";
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function Clone_get_noLFSConfig() {
|
|
78
|
+
return "-c \"filter.lfs.smudge = git-lfs smudge --skip -- %f\" -c \"filter.lfs.process = git-lfs filter-process --skip\"";
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function Clone_formatRepoString(username, pass, url) {
|
|
82
|
+
return replace(url, "https://", "https://" + (((username + ":") + pass) + "@"));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function Clone_createCloneContract_5000466F(remoteUrl, merge, branch, token, nolfs) {
|
|
86
|
+
const nolfs_1 = defaultArg(nolfs, false);
|
|
87
|
+
const merge_1 = defaultArg(merge, false);
|
|
88
|
+
const remoteUrl_1 = (token == null) ? remoteUrl : Clone_formatRepoString(token[0], token[1], remoteUrl);
|
|
89
|
+
return createGitContract(toArray(delay(() => append(singleton(Clone_get_clone()), delay(() => append(nolfs_1 ? singleton(Clone_get_noLFSConfig()) : empty(), delay(() => append((branch != null) ? singleton(Clone_get_branchFlag()) : empty(), delay(() => append((branch != null) ? singleton(value(branch)) : empty(), delay(() => append(singleton(remoteUrl_1), delay(() => (merge_1 ? singleton(".") : empty()))))))))))))));
|
|
90
|
+
}
|
|
91
|
+
|