@nfdi4plants/arctrl 1.0.0-alpha6
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/ARCtrl.js +257 -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 +744 -0
- package/ISA/ISA/ArcTypes/ArcTableAux.js +1142 -0
- package/ISA/ISA/ArcTypes/ArcTables.js +380 -0
- package/ISA/ISA/ArcTypes/ArcTypes.js +2018 -0
- package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
- package/ISA/ISA/ArcTypes/CompositeColumn.js +42 -0
- package/ISA/ISA/ArcTypes/CompositeHeader.js +358 -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 +326 -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/Templates.Json.js +40 -0
- package/Templates/Templates.Spreadsheet.js +315 -0
- package/Templates/Templates.js +179 -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/package.json +22 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { toArray as toArray_1, append as append_1, reverse, map, empty, ofArray } from "../fable_modules/fable-library.4.1.4/List.js";
|
|
2
|
+
import { toRows, fromRows, toSparseTable, fromSparseTable } from "../ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js";
|
|
3
|
+
import { toString, Record } from "../fable_modules/fable-library.4.1.4/Types.js";
|
|
4
|
+
import { record_type, list_type, string_type } from "../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
5
|
+
import { Comment$_$reflection } from "../ISA/ISA/JsonTypes/Comment.js";
|
|
6
|
+
import { Comment_fromString } from "../ISA/ISA.Spreadsheet/Metadata/Comment.js";
|
|
7
|
+
import { SparseRowModule_fromFsRow, SparseRowModule_writeToSheet, SparseRowModule_fromValues, SparseRowModule_tryGetValueAt, SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValueDefault_5BAE6133 } from "../ISA/ISA.Spreadsheet/Metadata/SparseTable.js";
|
|
8
|
+
import { createMissingIdentifier } from "../ISA/ISA/Identifier.js";
|
|
9
|
+
import { addToDict } from "../fable_modules/fable-library.4.1.4/MapUtil.js";
|
|
10
|
+
import { List_distinct } from "../fable_modules/fable-library.4.1.4/Seq2.js";
|
|
11
|
+
import { getEnumerator, stringHash } from "../fable_modules/fable-library.4.1.4/Util.js";
|
|
12
|
+
import { tryPick, iterateIndexed, delay, singleton, append, head, exists, map as map_1 } from "../fable_modules/fable-library.4.1.4/Seq.js";
|
|
13
|
+
import { Person } from "../ISA/ISA/JsonTypes/Person.js";
|
|
14
|
+
import { toArray } from "../fable_modules/fable-library.4.1.4/Option.js";
|
|
15
|
+
import { toRows as toRows_1, fromRows as fromRows_1 } from "../ISA/ISA.Spreadsheet/Metadata/Contacts.js";
|
|
16
|
+
import { parse } from "../fable_modules/fable-library.4.1.4/Guid.js";
|
|
17
|
+
import { Template, Organisation } from "./Templates.js";
|
|
18
|
+
import { FsWorksheet } from "../fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs.js";
|
|
19
|
+
import { printf, toFail } from "../fable_modules/fable-library.4.1.4/String.js";
|
|
20
|
+
import { toFsWorksheet, tryFromFsWorksheet } from "../ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js";
|
|
21
|
+
import { now } from "../fable_modules/fable-library.4.1.4/Date.js";
|
|
22
|
+
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs.js";
|
|
23
|
+
|
|
24
|
+
export const Metadata_ER_labels = ofArray(["ER", "ER Term Accession Number", "ER Term Source REF"]);
|
|
25
|
+
|
|
26
|
+
export function Metadata_ER_fromSparseTable(matrix) {
|
|
27
|
+
return fromSparseTable("ER", "ER Term Source REF", "ER Term Accession Number", matrix);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function Metadata_ER_toSparseTable(designs) {
|
|
31
|
+
return toSparseTable("ER", "ER Term Source REF", "ER Term Accession Number", designs);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function Metadata_ER_fromRows(prefix, rows) {
|
|
35
|
+
const patternInput = fromRows(prefix, "ER", "ER Term Source REF", "ER Term Accession Number", 0, rows);
|
|
36
|
+
return [patternInput[0], patternInput[3]];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function Metadata_ER_toRows(prefix, designs) {
|
|
40
|
+
return toRows(prefix, "ER", "ER Term Source REF", "ER Term Accession Number", designs);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const Metadata_Tags_labels = ofArray(["Tags", "Tags Term Accession Number", "Tags Term Source REF"]);
|
|
44
|
+
|
|
45
|
+
export function Metadata_Tags_fromSparseTable(matrix) {
|
|
46
|
+
return fromSparseTable("Tags", "Tags Term Source REF", "Tags Term Accession Number", matrix);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function Metadata_Tags_toSparseTable(designs) {
|
|
50
|
+
return toSparseTable("Tags", "Tags Term Source REF", "Tags Term Accession Number", designs);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function Metadata_Tags_fromRows(prefix, rows) {
|
|
54
|
+
const patternInput = fromRows(prefix, "Tags", "Tags Term Source REF", "Tags Term Accession Number", 0, rows);
|
|
55
|
+
return [patternInput[0], patternInput[3]];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function Metadata_Tags_toRows(prefix, designs) {
|
|
59
|
+
return toRows(prefix, "Tags", "Tags Term Source REF", "Tags Term Accession Number", designs);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export class Metadata_Template_TemplateInfo extends Record {
|
|
63
|
+
constructor(Id, Name, Version, Description, Organisation, Table, Comments) {
|
|
64
|
+
super();
|
|
65
|
+
this.Id = Id;
|
|
66
|
+
this.Name = Name;
|
|
67
|
+
this.Version = Version;
|
|
68
|
+
this.Description = Description;
|
|
69
|
+
this.Organisation = Organisation;
|
|
70
|
+
this.Table = Table;
|
|
71
|
+
this.Comments = Comments;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function Metadata_Template_TemplateInfo_$reflection() {
|
|
76
|
+
return record_type("ARCtrl.Templates.Spreadsheet.Metadata.Template.TemplateInfo", [], Metadata_Template_TemplateInfo, () => [["Id", string_type], ["Name", string_type], ["Version", string_type], ["Description", string_type], ["Organisation", string_type], ["Table", string_type], ["Comments", list_type(Comment$_$reflection())]]);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function Metadata_Template_TemplateInfo_create(id, name, version, description, organisation, table, comments) {
|
|
80
|
+
return new Metadata_Template_TemplateInfo(id, name, version, description, organisation, table, comments);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function Metadata_Template_TemplateInfo_get_empty() {
|
|
84
|
+
return Metadata_Template_TemplateInfo_create("", "", "", "", "", "", empty());
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function Metadata_Template_TemplateInfo_get_Labels() {
|
|
88
|
+
return ofArray(["Id", "Name", "Version", "Description", "Organisation", "Table"]);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function Metadata_Template_TemplateInfo_FromSparseTable_651559CC(matrix) {
|
|
92
|
+
const comments = map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, 0])), matrix.CommentKeys);
|
|
93
|
+
return Metadata_Template_TemplateInfo_create(SparseTable__TryGetValueDefault_5BAE6133(matrix, createMissingIdentifier(), ["Id", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Name", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Version", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Description", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Organisation", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Table", 0]), comments);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function Metadata_Template_TemplateInfo_ToSparseTable_Z71FCD534(template) {
|
|
97
|
+
let copyOfStruct, copyOfStruct_1;
|
|
98
|
+
const matrix = SparseTable_Create_Z2192E64B(void 0, Metadata_Template_TemplateInfo_get_Labels(), void 0, 2);
|
|
99
|
+
let commentKeys = empty();
|
|
100
|
+
addToDict(matrix.Matrix, ["Id", 1], (((copyOfStruct = template.Id, copyOfStruct)).indexOf("MISSING_IDENTIFIER_") === 0) ? "" : ((copyOfStruct_1 = template.Id, copyOfStruct_1)));
|
|
101
|
+
addToDict(matrix.Matrix, ["Name", 1], template.Name);
|
|
102
|
+
addToDict(matrix.Matrix, ["Version", 1], template.Version);
|
|
103
|
+
addToDict(matrix.Matrix, ["Description", 1], template.Description);
|
|
104
|
+
addToDict(matrix.Matrix, ["Organisation", 1], toString(template.Organisation));
|
|
105
|
+
addToDict(matrix.Matrix, ["Table", 1], template.Table.Name);
|
|
106
|
+
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
107
|
+
Equals: (x, y) => (x === y),
|
|
108
|
+
GetHashCode: stringHash,
|
|
109
|
+
})), matrix.ColumnCount);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function Metadata_Template_TemplateInfo_fromRows_9F97F2A(rows) {
|
|
113
|
+
const tupledArg = SparseTable_FromRows_Z5579EC29(rows, Metadata_Template_TemplateInfo_get_Labels(), 0);
|
|
114
|
+
return [tupledArg[0], Metadata_Template_TemplateInfo_FromSparseTable_651559CC(tupledArg[3])];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function Metadata_Template_TemplateInfo_toRows_Z71FCD534(template) {
|
|
118
|
+
return SparseTable_ToRows_6A3D4534(Metadata_Template_TemplateInfo_ToSparseTable_Z71FCD534(template));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function Metadata_Template_mapDeprecatedKeys(rows) {
|
|
122
|
+
const s = map_1((r) => map_1((tupledArg) => {
|
|
123
|
+
const k = tupledArg[0] | 0;
|
|
124
|
+
const v = tupledArg[1];
|
|
125
|
+
if (k === 0) {
|
|
126
|
+
switch (v) {
|
|
127
|
+
case "#AUTHORS list":
|
|
128
|
+
return [k, "AUTHORS"];
|
|
129
|
+
case "#ER list":
|
|
130
|
+
return [k, "ERS"];
|
|
131
|
+
case "#TAGS list":
|
|
132
|
+
return [k, "TAGS"];
|
|
133
|
+
case "Authors ORCID":
|
|
134
|
+
return [k, `Comment[${Person.orcidKey}]`];
|
|
135
|
+
case "Authors Last Name":
|
|
136
|
+
return [k, "Author Last Name"];
|
|
137
|
+
case "Authors First Name":
|
|
138
|
+
return [k, "Author First Name"];
|
|
139
|
+
case "Authors Mid Initials":
|
|
140
|
+
return [k, "Author Mid Initials"];
|
|
141
|
+
case "Authors Email":
|
|
142
|
+
return [k, "Author Email"];
|
|
143
|
+
case "Authors Phone":
|
|
144
|
+
return [k, "Author Phone"];
|
|
145
|
+
case "Authors Fax":
|
|
146
|
+
return [k, "Author Fax"];
|
|
147
|
+
case "Authors Address":
|
|
148
|
+
return [k, "Author Address"];
|
|
149
|
+
case "Authors Affiliation":
|
|
150
|
+
return [k, "Author Affiliation"];
|
|
151
|
+
case "Authors Role":
|
|
152
|
+
return [k, "Author Roles"];
|
|
153
|
+
case "Authors Role Term Accession Number":
|
|
154
|
+
return [k, "Author Roles Term Accession Number"];
|
|
155
|
+
case "Authors Role Term Source REF":
|
|
156
|
+
return [k, "Author Roles Term Source REF"];
|
|
157
|
+
default:
|
|
158
|
+
return [k, v];
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
return [k, v];
|
|
163
|
+
}
|
|
164
|
+
}, r), rows);
|
|
165
|
+
if (exists((v_32) => (v_32 === "TEMPLATE"), toArray(SparseRowModule_tryGetValueAt(0, head(s))))) {
|
|
166
|
+
return s;
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
return append(singleton(SparseRowModule_fromValues(["TEMPLATE"])), s);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function Metadata_Template_fromRows(rows) {
|
|
174
|
+
const loop = (en_mut, lastLine_mut, templateInfo_mut, ers_mut, tags_mut, authors_mut) => {
|
|
175
|
+
loop:
|
|
176
|
+
while (true) {
|
|
177
|
+
const en = en_mut, lastLine = lastLine_mut, templateInfo = templateInfo_mut, ers = ers_mut, tags = tags_mut, authors = authors_mut;
|
|
178
|
+
let matchResult, k_3, k_4, k_5, k_6;
|
|
179
|
+
if (lastLine != null) {
|
|
180
|
+
switch (lastLine) {
|
|
181
|
+
case "ERS": {
|
|
182
|
+
matchResult = 0;
|
|
183
|
+
k_3 = lastLine;
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
case "TAGS": {
|
|
187
|
+
matchResult = 1;
|
|
188
|
+
k_4 = lastLine;
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
case "AUTHORS": {
|
|
192
|
+
matchResult = 2;
|
|
193
|
+
k_5 = lastLine;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
default: {
|
|
197
|
+
matchResult = 3;
|
|
198
|
+
k_6 = lastLine;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
matchResult = 3;
|
|
204
|
+
k_6 = lastLine;
|
|
205
|
+
}
|
|
206
|
+
switch (matchResult) {
|
|
207
|
+
case 0: {
|
|
208
|
+
const patternInput = Metadata_ER_fromRows(void 0, en);
|
|
209
|
+
en_mut = en;
|
|
210
|
+
lastLine_mut = patternInput[0];
|
|
211
|
+
templateInfo_mut = templateInfo;
|
|
212
|
+
ers_mut = append_1(ers, patternInput[1]);
|
|
213
|
+
tags_mut = tags;
|
|
214
|
+
authors_mut = authors;
|
|
215
|
+
continue loop;
|
|
216
|
+
}
|
|
217
|
+
case 1: {
|
|
218
|
+
const patternInput_1 = Metadata_Tags_fromRows(void 0, en);
|
|
219
|
+
en_mut = en;
|
|
220
|
+
lastLine_mut = patternInput_1[0];
|
|
221
|
+
templateInfo_mut = templateInfo;
|
|
222
|
+
ers_mut = ers;
|
|
223
|
+
tags_mut = append_1(tags, patternInput_1[1]);
|
|
224
|
+
authors_mut = authors;
|
|
225
|
+
continue loop;
|
|
226
|
+
}
|
|
227
|
+
case 2: {
|
|
228
|
+
const patternInput_2 = fromRows_1("Author", 0, en);
|
|
229
|
+
en_mut = en;
|
|
230
|
+
lastLine_mut = patternInput_2[0];
|
|
231
|
+
templateInfo_mut = templateInfo;
|
|
232
|
+
ers_mut = ers;
|
|
233
|
+
tags_mut = tags;
|
|
234
|
+
authors_mut = append_1(authors, patternInput_2[3]);
|
|
235
|
+
continue loop;
|
|
236
|
+
}
|
|
237
|
+
default:
|
|
238
|
+
return [templateInfo, ers, tags, authors];
|
|
239
|
+
}
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
const en_1 = getEnumerator(Metadata_Template_mapDeprecatedKeys(rows));
|
|
244
|
+
en_1["System.Collections.IEnumerator.MoveNext"]();
|
|
245
|
+
const patternInput_3 = Metadata_Template_TemplateInfo_fromRows_9F97F2A(en_1);
|
|
246
|
+
return loop(en_1, patternInput_3[0], patternInput_3[1], empty(), empty(), empty());
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export function Metadata_Template_toRows(template) {
|
|
250
|
+
return delay(() => append(singleton(SparseRowModule_fromValues(["TEMPLATE"])), delay(() => append(Metadata_Template_TemplateInfo_toRows_Z71FCD534(template), delay(() => append(singleton(SparseRowModule_fromValues(["ERS"])), delay(() => append(Metadata_ER_toRows(void 0, ofArray(template.EndpointRepositories)), delay(() => append(singleton(SparseRowModule_fromValues(["TAGS"])), delay(() => append(Metadata_Tags_toRows(void 0, ofArray(template.Tags)), delay(() => append(singleton(SparseRowModule_fromValues(["AUTHORS"])), delay(() => toRows_1("Author", ofArray(template.Authors)))))))))))))))));
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export function Template_fromParts(templateInfo, ers, tags, authors, table, lastUpdated) {
|
|
254
|
+
const arg = parse(templateInfo.Id);
|
|
255
|
+
const arg_4 = Organisation.ofString(templateInfo.Organisation);
|
|
256
|
+
const arg_6 = toArray_1(authors);
|
|
257
|
+
const arg_7 = toArray_1(ers);
|
|
258
|
+
const arg_8 = toArray_1(tags);
|
|
259
|
+
return Template.make(arg, table, templateInfo.Name, templateInfo.Description, arg_4, templateInfo.Version, arg_6, arg_7, arg_8, lastUpdated);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export function Template_toMetadataSheet(template) {
|
|
263
|
+
const sheet = new FsWorksheet("isa_template");
|
|
264
|
+
iterateIndexed((rowI, r) => {
|
|
265
|
+
SparseRowModule_writeToSheet(rowI + 1, r, sheet);
|
|
266
|
+
}, Metadata_Template_toRows(template));
|
|
267
|
+
return sheet;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export function Template_fromMetadataSheet(sheet) {
|
|
271
|
+
return Metadata_Template_fromRows(map_1(SparseRowModule_fromFsRow, sheet.Rows));
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Reads an assay from a spreadsheet
|
|
276
|
+
*/
|
|
277
|
+
export function Template_fromFsWorkbook(doc) {
|
|
278
|
+
let matchValue_2, matchValue_4, ws_3, matchValue_5, arg_1, ws_2, matchValue_3, arg;
|
|
279
|
+
let patternInput;
|
|
280
|
+
const matchValue = doc.TryGetWorksheetByName("isa_template");
|
|
281
|
+
if (matchValue == null) {
|
|
282
|
+
const matchValue_1 = doc.TryGetWorksheetByName("SwateTemplateMetadata");
|
|
283
|
+
patternInput = ((matchValue_1 == null) ? [Metadata_Template_TemplateInfo_get_empty(), empty(), empty(), empty()] : Template_fromMetadataSheet(matchValue_1));
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
patternInput = Template_fromMetadataSheet(matchValue);
|
|
287
|
+
}
|
|
288
|
+
const templateInfo = patternInput[0];
|
|
289
|
+
const sheets = doc.GetWorksheets();
|
|
290
|
+
return Template_fromParts(templateInfo, patternInput[1], patternInput[2], patternInput[3], (matchValue_2 = tryPick((ws) => {
|
|
291
|
+
if (exists((t) => (t.Name === templateInfo.Table), ws.Tables)) {
|
|
292
|
+
return ws;
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
return void 0;
|
|
296
|
+
}
|
|
297
|
+
}, sheets), (matchValue_2 == null) ? ((matchValue_4 = tryPick((ws_1) => {
|
|
298
|
+
if (ws_1.Name === templateInfo.Table) {
|
|
299
|
+
return ws_1;
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
return void 0;
|
|
303
|
+
}
|
|
304
|
+
}, sheets), (matchValue_4 == null) ? toFail(printf("No worksheet with name %s found"))(templateInfo.Table) : ((ws_3 = matchValue_4, (matchValue_5 = tryFromFsWorksheet(ws_3), (matchValue_5 == null) ? ((arg_1 = ws_3.Name, toFail(printf("Ws with name %s could not be converted to a table"))(arg_1))) : matchValue_5))))) : ((ws_2 = matchValue_2, (matchValue_3 = tryFromFsWorksheet(ws_2), (matchValue_3 == null) ? ((arg = ws_2.Name, toFail(printf("Ws with name %s could not be converted to a table"))(arg))) : matchValue_3)))), now());
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export function Template_toFsWorkbook(template) {
|
|
308
|
+
const doc = new FsWorkbook();
|
|
309
|
+
const metaDataSheet = Template_toMetadataSheet(template);
|
|
310
|
+
doc.AddWorksheet(metaDataSheet);
|
|
311
|
+
const arg = toFsWorksheet(template.Table);
|
|
312
|
+
doc.AddWorksheet(arg);
|
|
313
|
+
return doc;
|
|
314
|
+
}
|
|
315
|
+
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { identityHash, safeHash, stringHash, equals } from "../fable_modules/fable-library.4.1.4/Util.js";
|
|
2
|
+
import { Union } from "../fable_modules/fable-library.4.1.4/Types.js";
|
|
3
|
+
import { class_type, union_type, string_type } from "../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
4
|
+
import { defaultArg, unwrap } from "../fable_modules/fable-library.4.1.4/Option.js";
|
|
5
|
+
import { newGuid } from "../fable_modules/fable-library.4.1.4/Guid.js";
|
|
6
|
+
import { ArcTable } from "../ISA/ISA/ArcTypes/ArcTable.js";
|
|
7
|
+
import { SemVer_tryOfString_Z721C83C5 } from "../SemVer.js";
|
|
8
|
+
import { equalsWith } from "../fable_modules/fable-library.4.1.4/Array.js";
|
|
9
|
+
import { toUniversalTime, now, equals as equals_1 } from "../fable_modules/fable-library.4.1.4/Date.js";
|
|
10
|
+
|
|
11
|
+
export class Organisation extends Union {
|
|
12
|
+
constructor(tag, fields) {
|
|
13
|
+
super();
|
|
14
|
+
this.tag = tag;
|
|
15
|
+
this.fields = fields;
|
|
16
|
+
}
|
|
17
|
+
cases() {
|
|
18
|
+
return ["DataPLANT", "Other"];
|
|
19
|
+
}
|
|
20
|
+
static ofString(str) {
|
|
21
|
+
return (str.toLocaleLowerCase() === "dataplant") ? (new Organisation(0, [])) : (new Organisation(1, [str]));
|
|
22
|
+
}
|
|
23
|
+
toString() {
|
|
24
|
+
const this$ = this;
|
|
25
|
+
return (this$.tag === 1) ? this$.fields[0] : "DataPLANT";
|
|
26
|
+
}
|
|
27
|
+
IsOfficial() {
|
|
28
|
+
const this$ = this;
|
|
29
|
+
return equals(this$, new Organisation(0, []));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function Organisation_$reflection() {
|
|
34
|
+
return union_type("ARCtrl.Templates.Organisation", [], Organisation, () => [[], [["Item", string_type]]]);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class Template {
|
|
38
|
+
constructor(id, table, name, description, organisation, version, authors, repos, tags, lastUpdated) {
|
|
39
|
+
let copyOfStruct;
|
|
40
|
+
const name_1 = defaultArg(name, "");
|
|
41
|
+
const description_1 = defaultArg(description, "");
|
|
42
|
+
const organisation_1 = defaultArg(organisation, new Organisation(1, ["Custom Organisation"]));
|
|
43
|
+
const version_1 = defaultArg(version, "0.0.0");
|
|
44
|
+
const authors_1 = defaultArg(authors, []);
|
|
45
|
+
const repos_1 = defaultArg(repos, []);
|
|
46
|
+
const tags_1 = defaultArg(tags, []);
|
|
47
|
+
const lastUpdated_1 = defaultArg(lastUpdated, (copyOfStruct = now(), toUniversalTime(copyOfStruct)));
|
|
48
|
+
this["Id@"] = id;
|
|
49
|
+
this["Table@"] = table;
|
|
50
|
+
this["Name@"] = name_1;
|
|
51
|
+
this["Description@"] = description_1;
|
|
52
|
+
this["Organisation@"] = organisation_1;
|
|
53
|
+
this["Version@"] = version_1;
|
|
54
|
+
this["Authors@"] = authors_1;
|
|
55
|
+
this["EndpointRepositories@"] = repos_1;
|
|
56
|
+
this["Tags@"] = tags_1;
|
|
57
|
+
this["LastUpdated@"] = lastUpdated_1;
|
|
58
|
+
}
|
|
59
|
+
get Id() {
|
|
60
|
+
const __ = this;
|
|
61
|
+
return __["Id@"];
|
|
62
|
+
}
|
|
63
|
+
set Id(v) {
|
|
64
|
+
const __ = this;
|
|
65
|
+
__["Id@"] = v;
|
|
66
|
+
}
|
|
67
|
+
get Table() {
|
|
68
|
+
const __ = this;
|
|
69
|
+
return __["Table@"];
|
|
70
|
+
}
|
|
71
|
+
set Table(v) {
|
|
72
|
+
const __ = this;
|
|
73
|
+
__["Table@"] = v;
|
|
74
|
+
}
|
|
75
|
+
get Name() {
|
|
76
|
+
const __ = this;
|
|
77
|
+
return __["Name@"];
|
|
78
|
+
}
|
|
79
|
+
set Name(v) {
|
|
80
|
+
const __ = this;
|
|
81
|
+
__["Name@"] = v;
|
|
82
|
+
}
|
|
83
|
+
get Description() {
|
|
84
|
+
const __ = this;
|
|
85
|
+
return __["Description@"];
|
|
86
|
+
}
|
|
87
|
+
set Description(v) {
|
|
88
|
+
const __ = this;
|
|
89
|
+
__["Description@"] = v;
|
|
90
|
+
}
|
|
91
|
+
get Organisation() {
|
|
92
|
+
const __ = this;
|
|
93
|
+
return __["Organisation@"];
|
|
94
|
+
}
|
|
95
|
+
set Organisation(v) {
|
|
96
|
+
const __ = this;
|
|
97
|
+
__["Organisation@"] = v;
|
|
98
|
+
}
|
|
99
|
+
get Version() {
|
|
100
|
+
const __ = this;
|
|
101
|
+
return __["Version@"];
|
|
102
|
+
}
|
|
103
|
+
set Version(v) {
|
|
104
|
+
const __ = this;
|
|
105
|
+
__["Version@"] = v;
|
|
106
|
+
}
|
|
107
|
+
get Authors() {
|
|
108
|
+
const __ = this;
|
|
109
|
+
return __["Authors@"];
|
|
110
|
+
}
|
|
111
|
+
set Authors(v) {
|
|
112
|
+
const __ = this;
|
|
113
|
+
__["Authors@"] = v;
|
|
114
|
+
}
|
|
115
|
+
get EndpointRepositories() {
|
|
116
|
+
const __ = this;
|
|
117
|
+
return __["EndpointRepositories@"];
|
|
118
|
+
}
|
|
119
|
+
set EndpointRepositories(v) {
|
|
120
|
+
const __ = this;
|
|
121
|
+
__["EndpointRepositories@"] = v;
|
|
122
|
+
}
|
|
123
|
+
get Tags() {
|
|
124
|
+
const __ = this;
|
|
125
|
+
return __["Tags@"];
|
|
126
|
+
}
|
|
127
|
+
set Tags(v) {
|
|
128
|
+
const __ = this;
|
|
129
|
+
__["Tags@"] = v;
|
|
130
|
+
}
|
|
131
|
+
get LastUpdated() {
|
|
132
|
+
const __ = this;
|
|
133
|
+
return __["LastUpdated@"];
|
|
134
|
+
}
|
|
135
|
+
set LastUpdated(v) {
|
|
136
|
+
const __ = this;
|
|
137
|
+
__["LastUpdated@"] = v;
|
|
138
|
+
}
|
|
139
|
+
static make(id, table, name, description, organisation, version, authors, repos, tags, lastUpdated) {
|
|
140
|
+
return new Template(id, table, name, description, organisation, version, authors, repos, tags, lastUpdated);
|
|
141
|
+
}
|
|
142
|
+
static create(id, table, name, description, organisation, version, authors, repos, tags, lastUpdated) {
|
|
143
|
+
return new Template(id, table, unwrap(name), unwrap(description), unwrap(organisation), unwrap(version), unwrap(authors), unwrap(repos), unwrap(tags), unwrap(lastUpdated));
|
|
144
|
+
}
|
|
145
|
+
static init(templateName) {
|
|
146
|
+
return new Template(newGuid(), ArcTable.init(templateName), templateName);
|
|
147
|
+
}
|
|
148
|
+
get SemVer() {
|
|
149
|
+
const this$ = this;
|
|
150
|
+
return unwrap(SemVer_tryOfString_Z721C83C5(this$.Version));
|
|
151
|
+
}
|
|
152
|
+
ReferenceEquals(other) {
|
|
153
|
+
const this$ = this;
|
|
154
|
+
return this$ === other;
|
|
155
|
+
}
|
|
156
|
+
StructurallyEquals(other) {
|
|
157
|
+
const this$ = this;
|
|
158
|
+
return ((((((((this$.Id === other.Id) && equals(this$.Table, other.Table)) && (this$.Name === other.Name)) && equals(this$.Organisation, other.Organisation)) && (this$.Version === other.Version)) && equalsWith(equals, this$.Authors, other.Authors)) && equalsWith(equals, this$.EndpointRepositories, other.EndpointRepositories)) && equalsWith(equals, this$.Tags, other.Tags)) && equals_1(this$.LastUpdated, other.LastUpdated);
|
|
159
|
+
}
|
|
160
|
+
Equals(other) {
|
|
161
|
+
let template;
|
|
162
|
+
const this$ = this;
|
|
163
|
+
return (other instanceof Template) && ((template = other, this$.StructurallyEquals(template)));
|
|
164
|
+
}
|
|
165
|
+
GetHashCode() {
|
|
166
|
+
let copyOfStruct, copyOfStruct_1;
|
|
167
|
+
const this$ = this;
|
|
168
|
+
return ((((((((((copyOfStruct = this$.Id, stringHash(copyOfStruct))) + safeHash(this$.Table)) + stringHash(this$.Name)) + safeHash(this$.Organisation)) + stringHash(this$.Version)) + identityHash(this$.Authors)) + identityHash(this$.EndpointRepositories)) + identityHash(this$.Tags)) + ((copyOfStruct_1 = this$.LastUpdated, safeHash(copyOfStruct_1)))) | 0;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function Template_$reflection() {
|
|
173
|
+
return class_type("ARCtrl.Templates.Template", void 0, Template);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function Template_$ctor_67157A5B(id, table, name, description, organisation, version, authors, repos, tags, lastUpdated) {
|
|
177
|
+
return new Template(id, table, name, description, organisation, version, authors, repos, tags, lastUpdated);
|
|
178
|
+
}
|
|
179
|
+
|