@nfdi4plants/arctrl 2.0.0-alpha.2 → 2.0.0-alpha.4

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.
Files changed (115) hide show
  1. package/ARC.js +110 -15
  2. package/Contract/ARC.js +9 -1
  3. package/Contract/Datamap.js +180 -0
  4. package/Core/ArcTypes.js +148 -121
  5. package/Core/Conversion.js +99 -67
  6. package/Core/Data.js +119 -0
  7. package/Core/{Process/DataFile.js → DataFile.js} +3 -3
  8. package/Core/Helper/Identifier.js +40 -0
  9. package/Core/OntologyAnnotation.js +14 -4
  10. package/Core/Process/ColumnIndex.js +13 -3
  11. package/Core/Process/ProcessInput.js +5 -5
  12. package/Core/Process/ProcessOutput.js +5 -5
  13. package/Core/Process/Value.js +1 -1
  14. package/Core/Table/ArcTableAux.js +14 -3
  15. package/Core/Table/CompositeCell.js +67 -10
  16. package/Core/Table/CompositeColumn.js +9 -0
  17. package/Core/Table/CompositeHeader.js +58 -68
  18. package/Core/Table/DataMap.js +166 -0
  19. package/FileSystem/FileSystemTree.js +18 -4
  20. package/Json/Assay.js +4 -4
  21. package/Json/Process/Data.js +56 -18
  22. package/Json/Process/DataFile.js +5 -5
  23. package/Json/Process/PropertyValue.js +126 -5
  24. package/Json/Study.js +6 -6
  25. package/Json/Table/CompositeCell.js +7 -6
  26. package/Spreadsheet/AnnotationTable/ArcTable.js +9 -13
  27. package/Spreadsheet/AnnotationTable/CompositeCell.js +32 -50
  28. package/Spreadsheet/AnnotationTable/CompositeColumn.js +16 -10
  29. package/Spreadsheet/AnnotationTable/CompositeHeader.js +262 -143
  30. package/Spreadsheet/ArcAssay.js +2 -2
  31. package/Spreadsheet/ArcInvestigation.js +2 -2
  32. package/Spreadsheet/ArcStudy.js +2 -2
  33. package/Spreadsheet/DataMap.js +31 -0
  34. package/Spreadsheet/DataMapTable/DataMapColumn.js +36 -0
  35. package/Spreadsheet/DataMapTable/DataMapHeader.js +417 -0
  36. package/Spreadsheet/DataMapTable/DataMapTable.js +98 -0
  37. package/Spreadsheet/Metadata/Assays.js +2 -2
  38. package/Spreadsheet/Metadata/SparseTable.js +7 -7
  39. package/Spreadsheet/Metadata/Study.js +1 -1
  40. package/Spreadsheet/Template.js +2 -2
  41. package/Xlsx.js +29 -6
  42. package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsSpreadsheet.fableproj +9 -3
  43. package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsWorksheet.fs +1 -0
  44. package/fable_modules/FsSpreadsheet.6.1.2/Json/Cell.fs +23 -0
  45. package/fable_modules/FsSpreadsheet.6.1.2/Json/Cell.fs.js +21 -0
  46. package/fable_modules/FsSpreadsheet.6.1.2/Json/Row.fs +23 -0
  47. package/fable_modules/FsSpreadsheet.6.1.2/Json/Row.fs.js +19 -0
  48. package/fable_modules/FsSpreadsheet.6.1.2/Json/Table.fs +24 -0
  49. package/fable_modules/FsSpreadsheet.6.1.2/Json/Table.fs.js +15 -0
  50. package/fable_modules/FsSpreadsheet.6.1.2/Json/Value.fs +70 -0
  51. package/fable_modules/FsSpreadsheet.6.1.2/Json/Value.fs.js +48 -0
  52. package/fable_modules/FsSpreadsheet.6.1.2/Json/Workbook.fs +20 -0
  53. package/fable_modules/FsSpreadsheet.6.1.2/Json/Workbook.fs.js +21 -0
  54. package/fable_modules/FsSpreadsheet.6.1.2/Json/Worksheet.fs +49 -0
  55. package/fable_modules/FsSpreadsheet.6.1.2/Json/Worksheet.fs.js +44 -0
  56. package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
  57. package/fable_modules/project_cracked.json +1 -1
  58. package/package.json +1 -1
  59. package/Core/Process/Data.js +0 -55
  60. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Cells/FsCell.fs +0 -0
  61. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Cells/FsCell.fs.js +0 -0
  62. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Cells/FsCellsCollection.fs +0 -0
  63. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Cells/FsCellsCollection.fs.js +0 -0
  64. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/CellBuilder.fs +0 -0
  65. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/CellBuilder.fs.js +0 -0
  66. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/ColumnBuilder.fs +0 -0
  67. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/ColumnBuilder.fs.js +0 -0
  68. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/DSL.fs +0 -0
  69. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/DSL.fs.js +0 -0
  70. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/Expression.fs +0 -0
  71. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/Expression.fs.js +0 -0
  72. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/Operators.fs +0 -0
  73. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/Operators.fs.js +0 -0
  74. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/RowBuilder.fs +0 -0
  75. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/RowBuilder.fs.js +0 -0
  76. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/SheetBuilder.fs +0 -0
  77. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/SheetBuilder.fs.js +0 -0
  78. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/TableBuilder.fs +0 -0
  79. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/TableBuilder.fs.js +0 -0
  80. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/Transform.fs +0 -0
  81. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/Transform.fs.js +0 -0
  82. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/Types.fs +0 -0
  83. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/Types.fs.js +0 -0
  84. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/WorkbookBuilder.fs +0 -0
  85. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/DSL/WorkbookBuilder.fs.js +0 -0
  86. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsAddress.fs +0 -0
  87. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsAddress.fs.js +0 -0
  88. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsColumn.fs +0 -0
  89. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsColumn.fs.js +0 -0
  90. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsRow.fs +0 -0
  91. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsRow.fs.js +0 -0
  92. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsWorkbook.fs +0 -0
  93. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsWorkbook.fs.js +0 -0
  94. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/FsWorksheet.fs.js +0 -0
  95. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRange.fs +0 -0
  96. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRange.fs.js +0 -0
  97. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRangeAddress.fs +0 -0
  98. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRangeAddress.fs.js +0 -0
  99. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRangeBase.fs +0 -0
  100. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRangeBase.fs.js +0 -0
  101. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRangeColumn.fs +0 -0
  102. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRangeColumn.fs.js +0 -0
  103. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRangeRow.fs +0 -0
  104. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Ranges/FsRangeRow.fs.js +0 -0
  105. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/SheetBuilder.fs +0 -0
  106. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/SheetBuilder.fs.js +0 -0
  107. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Tables/FsTable.fs +0 -0
  108. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Tables/FsTable.fs.js +0 -0
  109. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Tables/FsTableField.fs +0 -0
  110. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Tables/FsTableField.fs.js +0 -0
  111. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Tables/FsTableRow.fs +0 -0
  112. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/Tables/FsTableRow.fs.js +0 -0
  113. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  114. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
  115. /package/fable_modules/{FsSpreadsheet.5.1.3 → FsSpreadsheet.6.1.2}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
