@nfdi4plants/arctrl 1.0.0-beta.4 → 1.0.0-beta.6
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 +84 -25
- package/Contract/Contract.js +16 -5
- package/Contracts/Contracts.ARCtrl.js +1 -3
- package/Contracts/Contracts.ArcTypes.js +269 -0
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +8 -8
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +39 -13
- package/ISA/ISA/ArcTypes/ArcTableAux.js +12 -12
- package/ISA/ISA/ArcTypes/ArcTables.js +24 -14
- package/ISA/ISA/ArcTypes/ArcTypes.js +143 -61
- package/ISA/ISA/ArcTypes/CompositeCell.js +8 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +26 -5
- package/ISA/ISA/ArcTypes/CompositeHeader.js +32 -8
- package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
- package/ISA/ISA/Builder/Types.js +5 -5
- package/ISA/ISA/Fable.js +5 -5
- package/ISA/ISA/Helper.js +163 -9
- package/ISA/ISA/Identifier.js +3 -3
- package/ISA/ISA/JsonTypes/AnnotationValue.js +5 -5
- package/ISA/ISA/JsonTypes/Assay.js +8 -8
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +5 -5
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +5 -5
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +6 -6
- package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
- package/ISA/ISA/JsonTypes/Investigation.js +6 -6
- package/ISA/ISA/JsonTypes/Material.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +3 -3
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +6 -6
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +6 -6
- package/ISA/ISA/JsonTypes/Person.js +7 -7
- package/ISA/ISA/JsonTypes/Process.js +10 -10
- package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessSequence.js +6 -6
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +3 -3
- package/ISA/ISA/JsonTypes/Publication.js +6 -6
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +8 -8
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +7 -7
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA/UIHelper.js +19 -0
- package/ISA/ISA.Json/Assay.js +3 -3
- package/ISA/ISA.Json/Comment.js +5 -5
- package/ISA/ISA.Json/ConverterOptions.js +1 -1
- package/ISA/ISA.Json/Data.js +5 -5
- package/ISA/ISA.Json/Decode.js +4 -4
- package/ISA/ISA.Json/Factor.js +5 -5
- package/ISA/ISA.Json/GEncode.js +3 -3
- package/ISA/ISA.Json/Investigation.js +4 -4
- package/ISA/ISA.Json/Material.js +5 -5
- package/ISA/ISA.Json/Ontology.js +6 -6
- package/ISA/ISA.Json/Person.js +5 -5
- package/ISA/ISA.Json/Process.js +5 -5
- package/ISA/ISA.Json/Protocol.js +6 -6
- package/ISA/ISA.Json/Publication.js +4 -4
- package/ISA/ISA.Json/Study.js +4 -4
- package/ISA/ISA.Json/Validation/Fable.js +6 -6
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +1 -1
- package/ISA/ISA.Json/Validation/ValidationResult.js +2 -2
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +4 -4
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +2 -2
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +5 -5
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/ISA/ISA.Spreadsheet/ArcAssay.js +5 -5
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +15 -12
- package/ISA/ISA.Spreadsheet/ArcStudy.js +5 -5
- package/ISA/ISA.Spreadsheet/CollectionAux.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +3 -3
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +10 -10
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +8 -8
- package/Path.js +10 -0
- package/SemVer.js +7 -7
- package/Templates/Template.Json.js +7 -7
- package/Templates/Template.Spreadsheet.js +10 -10
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +5 -5
- package/WebRequest/WebRequest.js +4 -4
- 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.0.1/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.0.1/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.0.1/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/FsAddress.fs.js +5 -5
- package/fable_modules/FsSpreadsheet.5.0.1/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.0.1/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.0.1/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/Ranges/FsRangeAddress.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.0.1/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.0.1/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.0.1/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.0.1/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.0.1/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.0.1/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +20 -20
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +13 -13
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +2 -2
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +6 -6
- package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Util.js +1 -2
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/Contracts/Contracts.ArcAssay.js +0 -65
- package/Contracts/Contracts.ArcInvestigation.js +0 -58
- package/Contracts/Contracts.ArcStudy.js +0 -65
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Array.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/CHANGELOG.md +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Choice.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Date.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/List.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Map.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/MutableMap.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/MutableSet.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Random.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Set.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/String.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/String.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/System.Text.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/Util.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/lib/big.js +0 -0
- /package/fable_modules/{fable-library.4.4.1 → fable-library.4.5.0}/package.json +0 -0
package/ARC.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { concat, fold, exactlyOne, choose
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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.4.1/Seq.js";
|
|
1
|
+
import { concat, fold, map, exactlyOne, choose } from "./fable_modules/fable-library.4.5.0/Array.js";
|
|
2
|
+
import { ARCtrl_ISA_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToUpdateContract, ARCtrl_ISA_ArcAssay__ArcAssay_ToDeleteContract, ARCtrl_ISA_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F, ARCtrl_ISA_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F, ARCtrl_ISA_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F } from "./Contracts/Contracts.ArcTypes.js";
|
|
3
|
+
import { collect, empty, iterate, find, tryFind, map as map_1, singleton, append, delay, toList, toArray } from "./fable_modules/fable-library.4.5.0/Seq.js";
|
|
9
4
|
import { createRunsFolder, createWorkflowsFolder, createInvestigationFile, createStudyFolder, createStudiesFolder, createAssayFolder, createAssaysFolder } from "./FileSystemTree.js";
|
|
10
5
|
import { FileSystemTree } from "./FileSystem/FileSystemTree.js";
|
|
11
6
|
import { FileSystem } from "./FileSystem/FileSystem.js";
|
|
12
|
-
import { bind, map as
|
|
7
|
+
import { bind, map as map_2, value as value_2, defaultArg, unwrap } from "./fable_modules/fable-library.4.5.0/Option.js";
|
|
8
|
+
import { getStudyFolderPath, getAssayFolderPath } from "./Path.js";
|
|
9
|
+
import { Contract } from "./Contract/Contract.js";
|
|
10
|
+
import { ofArray } from "./fable_modules/fable-library.4.5.0/List.js";
|
|
13
11
|
import { tryISAReadContractFromPath } from "./Contracts/Contracts.ARCtrl.js";
|
|
14
12
|
import { ArcTables } from "./ISA/ISA/ArcTypes/ArcTables.js";
|
|
15
|
-
import { addToDict } from "./fable_modules/fable-library.4.
|
|
13
|
+
import { addToDict } from "./fable_modules/fable-library.4.5.0/MapUtil.js";
|
|
14
|
+
import { toFsWorkbook } from "./ISA/ISA.Spreadsheet/ArcInvestigation.js";
|
|
16
15
|
import { ArcInvestigation } from "./ISA/ISA/ArcTypes/ArcTypes.js";
|
|
17
16
|
import { Assay_fileNameFromIdentifier, Study_fileNameFromIdentifier } from "./ISA/ISA/Identifier.js";
|
|
17
|
+
import { ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9 } from "./ISA/ISA.Spreadsheet/ArcStudy.js";
|
|
18
|
+
import { toFsWorkbook as toFsWorkbook_1 } from "./ISA/ISA.Spreadsheet/ArcAssay.js";
|
|
18
19
|
import { Dictionary_tryGet } from "./fable_modules/FsSpreadsheet.5.0.1/Cells/FsCellsCollection.fs.js";
|
|
19
|
-
import { Contract } from "./Contract/Contract.js";
|
|
20
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.
|
|
22
|
-
import { comparePrimitives } from "./fable_modules/fable-library.4.
|
|
23
|
-
import { ofSeq as ofSeq_1 } from "./fable_modules/fable-library.4.
|
|
24
|
-
import { class_type } from "./fable_modules/fable-library.4.
|
|
21
|
+
import { FSharpSet__Contains, ofSeq, unionMany } from "./fable_modules/fable-library.4.5.0/Set.js";
|
|
22
|
+
import { comparePrimitives } from "./fable_modules/fable-library.4.5.0/Util.js";
|
|
23
|
+
import { ofSeq as ofSeq_1 } from "./fable_modules/fable-library.4.5.0/Map.js";
|
|
24
|
+
import { class_type } from "./fable_modules/fable-library.4.5.0/Reflection.js";
|
|
25
25
|
|
|
26
26
|
export function ARCAux_getArcAssaysFromContracts(contracts) {
|
|
27
|
-
return
|
|
27
|
+
return choose(ARCtrl_ISA_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F, contracts);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export function ARCAux_getArcStudiesFromContracts(contracts) {
|
|
31
|
-
return
|
|
31
|
+
return choose(ARCtrl_ISA_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F, contracts);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export function ARCAux_getArcInvestigationFromContracts(contracts) {
|
|
35
|
-
return
|
|
35
|
+
return exactlyOne(choose(ARCtrl_ISA_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F, contracts));
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export function ARCAux_updateFSByISA(isa, fs) {
|
|
@@ -92,9 +92,56 @@ export class ARC {
|
|
|
92
92
|
const this$ = this;
|
|
93
93
|
return this$._fs;
|
|
94
94
|
}
|
|
95
|
+
set FileSystem(fs) {
|
|
96
|
+
const this$ = this;
|
|
97
|
+
this$._fs = fs;
|
|
98
|
+
}
|
|
99
|
+
RemoveAssay(assayIdentifier) {
|
|
100
|
+
const this$ = this;
|
|
101
|
+
let isa;
|
|
102
|
+
const matchValue = this$.ISA;
|
|
103
|
+
if (matchValue == null) {
|
|
104
|
+
throw new Error("Cannot remove assay from null ISA value.");
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
isa = matchValue;
|
|
108
|
+
}
|
|
109
|
+
const assay = isa.GetAssay(assayIdentifier);
|
|
110
|
+
const studies = assay.StudiesRegisteredIn;
|
|
111
|
+
isa.RemoveAssay(assayIdentifier);
|
|
112
|
+
const paths = this$.FileSystem.Tree.ToFilePaths();
|
|
113
|
+
const assayFolderPath = getAssayFolderPath(assayIdentifier);
|
|
114
|
+
const filteredPaths = paths.filter((p) => !(p.indexOf(assayFolderPath) === 0));
|
|
115
|
+
this$.SetFilePaths(filteredPaths);
|
|
116
|
+
const collection = toList(delay(() => append(singleton(ARCtrl_ISA_ArcAssay__ArcAssay_ToDeleteContract(assay)), delay(() => append(singleton(ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToUpdateContract(isa)), delay(() => map_1(ARCtrl_ISA_ArcStudy__ArcStudy_ToUpdateContract, studies)))))));
|
|
117
|
+
return Array.from(collection);
|
|
118
|
+
}
|
|
119
|
+
RemoveStudy(studyIdentifier) {
|
|
120
|
+
const this$ = this;
|
|
121
|
+
let isa;
|
|
122
|
+
const matchValue = this$.ISA;
|
|
123
|
+
if (matchValue == null) {
|
|
124
|
+
throw new Error("Cannot remove study from null ISA value.");
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
isa = matchValue;
|
|
128
|
+
}
|
|
129
|
+
isa.RemoveStudy(studyIdentifier);
|
|
130
|
+
const paths = this$.FileSystem.Tree.ToFilePaths();
|
|
131
|
+
const studyFolderPath = getStudyFolderPath(studyIdentifier);
|
|
132
|
+
const filteredPaths = paths.filter((p) => !(p.indexOf(studyFolderPath) === 0));
|
|
133
|
+
this$.SetFilePaths(filteredPaths);
|
|
134
|
+
const collection = ofArray([Contract.createDelete(studyFolderPath), ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToUpdateContract(isa)]);
|
|
135
|
+
return Array.from(collection);
|
|
136
|
+
}
|
|
95
137
|
static fromFilePaths(filePaths) {
|
|
96
138
|
return new ARC(void 0, void 0, FileSystem.fromFilePaths(filePaths));
|
|
97
139
|
}
|
|
140
|
+
SetFilePaths(filePaths) {
|
|
141
|
+
const this$ = this;
|
|
142
|
+
const tree = FileSystemTree.fromFilePaths(filePaths);
|
|
143
|
+
this$._fs = (new FileSystem(tree, this$._fs.History));
|
|
144
|
+
}
|
|
98
145
|
GetReadContracts() {
|
|
99
146
|
const this$ = this;
|
|
100
147
|
return choose(tryISAReadContractFromPath, this$._fs.Tree.ToFilePaths());
|
|
@@ -104,8 +151,20 @@ export class ARC {
|
|
|
104
151
|
const investigation = ARCAux_getArcInvestigationFromContracts(contracts);
|
|
105
152
|
const studies = map((tuple) => tuple[0], ARCAux_getArcStudiesFromContracts(contracts));
|
|
106
153
|
const assays = ARCAux_getArcAssaysFromContracts(contracts);
|
|
154
|
+
const array_2 = investigation.AssayIdentifiers;
|
|
155
|
+
array_2.forEach((ai) => {
|
|
156
|
+
if (!assays.some((a) => (a.Identifier === ai))) {
|
|
157
|
+
investigation.DeleteAssay(ai);
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
const array_4 = investigation.StudyIdentifiers;
|
|
161
|
+
array_4.forEach((si) => {
|
|
162
|
+
if (!studies.some((s) => (s.Identifier === si))) {
|
|
163
|
+
investigation.RemoveStudy(si);
|
|
164
|
+
}
|
|
165
|
+
});
|
|
107
166
|
studies.forEach((study) => {
|
|
108
|
-
const registeredStudyOpt = tryFind((
|
|
167
|
+
const registeredStudyOpt = tryFind((s_1) => (s_1.Identifier === study.Identifier), investigation.Studies);
|
|
109
168
|
if (registeredStudyOpt == null) {
|
|
110
169
|
investigation.AddStudy(study);
|
|
111
170
|
}
|
|
@@ -115,7 +174,7 @@ export class ARC {
|
|
|
115
174
|
}
|
|
116
175
|
});
|
|
117
176
|
assays.forEach((assay) => {
|
|
118
|
-
const registeredAssayOpt = tryFind((
|
|
177
|
+
const registeredAssayOpt = tryFind((a_1) => (a_1.Identifier === assay.Identifier), investigation.Assays);
|
|
119
178
|
if (registeredAssayOpt == null) {
|
|
120
179
|
investigation.AddAssay(assay);
|
|
121
180
|
}
|
|
@@ -123,10 +182,10 @@ export class ARC {
|
|
|
123
182
|
const registeredAssay = registeredAssayOpt;
|
|
124
183
|
registeredAssay.UpdateReferenceByAssayFile(assay, true);
|
|
125
184
|
}
|
|
126
|
-
const assay_1 = find((
|
|
185
|
+
const assay_1 = find((a_2) => (a_2.Identifier === assay.Identifier), investigation.Assays);
|
|
127
186
|
let updatedTables;
|
|
128
|
-
const
|
|
129
|
-
updatedTables = fold((tables, study_1) => ArcTables.updateReferenceTablesBySheets(new ArcTables(study_1.Tables), tables, false), new ArcTables(assay_1.Tables),
|
|
187
|
+
const array_6 = assay_1.StudiesRegisteredIn;
|
|
188
|
+
updatedTables = fold((tables, study_1) => ArcTables.updateReferenceTablesBySheets(new ArcTables(study_1.Tables), tables, false), new ArcTables(assay_1.Tables), array_6);
|
|
130
189
|
assay_1.Tables = updatedTables.Tables;
|
|
131
190
|
});
|
|
132
191
|
this$.ISA = investigation;
|
|
@@ -176,14 +235,14 @@ export class ARC {
|
|
|
176
235
|
}
|
|
177
236
|
Copy() {
|
|
178
237
|
const this$ = this;
|
|
179
|
-
const isaCopy =
|
|
238
|
+
const isaCopy = map_2((i) => i.Copy(), this$._isa);
|
|
180
239
|
const fsCopy = this$._fs.Copy();
|
|
181
240
|
return new ARC(unwrap(isaCopy), this$._cwl, fsCopy);
|
|
182
241
|
}
|
|
183
242
|
GetRegisteredPayload(IgnoreHidden) {
|
|
184
243
|
let tree, paths, array_3;
|
|
185
244
|
const this$ = this;
|
|
186
|
-
const registeredStudies = defaultArg(
|
|
245
|
+
const registeredStudies = defaultArg(map_2((isa) => isa.Studies.slice(), map_2((i) => i.Copy(), this$._isa)), []);
|
|
187
246
|
const registeredAssays = concat(map((s) => s.RegisteredAssays.slice(), registeredStudies));
|
|
188
247
|
const includeFiles = unionMany([ofSeq(["isa.investigation.xlsx", "README.md"], {
|
|
189
248
|
Compare: comparePrimitives,
|
package/Contract/Contract.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Record } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { class_type, option_type, record_type, array_type, string_type } from "../fable_modules/fable-library.4.
|
|
3
|
-
import {
|
|
1
|
+
import { Record } from "../fable_modules/fable-library.4.5.0/Types.js";
|
|
2
|
+
import { class_type, option_type, record_type, array_type, string_type } from "../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
3
|
+
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.5.0.1/FsWorkbook.fs.js";
|
|
4
|
+
import { defaultArg } from "../fable_modules/fable-library.4.5.0/Option.js";
|
|
4
5
|
|
|
5
6
|
export class CLITool extends Record {
|
|
6
7
|
constructor(Name, Arguments) {
|
|
@@ -18,7 +19,12 @@ export function CLITool_$reflection() {
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export function DTO__get_isSpreadsheet(this$) {
|
|
21
|
-
|
|
22
|
+
if (this$ instanceof FsWorkbook) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
export function DTO__get_isText(this$) {
|
|
@@ -40,7 +46,12 @@ export function DTO__get_isCLITool(this$) {
|
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
export function DTO__AsSpreadsheet(this$) {
|
|
43
|
-
|
|
49
|
+
if (this$ instanceof FsWorkbook) {
|
|
50
|
+
return this$;
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
throw new Error("Not a spreadsheet");
|
|
54
|
+
}
|
|
44
55
|
}
|
|
45
56
|
|
|
46
57
|
export function DTO__AsText(this$) {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { split as split_1 } from "../FileSystem/Path.js";
|
|
2
|
-
import { $007CInvestigationPath$007C_$007C } from "./Contracts.
|
|
2
|
+
import { $007CStudyPath$007C_$007C, $007CAssayPath$007C_$007C, $007CInvestigationPath$007C_$007C } from "./Contracts.ArcTypes.js";
|
|
3
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
4
|
|
|
7
5
|
/**
|
|
8
6
|
* Tries to create READ contract with DTOType = ISA_Assay, ISA_Study or ISA_Investigation from given path relative to ARC root.
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { combineMany } from "../FileSystem/Path.js";
|
|
2
|
+
import { equalsWith } from "../fable_modules/fable-library.4.5.0/Array.js";
|
|
3
|
+
import { defaultOf } from "../fable_modules/fable-library.4.5.0/Util.js";
|
|
4
|
+
import { Contract } from "../Contract/Contract.js";
|
|
5
|
+
import { fromFsWorkbook, toFsWorkbook } from "../ISA/ISA.Spreadsheet/ArcInvestigation.js";
|
|
6
|
+
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.5.0.1/FsWorkbook.fs.js";
|
|
7
|
+
import { Assay_fileNameFromIdentifier, Study_fileNameFromIdentifier } from "../ISA/ISA/Identifier.js";
|
|
8
|
+
import { ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9 } from "../ISA/ISA.Spreadsheet/ArcStudy.js";
|
|
9
|
+
import { getAssayFolderPath, getStudyFolderPath } from "../Path.js";
|
|
10
|
+
import { fromFsWorkbook as fromFsWorkbook_1, toFsWorkbook as toFsWorkbook_1 } from "../ISA/ISA.Spreadsheet/ArcAssay.js";
|
|
11
|
+
|
|
12
|
+
export function $007CStudyPath$007C_$007C(input) {
|
|
13
|
+
let matchResult;
|
|
14
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 3)) {
|
|
15
|
+
if (input[0] === "studies") {
|
|
16
|
+
if (input[2] === "isa.study.xlsx") {
|
|
17
|
+
matchResult = 0;
|
|
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
|
+
const anyStudyName = input[1];
|
|
33
|
+
return combineMany(input);
|
|
34
|
+
}
|
|
35
|
+
default:
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function $007CAssayPath$007C_$007C(input) {
|
|
41
|
+
let matchResult;
|
|
42
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 3)) {
|
|
43
|
+
if (input[0] === "assays") {
|
|
44
|
+
if (input[2] === "isa.assay.xlsx") {
|
|
45
|
+
matchResult = 0;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
matchResult = 1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
matchResult = 1;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
matchResult = 1;
|
|
57
|
+
}
|
|
58
|
+
switch (matchResult) {
|
|
59
|
+
case 0: {
|
|
60
|
+
const anyAssayName = input[1];
|
|
61
|
+
return combineMany(input);
|
|
62
|
+
}
|
|
63
|
+
default:
|
|
64
|
+
return void 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function $007CInvestigationPath$007C_$007C(input) {
|
|
69
|
+
let matchResult;
|
|
70
|
+
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 1)) {
|
|
71
|
+
if (input[0] === "isa.investigation.xlsx") {
|
|
72
|
+
matchResult = 0;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
matchResult = 1;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
matchResult = 1;
|
|
80
|
+
}
|
|
81
|
+
switch (matchResult) {
|
|
82
|
+
case 0:
|
|
83
|
+
return combineMany(input);
|
|
84
|
+
default:
|
|
85
|
+
return void 0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToCreateContract(this$) {
|
|
90
|
+
return Contract.createCreate("isa.investigation.xlsx", "ISA_Investigation", toFsWorkbook(this$));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToUpdateContract(this$) {
|
|
94
|
+
return Contract.createUpdate("isa.investigation.xlsx", "ISA_Investigation", toFsWorkbook(this$));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_toCreateContract_Static_Z4D87C88C(inv) {
|
|
98
|
+
return ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToCreateContract(inv);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_toUpdateContract_Static_Z4D87C88C(inv) {
|
|
102
|
+
return ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToUpdateContract(inv);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F(c) {
|
|
106
|
+
let matchResult, fsworkbook;
|
|
107
|
+
if (c.Operation === "READ") {
|
|
108
|
+
if (c.DTOType != null) {
|
|
109
|
+
if (c.DTOType === "ISA_Investigation") {
|
|
110
|
+
if (c.DTO != null) {
|
|
111
|
+
if (c.DTO instanceof FsWorkbook) {
|
|
112
|
+
matchResult = 0;
|
|
113
|
+
fsworkbook = c.DTO;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
matchResult = 1;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
matchResult = 1;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
matchResult = 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
matchResult = 1;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
matchResult = 1;
|
|
133
|
+
}
|
|
134
|
+
switch (matchResult) {
|
|
135
|
+
case 0:
|
|
136
|
+
return fromFsWorkbook(fsworkbook);
|
|
137
|
+
default:
|
|
138
|
+
return void 0;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_ToCreateContract(this$) {
|
|
143
|
+
const path = Study_fileNameFromIdentifier(this$.Identifier);
|
|
144
|
+
return Contract.createCreate(path, "ISA_Study", ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9(this$));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_ToUpdateContract(this$) {
|
|
148
|
+
const path = Study_fileNameFromIdentifier(this$.Identifier);
|
|
149
|
+
return Contract.createUpdate(path, "ISA_Study", ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9(this$));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_ToDeleteContract(this$) {
|
|
153
|
+
const path = getStudyFolderPath(this$.Identifier);
|
|
154
|
+
return Contract.createDelete(path);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_toDeleteContract_Static_1B3D5E9B(study) {
|
|
158
|
+
return ARCtrl_ISA_ArcStudy__ArcStudy_ToDeleteContract(study);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_toCreateContract_Static_1B3D5E9B(study) {
|
|
162
|
+
return ARCtrl_ISA_ArcStudy__ArcStudy_ToCreateContract(study);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_toUpdateContract_Static_1B3D5E9B(study) {
|
|
166
|
+
return ARCtrl_ISA_ArcStudy__ArcStudy_ToUpdateContract(study);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F(c) {
|
|
170
|
+
let matchResult, fsworkbook;
|
|
171
|
+
if (c.Operation === "READ") {
|
|
172
|
+
if (c.DTOType != null) {
|
|
173
|
+
if (c.DTOType === "ISA_Study") {
|
|
174
|
+
if (c.DTO != null) {
|
|
175
|
+
if (c.DTO instanceof FsWorkbook) {
|
|
176
|
+
matchResult = 0;
|
|
177
|
+
fsworkbook = c.DTO;
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
matchResult = 1;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
matchResult = 1;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
matchResult = 1;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
matchResult = 1;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
matchResult = 1;
|
|
197
|
+
}
|
|
198
|
+
switch (matchResult) {
|
|
199
|
+
case 0:
|
|
200
|
+
return ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(fsworkbook);
|
|
201
|
+
default:
|
|
202
|
+
return void 0;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_ToCreateContract(this$) {
|
|
207
|
+
const path = Assay_fileNameFromIdentifier(this$.Identifier);
|
|
208
|
+
return Contract.createCreate(path, "ISA_Assay", toFsWorkbook_1(this$));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_ToUpdateContract(this$) {
|
|
212
|
+
const path = Assay_fileNameFromIdentifier(this$.Identifier);
|
|
213
|
+
return Contract.createUpdate(path, "ISA_Assay", toFsWorkbook_1(this$));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_ToDeleteContract(this$) {
|
|
217
|
+
const path = getAssayFolderPath(this$.Identifier);
|
|
218
|
+
return Contract.createDelete(path);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_toDeleteContract_Static_1C75D08D(assay) {
|
|
222
|
+
return ARCtrl_ISA_ArcAssay__ArcAssay_ToDeleteContract(assay);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_toCreateContract_Static_1C75D08D(assay) {
|
|
226
|
+
return ARCtrl_ISA_ArcAssay__ArcAssay_ToCreateContract(assay);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_toUpdateContract_Static_1C75D08D(assay) {
|
|
230
|
+
return ARCtrl_ISA_ArcAssay__ArcAssay_ToUpdateContract(assay);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F(c) {
|
|
234
|
+
let matchResult, fsworkbook;
|
|
235
|
+
if (c.Operation === "READ") {
|
|
236
|
+
if (c.DTOType != null) {
|
|
237
|
+
if (c.DTOType === "ISA_Assay") {
|
|
238
|
+
if (c.DTO != null) {
|
|
239
|
+
if (c.DTO instanceof FsWorkbook) {
|
|
240
|
+
matchResult = 0;
|
|
241
|
+
fsworkbook = c.DTO;
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
matchResult = 1;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
matchResult = 1;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
matchResult = 1;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
matchResult = 1;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
matchResult = 1;
|
|
261
|
+
}
|
|
262
|
+
switch (matchResult) {
|
|
263
|
+
case 0:
|
|
264
|
+
return fromFsWorkbook_1(fsworkbook);
|
|
265
|
+
default:
|
|
266
|
+
return void 0;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Contract, CLITool } from "../Contract/Contract.js";
|
|
2
2
|
import { dgi } from "../FileSystem/DefaultGitignore.js";
|
|
3
|
-
import { class_type } from "../fable_modules/fable-library.4.
|
|
4
|
-
import { value, defaultArg } from "../fable_modules/fable-library.4.
|
|
5
|
-
import { replace } from "../fable_modules/fable-library.4.
|
|
6
|
-
import { empty, singleton, append, delay, toArray } from "../fable_modules/fable-library.4.
|
|
3
|
+
import { class_type } from "../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
4
|
+
import { value, defaultArg } from "../fable_modules/fable-library.4.5.0/Option.js";
|
|
5
|
+
import { replace } from "../fable_modules/fable-library.4.5.0/String.js";
|
|
6
|
+
import { empty, singleton, append, delay, toArray } from "../fable_modules/fable-library.4.5.0/Seq.js";
|
|
7
7
|
|
|
8
8
|
export function gitWithArgs(arguments$) {
|
|
9
9
|
return CLITool.create("git", arguments$);
|
package/FileSystem/Commit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Record } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { record_type, class_type, string_type } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { Record } from "../fable_modules/fable-library.4.5.0/Types.js";
|
|
2
|
+
import { record_type, class_type, string_type } from "../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
3
3
|
|
|
4
4
|
export class Commit extends Record {
|
|
5
5
|
constructor(Hash, UserName, UserEmail, Date$, Message) {
|
package/FileSystem/FileSystem.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defaultArg } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { defaultArg } from "../fable_modules/fable-library.4.5.0/Option.js";
|
|
2
2
|
import { FileSystemTree_$reflection, FileSystemTree } from "./FileSystemTree.js";
|
|
3
|
-
import { map, append } from "../fable_modules/fable-library.4.
|
|
4
|
-
import { Record } from "../fable_modules/fable-library.4.
|
|
3
|
+
import { map, append } from "../fable_modules/fable-library.4.5.0/Array.js";
|
|
4
|
+
import { Record } from "../fable_modules/fable-library.4.5.0/Types.js";
|
|
5
5
|
import { Commit_$reflection } from "./Commit.js";
|
|
6
|
-
import { record_type, array_type } from "../fable_modules/fable-library.4.
|
|
6
|
+
import { record_type, array_type } from "../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
7
7
|
|
|
8
8
|
export class FileSystem extends Record {
|
|
9
9
|
constructor(Tree, History) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { unwrap, defaultArg } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { append as append_1, choose, equalsWith, tail, head, map, tryFind } from "../fable_modules/fable-library.4.
|
|
3
|
-
import { singleton, append, delay, toArray } from "../fable_modules/fable-library.4.
|
|
4
|
-
import { Array_distinct, Array_groupBy } from "../fable_modules/fable-library.4.
|
|
5
|
-
import { curry2, arrayHash, stringHash } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { unwrap, defaultArg } from "../fable_modules/fable-library.4.5.0/Option.js";
|
|
2
|
+
import { append as append_1, choose, equalsWith, tail, head, map, tryFind } from "../fable_modules/fable-library.4.5.0/Array.js";
|
|
3
|
+
import { singleton, append, delay, toArray } from "../fable_modules/fable-library.4.5.0/Seq.js";
|
|
4
|
+
import { Array_distinct, Array_groupBy } from "../fable_modules/fable-library.4.5.0/Seq2.js";
|
|
5
|
+
import { curry2, arrayHash, stringHash } from "../fable_modules/fable-library.4.5.0/Util.js";
|
|
6
6
|
import { combineMany, split } from "./Path.js";
|
|
7
|
-
import { empty, reverse, toArray as toArray_1, cons } from "../fable_modules/fable-library.4.
|
|
8
|
-
import { Union } from "../fable_modules/fable-library.4.
|
|
9
|
-
import { union_type, array_type, string_type } from "../fable_modules/fable-library.4.
|
|
7
|
+
import { empty, reverse, toArray as toArray_1, cons } from "../fable_modules/fable-library.4.5.0/List.js";
|
|
8
|
+
import { Union } from "../fable_modules/fable-library.4.5.0/Types.js";
|
|
9
|
+
import { union_type, array_type, string_type } from "../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
10
10
|
|
|
11
11
|
export class FileSystemTree extends Union {
|
|
12
12
|
constructor(tag, fields) {
|
package/FileSystem/Path.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { trim, join, trimStart, trimEnd, split as split_1 } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { last, mapIndexed } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { trim, join, trimStart, trimEnd, split as split_1 } from "../fable_modules/fable-library.4.5.0/String.js";
|
|
2
|
+
import { last, mapIndexed } from "../fable_modules/fable-library.4.5.0/Array.js";
|
|
3
3
|
|
|
4
4
|
export const seperators = ["/", "\\"];
|
|
5
5
|
|
package/FileSystemTree.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileSystemTree } from "./FileSystem/FileSystemTree.js";
|
|
2
|
-
import { append } from "./fable_modules/fable-library.4.
|
|
2
|
+
import { append } from "./fable_modules/fable-library.4.5.0/Array.js";
|
|
3
3
|
|
|
4
4
|
export function createGitKeepFile() {
|
|
5
5
|
return FileSystemTree.createFile(".gitkeep");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Dictionary } from "../../../fable_modules/fable-library.4.
|
|
2
|
-
import { compareArrays, safeHash, disposeSafe, getEnumerator, equals, comparePrimitives, arrayHash, equalArrays } from "../../../fable_modules/fable-library.4.
|
|
3
|
-
import { value as value_9, map as map_2, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.
|
|
1
|
+
import { Dictionary } from "../../../fable_modules/fable-library.4.5.0/MutableMap.js";
|
|
2
|
+
import { compareArrays, safeHash, disposeSafe, getEnumerator, equals, comparePrimitives, arrayHash, equalArrays } from "../../../fable_modules/fable-library.4.5.0/Util.js";
|
|
3
|
+
import { value as value_9, map as map_2, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.5.0/Option.js";
|
|
4
4
|
import { Unchecked_extendToRowCount, ProcessParsing_processToRows, ProcessParsing_alignByHeaders, ProcessParsing_mergeIdenticalProcesses, ProcessParsing_getProcessGetter, Unchecked_removeRowCells_withIndexChange, Unchecked_addRow, Unchecked_getEmptyCellForHeader, Unchecked_removeColumnCells_withIndexChange, tryFindDuplicateUniqueInArray, Unchecked_removeColumnCells, Unchecked_removeHeader, Unchecked_fillMissingCells, Unchecked_addColumn, tryFindDuplicateUnique, Unchecked_setCellAt, SanityChecks_validateColumn, SanityChecks_validateRowIndex, SanityChecks_validateColumnIndex, Unchecked_tryGetCellAt, getRowCount, getColumnCount } from "./ArcTableAux.js";
|
|
5
|
-
import { item, append as append_1, indexed as indexed_1, choose, toList, zip, fold, filter, length, tryFindIndex, empty, singleton, collect, removeAt, map, delay, toArray } from "../../../fable_modules/fable-library.4.
|
|
6
|
-
import { rangeDouble } from "../../../fable_modules/fable-library.4.
|
|
5
|
+
import { item, append as append_1, indexed as indexed_1, choose, toList, zip, fold, filter, length, tryFindIndex, empty, singleton, collect, removeAt, map, delay, toArray } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
|
|
6
|
+
import { rangeDouble } from "../../../fable_modules/fable-library.4.5.0/Range.js";
|
|
7
7
|
import { CompositeColumn } from "./CompositeColumn.js";
|
|
8
|
-
import { sortBy, indexed, mapIndexed, singleton as singleton_1, initialize, sortDescending, iterateIndexed, map as map_1 } from "../../../fable_modules/fable-library.4.
|
|
9
|
-
import { append, collect as collect_1, initialize as initialize_1, singleton as singleton_2, empty as empty_1, iterate, isEmpty } from "../../../fable_modules/fable-library.4.
|
|
10
|
-
import { StringBuilder__AppendLine_Z721C83C5, StringBuilder_$ctor } from "../../../fable_modules/fable-library.4.
|
|
11
|
-
import { toString } from "../../../fable_modules/fable-library.4.
|
|
12
|
-
import { join, printf, toFail } from "../../../fable_modules/fable-library.4.
|
|
8
|
+
import { sortBy, indexed, mapIndexed, singleton as singleton_1, initialize, sortDescending, iterateIndexed, map as map_1 } from "../../../fable_modules/fable-library.4.5.0/Array.js";
|
|
9
|
+
import { append, collect as collect_1, initialize as initialize_1, singleton as singleton_2, empty as empty_1, iterate, isEmpty } from "../../../fable_modules/fable-library.4.5.0/List.js";
|
|
10
|
+
import { StringBuilder__AppendLine_Z721C83C5, StringBuilder_$ctor } from "../../../fable_modules/fable-library.4.5.0/System.Text.js";
|
|
11
|
+
import { toString } from "../../../fable_modules/fable-library.4.5.0/Types.js";
|
|
12
|
+
import { join, printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
|
|
13
13
|
import { CompositeCell } from "./CompositeCell.js";
|
|
14
14
|
import { CompositeHeader } from "./CompositeHeader.js";
|
|
15
15
|
import { createMissingIdentifier } from "../Identifier.js";
|
|
@@ -18,12 +18,12 @@ import { Protocol_create_Z7DFD6E67, Protocol_addComponent, Protocol_addParameter
|
|
|
18
18
|
import { OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
|
|
19
19
|
import { ProtocolParameter_create_Z6C54B221 } from "../JsonTypes/ProtocolParameter.js";
|
|
20
20
|
import { Component_create_61502994 } from "../JsonTypes/Component.js";
|
|
21
|
-
import { Array_groupBy, List_distinct } from "../../../fable_modules/fable-library.4.
|
|
21
|
+
import { Array_groupBy, List_distinct } from "../../../fable_modules/fable-library.4.5.0/Seq2.js";
|
|
22
22
|
import { toProtocol } from "./CompositeRow.js";
|
|
23
23
|
import { Process_create_Z42860F3E } from "../JsonTypes/Process.js";
|
|
24
|
-
import { getItemFromDict } from "../../../fable_modules/fable-library.4.
|
|
24
|
+
import { getItemFromDict } from "../../../fable_modules/fable-library.4.5.0/MapUtil.js";
|
|
25
25
|
import { HashCodes_boxHashArray } from "../Helper.js";
|
|
26
|
-
import { class_type } from "../../../fable_modules/fable-library.4.
|
|
26
|
+
import { class_type } from "../../../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
27
27
|
|
|
28
28
|
export class ArcTable {
|
|
29
29
|
constructor(name, headers, values) {
|
|
@@ -113,6 +113,32 @@ export class ArcTable {
|
|
|
113
113
|
static tryGetCellAt(column, row) {
|
|
114
114
|
return (table) => table.TryGetCellAt(column, row);
|
|
115
115
|
}
|
|
116
|
+
IterColumns(action) {
|
|
117
|
+
const this$ = this;
|
|
118
|
+
for (let columnIndex = 0; columnIndex <= (this$.ColumnCount - 1); columnIndex++) {
|
|
119
|
+
action(this$.GetColumn(columnIndex));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
static iterColumns(action) {
|
|
123
|
+
return (table) => {
|
|
124
|
+
const copy = table.Copy();
|
|
125
|
+
copy.IterColumns(action);
|
|
126
|
+
return copy;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
IteriColumns(action) {
|
|
130
|
+
const this$ = this;
|
|
131
|
+
for (let columnIndex = 0; columnIndex <= (this$.ColumnCount - 1); columnIndex++) {
|
|
132
|
+
action(columnIndex, this$.GetColumn(columnIndex));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
static iteriColumns(action) {
|
|
136
|
+
return (table) => {
|
|
137
|
+
const copy = table.Copy();
|
|
138
|
+
copy.IteriColumns(action);
|
|
139
|
+
return copy;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
116
142
|
UpdateCellAt(columnIndex, rowIndex, c) {
|
|
117
143
|
const this$ = this;
|
|
118
144
|
SanityChecks_validateColumnIndex(columnIndex, this$.ColumnCount, false);
|