@@ -3,7 +3,7 @@ import { Comment$ } from "./Comment.js";
3
3
  import { zip as zip_1, fold, empty as empty_1, singleton as singleton_1, append, delay, map as map_1, filter, toList, indexed, tryPick, choose } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
4
4
  import { unwrap, value as value_9, map, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
5
5
  import { Option_fromValueWithDefault, ResizeArray_filter } from "./Helper/Collections.js";
6
- import { Value as Value_1 } from "./Process/Value.js";
6
+ import { Value as Value_2 } from "./Process/Value.js";
7
7
  import { Component_create_4208F9FC } from "./Process/Component.js";
8
8
  import { ProtocolParameter } from "./Process/ProtocolParameter.js";
9
9
  import { ProcessParameterValue } from "./Process/ProcessParameterValue.js";
@@ -12,13 +12,13 @@ import { Factor } from "./Process/Factor.js";
12
12
  import { toString } from "../fable_modules/fable-library-js.4.16.0/Types.js";
13
13
  import { MaterialAttributeValue_create_BE8DE56 } from "./Process/MaterialAttributeValue.js";
14
14
  import { MaterialAttribute_create_A220A8A } from "./Process/MaterialAttribute.js";
15
- import { ProcessInput_getCharacteristicValues_5B3D5BA9, ProcessInput__isMaterial, ProcessInput__isData, ProcessInput_setCharacteristicValues, ProcessInput__get_Name, ProcessInput__isSource, ProcessInput__isSample, ProcessInput, ProcessInput_createDerivedData_Z721C83C5, ProcessInput_createRawData_Z721C83C5, ProcessInput_createImageFile_Z721C83C5, ProcessInput_createMaterial_4452CB4C, ProcessInput_createSample_Z598187B7, ProcessInput_createSource_Z5E00540E } from "./Process/ProcessInput.js";
16
- import { ProcessOutput_getFactorValues_Z42C11600, ProcessOutput__isMaterial, ProcessOutput__isData, ProcessOutput_setFactorValues, ProcessOutput__get_Name, ProcessOutput__isSample, ProcessOutput, ProcessOutput_createDerivedData_Z721C83C5, ProcessOutput_createRawData_Z721C83C5, ProcessOutput_createImageFile_Z721C83C5, ProcessOutput_createMaterial_4452CB4C, ProcessOutput_createSample_Z598187B7 } from "./Process/ProcessOutput.js";
15
+ import { ProcessInput_getCharacteristicValues_5B3D5BA9, ProcessInput__isMaterial, ProcessInput__isData, ProcessInput_setCharacteristicValues, ProcessInput__get_Name, ProcessInput__isSource, ProcessInput__isSample, ProcessInput, ProcessInput_createRawData_Z721C83C5, ProcessInput_createMaterial_4452CB4C, ProcessInput_createSample_Z598187B7, ProcessInput_createSource_Z5E00540E } from "./Process/ProcessInput.js";
16
+ import { ProcessOutput_getFactorValues_Z42C11600, ProcessOutput__isMaterial, ProcessOutput__isData, ProcessOutput_setFactorValues, ProcessOutput__get_Name, ProcessOutput__isSample, ProcessOutput, ProcessOutput_createRawData_Z721C83C5, ProcessOutput_createMaterial_4452CB4C, ProcessOutput_createSample_Z598187B7 } from "./Process/ProcessOutput.js";
17
17
  import { CompositeCell } from "./Table/CompositeCell.js";
18
+ import { OntologyAnnotation } from "./OntologyAnnotation.js";
18
19
  import { safeHash, equals, disposeSafe, getEnumerator, comparePrimitives, arrayHash, equalArrays, stringHash, int32ToString } from "../fable_modules/fable-library-js.4.16.0/Util.js";
19
20
  import { IOType, CompositeHeader } from "./Table/CompositeHeader.js";
20
21
  import { ActivePatterns_$007CRegex$007C_$007C } from "./Helper/Regex.js";
21
- import { OntologyAnnotation } from "./OntologyAnnotation.js";
22
22
  import { ARCtrl_Process_Component__Component_TryGetColumnIndex, ARCtrl_Process_ProtocolParameter__ProtocolParameter_TryGetColumnIndex, tryGetFactorColumnIndex, tryGetCharacteristicColumnIndex, tryGetComponentIndex, tryGetParameterColumnIndex, ARCtrl_OntologyAnnotation__OntologyAnnotation_setColumnIndex_Static, ARCtrl_OntologyAnnotation__OntologyAnnotation_SetColumnIndex_Z524259A4 } from "./Process/ColumnIndex.js";
23
23
  import { getItemFromDict } from "../fable_modules/fable-library-js.4.16.0/MapUtil.js";
24
24
  import { initialize, zip, append as append_1, sortBy, head, tryPick as tryPick_1, collect, mapIndexed, item, length, map as map_2, empty, ofArray, isEmpty, singleton, choose as choose_1 } from "../fable_modules/fable-library-js.4.16.0/List.js";
@@ -118,11 +118,23 @@ export function Person_setCommentFromORCID(person) {
118
118
  export function JsonTypes_valueOfCell(value) {
119
119
  switch (value.tag) {
120
120
  case 0:
121
- return [new Value_1(0, [value.fields[0]]), void 0];
121
+ if (value.fields[0].isEmpty()) {
122
+ return [void 0, void 0];
123
+ }
124
+ else {
125
+ return [new Value_2(0, [value.fields[0]]), void 0];
126
+ }
122
127
  case 2:
123
- return [Value_1.fromString(value.fields[0]), value.fields[1]];
128
+ return [(value.fields[0] === "") ? void 0 : Value_2.fromString(value.fields[0]), value.fields[1].isEmpty() ? void 0 : value.fields[1]];
129
+ case 3:
130
+ throw new Error("Data cell should not be parsed to isa value");
124
131
  default:
125
- return [Value_1.fromString(value.fields[0]), void 0];
132
+ if (value.fields[0] === "") {
133
+ return [void 0, void 0];
134
+ }
135
+ else {
136
+ return [Value_2.fromString(value.fields[0]), void 0];
137
+ }
126
138
  }
127
139
  }
128
140
 
@@ -131,7 +143,7 @@ export function JsonTypes_valueOfCell(value) {
131
143
  */
132
144
  export function JsonTypes_composeComponent(header, value) {
133
145
  const patternInput = JsonTypes_valueOfCell(value);
134
- return Component_create_4208F9FC(patternInput[0], unwrap(patternInput[1]), header.ToTerm());
146
+ return Component_create_4208F9FC(unwrap(patternInput[0]), unwrap(patternInput[1]), header.ToTerm());
135
147
  }
136
148
 
137
149
  /**
@@ -140,7 +152,7 @@ export function JsonTypes_composeComponent(header, value) {
140
152
  export function JsonTypes_composeParameterValue(header, value) {
141
153
  const patternInput = JsonTypes_valueOfCell(value);
142
154
  const p = ProtocolParameter.create(void 0, header.ToTerm());
143
- return ProcessParameterValue.create(p, patternInput[0], unwrap(patternInput[1]));
155
+ return ProcessParameterValue.create(p, unwrap(patternInput[0]), unwrap(patternInput[1]));
144
156
  }
145
157
 
146
158
  /**
@@ -148,7 +160,7 @@ export function JsonTypes_composeParameterValue(header, value) {
148
160
  */
149
161
  export function JsonTypes_composeFactorValue(header, value) {
150
162
  const patternInput = JsonTypes_valueOfCell(value);
151
- return FactorValue_create_29259B2C(void 0, Factor.create(toString(header), header.ToTerm()), patternInput[0], unwrap(patternInput[1]));
163
+ return FactorValue_create_29259B2C(void 0, Factor.create(toString(header), header.ToTerm()), unwrap(patternInput[0]), unwrap(patternInput[1]));
152
164
  }
153
165
 
154
166
  /**
@@ -156,7 +168,7 @@ export function JsonTypes_composeFactorValue(header, value) {
156
168
  */
157
169
  export function JsonTypes_composeCharacteristicValue(header, value) {
158
170
  const patternInput = JsonTypes_valueOfCell(value);
159
- return MaterialAttributeValue_create_BE8DE56(void 0, MaterialAttribute_create_A220A8A(void 0, header.ToTerm()), patternInput[0], unwrap(patternInput[1]));
171
+ return MaterialAttributeValue_create_BE8DE56(void 0, MaterialAttribute_create_A220A8A(void 0, header.ToTerm()), unwrap(patternInput[0]), unwrap(patternInput[1]));
160
172
  }
161
173
 
162
174
  /**
@@ -174,28 +186,20 @@ export function JsonTypes_composeProcessInput(header, value) {
174
186
  matchResult = 1;
175
187
  break;
176
188
  }
177
- case 5: {
189
+ case 3: {
178
190
  matchResult = 2;
179
191
  break;
180
192
  }
181
- case 4: {
182
- matchResult = 3;
183
- break;
184
- }
185
193
  case 2: {
186
- matchResult = 4;
187
- break;
188
- }
189
- case 3: {
190
- matchResult = 5;
194
+ matchResult = 3;
191
195
  break;
192
196
  }
193
197
  default:
194
- matchResult = 6;
198
+ matchResult = 4;
195
199
  }
196
200
  }
197
201
  else {
198
- matchResult = 6;
202
+ matchResult = 4;
199
203
  }
200
204
  switch (matchResult) {
201
205
  case 0:
@@ -205,11 +209,7 @@ export function JsonTypes_composeProcessInput(header, value) {
205
209
  case 2:
206
210
  return ProcessInput_createMaterial_4452CB4C(toString(value));
207
211
  case 3:
208
- return ProcessInput_createImageFile_Z721C83C5(toString(value));
209
- case 4:
210
212
  return ProcessInput_createRawData_Z721C83C5(toString(value));
211
- case 5:
212
- return ProcessInput_createDerivedData_Z721C83C5(toString(value));
213
213
  default:
214
214
  return toFail(printf("Could not parse input header %O"))(header);
215
215
  }
@@ -226,28 +226,20 @@ export function JsonTypes_composeProcessOutput(header, value) {
226
226
  matchResult = 0;
227
227
  break;
228
228
  }
229
- case 5: {
229
+ case 3: {
230
230
  matchResult = 1;
231
231
  break;
232
232
  }
233
- case 4: {
234
- matchResult = 2;
235
- break;
236
- }
237
233
  case 2: {
238
- matchResult = 3;
239
- break;
240
- }
241
- case 3: {
242
- matchResult = 4;
234
+ matchResult = 2;
243
235
  break;
244
236
  }
245
237
  default:
246
- matchResult = 5;
238
+ matchResult = 3;
247
239
  }
248
240
  }
249
241
  else {
250
- matchResult = 5;
242
+ matchResult = 3;
251
243
  }
252
244
  switch (matchResult) {
253
245
  case 0:
@@ -255,11 +247,7 @@ export function JsonTypes_composeProcessOutput(header, value) {
255
247
  case 1:
256
248
  return ProcessOutput_createMaterial_4452CB4C(toString(value));
257
249
  case 2:
258
- return ProcessOutput_createImageFile_Z721C83C5(toString(value));
259
- case 3:
260
250
  return ProcessOutput_createRawData_Z721C83C5(toString(value));
261
- case 4:
262
- return ProcessOutput_createDerivedData_Z721C83C5(toString(value));
263
251
  default:
264
252
  return toFail(printf("Could not parse output header %O"))(header);
265
253
  }
@@ -269,40 +257,84 @@ export function JsonTypes_composeProcessOutput(header, value) {
269
257
  * Convert an ISA Value and Unit tuple to a CompositeCell
270
258
  */
271
259
  export function JsonTypes_cellOfValue(value, unit) {
272
- const value_2 = defaultArg(value, new Value_1(3, [""]));
260
+ const value_2 = defaultArg(value, new Value_2(3, [""]));
261
+ let matchResult, oa, text, name, u, f, u_1, f_1, i, u_2, i_1;
273
262
  switch (value_2.tag) {
274
- case 3:
275
- if (unit != null) {
276
- const u = unit;
277
- return new CompositeCell(2, [value_2.fields[0], u]);
263
+ case 3: {
264
+ if (value_2.fields[0] === "") {
265
+ if (unit != null) {
266
+ matchResult = 3;
267
+ name = value_2.fields[0];
268
+ u = unit;
269
+ }
270
+ else {
271
+ matchResult = 1;
272
+ }
273
+ }
274
+ else if (unit != null) {
275
+ matchResult = 3;
276
+ name = value_2.fields[0];
277
+ u = unit;
278
278
  }
279
279
  else {
280
- return new CompositeCell(1, [value_2.fields[0]]);
280
+ matchResult = 2;
281
+ text = value_2.fields[0];
281
282
  }
282
- case 2:
283
+ break;
284
+ }
285
+ case 2: {
283
286
  if (unit == null) {
284
- return new CompositeCell(1, [value_2.fields[0].toString()]);
287
+ matchResult = 5;
288
+ f_1 = value_2.fields[0];
285
289
  }
286
290
  else {
287
- const u_1 = unit;
288
- return new CompositeCell(2, [value_2.fields[0].toString(), u_1]);
291
+ matchResult = 4;
292
+ f = value_2.fields[0];
293
+ u_1 = unit;
289
294
  }
290
- case 1:
295
+ break;
296
+ }
297
+ case 1: {
291
298
  if (unit == null) {
292
- return new CompositeCell(1, [int32ToString(value_2.fields[0])]);
299
+ matchResult = 7;
300
+ i_1 = value_2.fields[0];
293
301
  }
294
302
  else {
295
- const u_2 = unit;
296
- return new CompositeCell(2, [int32ToString(value_2.fields[0]), u_2]);
303
+ matchResult = 6;
304
+ i = value_2.fields[0];
305
+ u_2 = unit;
297
306
  }
307
+ break;
308
+ }
298
309
  default:
299
310
  if (unit == null) {
300
- return new CompositeCell(0, [value_2.fields[0]]);
311
+ matchResult = 0;
312
+ oa = value_2.fields[0];
301
313
  }
302
314
  else {
303
- return toFail(printf("Could not parse value %O with unit %O"))(value_2)(unit);
315
+ matchResult = 8;
304
316
  }
305
317
  }
318
+ switch (matchResult) {
319
+ case 0:
320
+ return new CompositeCell(0, [oa]);
321
+ case 1:
322
+ return new CompositeCell(0, [new OntologyAnnotation()]);
323
+ case 2:
324
+ return new CompositeCell(0, [new OntologyAnnotation(text)]);
325
+ case 3:
326
+ return new CompositeCell(2, [name, u]);
327
+ case 4:
328
+ return new CompositeCell(2, [f.toString(), u_1]);
329
+ case 5:
330
+ return new CompositeCell(2, [f_1.toString(), new OntologyAnnotation()]);
331
+ case 6:
332
+ return new CompositeCell(2, [int32ToString(i), u_2]);
333
+ case 7:
334
+ return new CompositeCell(2, [int32ToString(i_1), new OntologyAnnotation()]);
335
+ default:
336
+ return toFail(printf("Could not parse value %O with unit %O"))(value_2)(unit);
337
+ }
306
338
  }
307
339
 
308
340
  /**
@@ -341,7 +373,7 @@ export function JsonTypes_decomposeProcessInput(pi) {
341
373
  case 1:
342
374
  return [new CompositeHeader(11, [new IOType(1, [])]), new CompositeCell(1, [defaultArg(pi.fields[0].Name, "")])];
343
375
  case 3:
344
- return [new CompositeHeader(11, [new IOType(5, [])]), new CompositeCell(1, [defaultArg(pi.fields[0].Name, "")])];
376
+ return [new CompositeHeader(11, [new IOType(3, [])]), new CompositeCell(1, [defaultArg(pi.fields[0].Name, "")])];
345
377
  case 2: {
346
378
  const d = pi.fields[0];
347
379
  const dataType = value_9(d.DataType);
@@ -349,9 +381,9 @@ export function JsonTypes_decomposeProcessInput(pi) {
349
381
  case 0:
350
382
  return [new CompositeHeader(11, [new IOType(2, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
351
383
  case 1:
352
- return [new CompositeHeader(11, [new IOType(3, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
384
+ return [new CompositeHeader(11, [new IOType(2, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
353
385
  default:
354
- return [new CompositeHeader(11, [new IOType(4, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
386
+ return [new CompositeHeader(11, [new IOType(2, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
355
387
  }
356
388
  }
357
389
  default:
@@ -365,7 +397,7 @@ export function JsonTypes_decomposeProcessInput(pi) {
365
397
  export function JsonTypes_decomposeProcessOutput(po) {
366
398
  switch (po.tag) {
367
399
  case 2:
368
- return [new CompositeHeader(12, [new IOType(5, [])]), new CompositeCell(1, [defaultArg(po.fields[0].Name, "")])];
400
+ return [new CompositeHeader(12, [new IOType(3, [])]), new CompositeCell(1, [defaultArg(po.fields[0].Name, "")])];
369
401
  case 1: {
370
402
  const d = po.fields[0];
371
403
  const dataType = value_9(d.DataType);
@@ -373,9 +405,9 @@ export function JsonTypes_decomposeProcessOutput(po) {
373
405
  case 0:
374
406
  return [new CompositeHeader(12, [new IOType(2, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
375
407
  case 1:
376
- return [new CompositeHeader(12, [new IOType(3, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
408
+ return [new CompositeHeader(12, [new IOType(2, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
377
409
  default:
378
- return [new CompositeHeader(12, [new IOType(4, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
410
+ return [new CompositeHeader(12, [new IOType(2, [])]), new CompositeCell(1, [defaultArg(d.Name, "")])];
379
411
  }
380
412
  }
381
413
  default:
@@ -907,9 +939,9 @@ export function CompositeRow_toProtocol(tableName, row) {
907
939
  case 5:
908
940
  return Protocol_addParameter(ProtocolParameter.create(void 0, oa_1), p);
909
941
  case 6:
910
- return Protocol_addComponent(Component_create_4208F9FC(Value_1.fromString(v_4), unit, oa_2), p);
942
+ return Protocol_addComponent(Component_create_4208F9FC(Value_2.fromString(v_4), unit, oa_2), p);
911
943
  case 7:
912
- return Protocol_addComponent(Component_create_4208F9FC(new Value_1(0, [t]), void 0, oa_3), p);
944
+ return Protocol_addComponent(Component_create_4208F9FC(new Value_2(0, [t]), void 0, oa_3), p);
913
945
  default:
914
946
  return p;
915
947
  }
package/Core/Data.js ADDED
@@ -0,0 +1,119 @@
1
+ import { defaultArg, unwrap } from "../fable_modules/fable-library-js.4.16.0/Option.js";
2
+ import { ResizeArray_map } from "./Helper/Collections.js";
3
+ import { hash, boxHashSeq, boxHashOption, boxHashArray } from "./Helper/HashCodes.js";
4
+ import { toString } from "../fable_modules/fable-library-js.4.16.0/Types.js";
5
+ import { printf, toText } from "../fable_modules/fable-library-js.4.16.0/String.js";
6
+ import { DataFile__get_AsString } from "./DataFile.js";
7
+ import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
8
+
9
+ export class Data {
10
+ constructor(id, name, dataType, format, selectorFormat, comments) {
11
+ this._id = id;
12
+ this._name = name;
13
+ this._dataType = dataType;
14
+ this._format = format;
15
+ this._selectorFormat = selectorFormat;
16
+ this._comments = defaultArg(comments, []);
17
+ }
18
+ get ID() {
19
+ const this$ = this;
20
+ return unwrap(this$._id);
21
+ }
22
+ set ID(id) {
23
+ const this$ = this;
24
+ this$._id = id;
25
+ }
26
+ get Name() {
27
+ const this$ = this;
28
+ return unwrap(this$._name);
29
+ }
30
+ set Name(name) {
31
+ const this$ = this;
32
+ this$._name = name;
33
+ }
34
+ get DataType() {
35
+ const this$ = this;
36
+ return unwrap(this$._dataType);
37
+ }
38
+ set DataType(dataType) {
39
+ const this$ = this;
40
+ this$._dataType = dataType;
41
+ }
42
+ get Format() {
43
+ const this$ = this;
44
+ return unwrap(this$._format);
45
+ }
46
+ set Format(format) {
47
+ const this$ = this;
48
+ this$._format = format;
49
+ }
50
+ get SelectorFormat() {
51
+ const this$ = this;
52
+ return unwrap(this$._selectorFormat);
53
+ }
54
+ set SelectorFormat(selectorFormat) {
55
+ const this$ = this;
56
+ this$._selectorFormat = selectorFormat;
57
+ }
58
+ get Comments() {
59
+ const this$ = this;
60
+ return this$._comments;
61
+ }
62
+ set Comments(comments) {
63
+ const this$ = this;
64
+ this$._comments = comments;
65
+ }
66
+ static make(id, name, dataType, format, selectorFormat, comments) {
67
+ return new Data(unwrap(id), unwrap(name), unwrap(dataType), unwrap(format), unwrap(selectorFormat), unwrap(comments));
68
+ }
69
+ static create(Id, Name, DataType, Format, SelectorFormat, Comments) {
70
+ return Data.make(Id, Name, DataType, Format, SelectorFormat, Comments);
71
+ }
72
+ static get empty() {
73
+ return Data.create();
74
+ }
75
+ get NameText() {
76
+ const this$ = this;
77
+ return defaultArg(this$.Name, "");
78
+ }
79
+ Copy() {
80
+ const this$ = this;
81
+ const nextComments = ResizeArray_map((c) => c.Copy(), this$.Comments);
82
+ return new Data(unwrap(this$.ID), unwrap(this$.Name), unwrap(this$.DataType), unwrap(this$.Format), unwrap(this$.SelectorFormat), nextComments);
83
+ }
84
+ GetHashCode() {
85
+ const this$ = this;
86
+ return boxHashArray([boxHashOption(this$.ID), boxHashOption(this$.Name), boxHashOption(this$.DataType), boxHashOption(this$.Format), boxHashOption(this$.SelectorFormat), boxHashSeq(this$.Comments)]) | 0;
87
+ }
88
+ Equals(obj) {
89
+ const this$ = this;
90
+ return hash(this$) === hash(obj);
91
+ }
92
+ Print() {
93
+ const this$ = this;
94
+ return toString(this$);
95
+ }
96
+ PrintCompact() {
97
+ const this$ = this;
98
+ const matchValue = this$.DataType;
99
+ if (matchValue == null) {
100
+ const arg_2 = this$.NameText;
101
+ return toText(printf("%s"))(arg_2);
102
+ }
103
+ else {
104
+ const t = matchValue;
105
+ const arg = this$.NameText;
106
+ const arg_1 = DataFile__get_AsString(t);
107
+ return toText(printf("%s [%s]"))(arg)(arg_1);
108
+ }
109
+ }
110
+ }
111
+
112
+ export function Data_$reflection() {
113
+ return class_type("ARCtrl.Data", void 0, Data);
114
+ }
115
+
116
+ export function Data_$ctor_5909441C(id, name, dataType, format, selectorFormat, comments) {
117
+ return new Data(id, name, dataType, format, selectorFormat, comments);
118
+ }
119
+
@@ -1,5 +1,5 @@
1
- import { Union } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
2
- import { union_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
1
+ import { Union } from "../fable_modules/fable-library-js.4.16.0/Types.js";
2
+ import { union_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
3
3
 
4
4
  export class DataFile extends Union {
5
5
  constructor(tag, fields) {
@@ -13,7 +13,7 @@ export class DataFile extends Union {
13
13
  }
14
14
 
15
15
  export function DataFile_$reflection() {
16
- return union_type("ARCtrl.Process.DataFile", [], DataFile, () => [[], [], []]);
16
+ return union_type("ARCtrl.DataFile", [], DataFile, () => [[], [], []]);
17
17
  }
18
18
 
19
19
  export function DataFile_get_RawDataFileJson() {
@@ -89,6 +89,26 @@ export function Assay_tryFileNameFromIdentifier(identifier) {
89
89
  }
90
90
  }
91
91
 
92
+ /**
93
+ * On writing a xlsx file we unify our output to a relative path to ARC root. So: `assays/assayIdentifier/isa.datamap.xlsx`.
94
+ */
95
+ export function Assay_datamapFileNameFromIdentifier(identifier) {
96
+ checkValidCharacters(identifier);
97
+ return combineMany(["assays", identifier, "isa.datamap.xlsx"]);
98
+ }
99
+
100
+ /**
101
+ * On writing a xlsx file we unify our output to a relative path to ARC root. So: `assays/assayIdentifier/isa.datamap.xlsx`.
102
+ */
103
+ export function Assay_tryDatamapFileNameFromIdentifier(identifier) {
104
+ if (tryCheckValidCharacters(identifier)) {
105
+ return combineMany(["assays", identifier, "isa.datamap.xlsx"]);
106
+ }
107
+ else {
108
+ return void 0;
109
+ }
110
+ }
111
+
92
112
  /**
93
113
  * On read-in the FileName can be any combination of "studies" (study folder name), studyIdentifier and "isa.study.xlsx" (the actual file name).
94
114
  *
@@ -141,3 +161,23 @@ export function Study_tryFileNameFromIdentifier(identifier) {
141
161
  }
142
162
  }
143
163
 
164
+ /**
165
+ * On writing a xlsx file we unify our output to a relative path to ARC root. So: `studies/studyIdentifier/isa.investigation.xlsx`.
166
+ */
167
+ export function Study_datamapFileNameFromIdentifier(identifier) {
168
+ checkValidCharacters(identifier);
169
+ return combineMany(["studies", identifier, "isa.datamap.xlsx"]);
170
+ }
171
+
172
+ /**
173
+ * On writing a xlsx file we unify our output to a relative path to ARC root. So: `studies/studyIdentifier/isa.investigation.xlsx`.
174
+ */
175
+ export function Study_tryDatamapFileNameFromIdentifier(identifier) {
176
+ if (tryCheckValidCharacters(identifier)) {
177
+ return combineMany(["studies", identifier, "isa.datamap.xlsx"]);
178
+ }
179
+ else {
180
+ return void 0;
181
+ }
182
+ }
183
+
@@ -66,10 +66,16 @@ export class OntologyAnnotation {
66
66
  static createUriAnnotation(termSourceRef, localTAN) {
67
67
  return `${"http://purl.obolibrary.org/obo/"}${termSourceRef}_${localTAN}`;
68
68
  }
69
- static fromTermAnnotation(tan) {
70
- const r = value_4(tryParseTermAnnotation(tan));
71
- const accession = (r.IDSpace + ":") + r.LocalID;
72
- return OntologyAnnotation.create("", r.IDSpace, accession);
69
+ static fromTermAnnotation(tan, name) {
70
+ const matchValue = tryParseTermAnnotation(tan);
71
+ if (matchValue == null) {
72
+ return OntologyAnnotation.create(name, void 0, tan);
73
+ }
74
+ else {
75
+ const r = matchValue;
76
+ const accession = (r.IDSpace + ":") + r.LocalID;
77
+ return OntologyAnnotation.create(name, r.IDSpace, accession);
78
+ }
73
79
  }
74
80
  get TermAccessionShort() {
75
81
  const this$ = this;
@@ -135,6 +141,10 @@ export class OntologyAnnotation {
135
141
  StringBuilder__Append_Z721C83C5(sb, "}");
136
142
  return toString(sb);
137
143
  }
144
+ isEmpty() {
145
+ const this$ = this;
146
+ return (((this$.Name == null) && (this$.TermSourceREF == null)) && (this$.TermAccessionNumber == null)) && (this$.Comments.length === 0);
147
+ }
138
148
  GetHashCode() {
139
149
  const this$ = this;
140
150
  return boxHashArray(toArray(delay(() => append(singleton(boxHashOption(this$.Name)), delay(() => {
@@ -1,9 +1,10 @@
1
1
  import { tryParse } from "../../fable_modules/fable-library-js.4.16.0/Int32.js";
2
2
  import { FSharpRef } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
3
3
  import { Comment$ } from "../Comment.js";
4
- import { int32ToString } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
5
- import { value, bind } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
4
+ import { equals, int32ToString } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
6
5
  import { tryItem } from "../CommentList.js";
6
+ import { findIndex } from "../../fable_modules/fable-library-js.4.16.0/Seq.js";
7
+ import { value, bind } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
7
8
  import { Factor } from "./Factor.js";
8
9
  import { MaterialAttribute_fromString_5980DC03 } from "./MaterialAttribute.js";
9
10
  import { ProtocolParameter } from "./ProtocolParameter.js";
@@ -30,7 +31,16 @@ export function createOrderComment(index) {
30
31
  }
31
32
 
32
33
  export function tryGetIndex(comments) {
33
- return bind(tryInt, tryItem(orderName, comments));
34
+ const matchValue = tryItem(orderName, comments);
35
+ if (matchValue != null) {
36
+ const ci = matchValue;
37
+ const i = findIndex((c) => equals(c.Name, orderName), comments) | 0;
38
+ comments.splice(i, 1);
39
+ return tryInt(ci);
40
+ }
41
+ else {
42
+ return void 0;
43
+ }
34
44
  }
35
45
 
36
46
  export function setOntologyAnnotationIndexInplace(i, oa) {
@@ -2,12 +2,12 @@ import { Union, toString } from "../../fable_modules/fable-library-js.4.16.0/Typ
2
2
  import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
3
3
  import { Source_create_Z5CA08497, Source_getUnits_53E41069, Source_setCharacteristicValues, Source_get_empty, Source_$reflection } from "./Source.js";
4
4
  import { Sample_create_62424AD2, Sample_getUnits_53716792, Sample_setCharacteristicValues, Sample_$reflection } from "./Sample.js";
5
- import { Data_create_Z2AF98BBE, Data_$reflection } from "./Data.js";
5
+ import { Data, Data_$reflection } from "../Data.js";
6
6
  import { Material_create_Z66909A6D, Material_getUnits_ZBCDEB61, Material_setCharacteristicValues, Material_$reflection } from "./Material.js";
7
7
  import { union_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
8
8
  import { unwrap, map, defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
9
9
  import { empty, choose } from "../../fable_modules/fable-library-js.4.16.0/List.js";
10
- import { DataFile } from "./DataFile.js";
10
+ import { DataFile } from "../DataFile.js";
11
11
 
12
12
  export class ProcessInput extends Union {
13
13
  constructor(tag, fields) {
@@ -284,14 +284,14 @@ export function ProcessInput_createMaterial_4452CB4C(name, characteristics, deri
284
284
  }
285
285
 
286
286
  export function ProcessInput_createImageFile_Z721C83C5(name) {
287
- return new ProcessInput(2, [Data_create_Z2AF98BBE(void 0, name, new DataFile(2, []))]);
287
+ return new ProcessInput(2, [Data.create(void 0, name, new DataFile(2, []))]);
288
288
  }
289
289
 
290
290
  export function ProcessInput_createRawData_Z721C83C5(name) {
291
- return new ProcessInput(2, [Data_create_Z2AF98BBE(void 0, name, new DataFile(0, []))]);
291
+ return new ProcessInput(2, [Data.create(void 0, name, new DataFile(0, []))]);
292
292
  }
293
293
 
294
294
  export function ProcessInput_createDerivedData_Z721C83C5(name) {
295
- return new ProcessInput(2, [Data_create_Z2AF98BBE(void 0, name, new DataFile(1, []))]);
295
+ return new ProcessInput(2, [Data.create(void 0, name, new DataFile(1, []))]);
296
296
  }
297
297
 
@@ -1,12 +1,12 @@
1
1
  import { Union, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
2
2
  import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
3
3
  import { Sample_create_62424AD2, Sample_getUnits_53716792, Sample_setFactorValues, Sample_get_empty, Sample_$reflection } from "./Sample.js";
4
- import { Data_create_Z2AF98BBE, Data_$reflection } from "./Data.js";
4
+ import { Data, Data_$reflection } from "../Data.js";
5
5
  import { Material_create_Z66909A6D, Material_getUnits_ZBCDEB61, Material_$reflection } from "./Material.js";
6
6
  import { union_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
7
7
  import { unwrap, map, defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
8
8
  import { empty, choose } from "../../fable_modules/fable-library-js.4.16.0/List.js";
9
- import { DataFile } from "./DataFile.js";
9
+ import { DataFile } from "../DataFile.js";
10
10
 
11
11
  export class ProcessOutput extends Union {
12
12
  constructor(tag, fields) {
@@ -250,14 +250,14 @@ export function ProcessOutput_createMaterial_4452CB4C(name, characteristics, der
250
250
  }
251
251
 
252
252
  export function ProcessOutput_createImageFile_Z721C83C5(name) {
253
- return new ProcessOutput(1, [Data_create_Z2AF98BBE(void 0, name, new DataFile(2, []))]);
253
+ return new ProcessOutput(1, [Data.create(void 0, name, new DataFile(2, []))]);
254
254
  }
255
255
 
256
256
  export function ProcessOutput_createRawData_Z721C83C5(name) {
257
- return new ProcessOutput(1, [Data_create_Z2AF98BBE(void 0, name, new DataFile(0, []))]);
257
+ return new ProcessOutput(1, [Data.create(void 0, name, new DataFile(0, []))]);
258
258
  }
259
259
 
260
260
  export function ProcessOutput_createDerivedData_Z721C83C5(name) {
261
- return new ProcessOutput(1, [Data_create_Z2AF98BBE(void 0, name, new DataFile(1, []))]);
261
+ return new ProcessOutput(1, [Data.create(void 0, name, new DataFile(1, []))]);
262
262
  }
263
263
 
@@ -31,7 +31,7 @@ export class Value extends Union {
31
31
  matchValue_1 = [tryParse_1(value, new FSharpRef(() => outArg_1, (v_2) => {
32
32
  outArg_1 = v_2;
33
33
  })), outArg_1];
34
- return matchValue_1[0] ? (new Value(2, [matchValue_1[1]])) : (new Value(0, [OntologyAnnotation.create(value)]));
34
+ return matchValue_1[0] ? (new Value(2, [matchValue_1[1]])) : (new Value(3, [value]));
35
35
  }
36
36
  }
37
37
  static fromOptions(value, termSource, termAccesssion) {