@nfdi4plants/arctrl 1.0.0-alpha7 → 1.0.0-alpha9

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.
@@ -2,6 +2,7 @@ import { map } from "../../../fable_modules/fable-library.4.1.4/Array.js";
2
2
  import { union_type, string_type, getUnionCases, name } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
3
3
  import { Union, toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
4
4
  import { ActivePatterns_$007CTermColumn$007C_$007C, Pattern_OutputPattern, Pattern_InputPattern, ActivePatterns_$007CRegex$007C_$007C, tryParseIOTypeHeader } from "../Regex.js";
5
+ import { equals } from "../../../fable_modules/fable-library.4.1.4/Util.js";
5
6
  import { printf, toFail } from "../../../fable_modules/fable-library.4.1.4/String.js";
6
7
  import { OntologyAnnotation_$reflection, OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
7
8
  import { ProtocolParameter_create_Z6C54B221 } from "../JsonTypes/ProtocolParameter.js";
@@ -40,6 +41,82 @@ export class IOType extends Union {
40
41
  };
41
42
  return (this$.tag === 6) ? stringCreate(this$.fields[0]) : stringCreate(this$);
42
43
  }
44
+ Merge(other) {
45
+ const this$ = this;
46
+ switch (this$.tag) {
47
+ case 4:
48
+ switch (other.tag) {
49
+ case 0:
50
+ return new IOType(4, []);
51
+ case 2:
52
+ return new IOType(4, []);
53
+ case 3:
54
+ return new IOType(4, []);
55
+ case 4:
56
+ return new IOType(4, []);
57
+ default:
58
+ throw new Error(`ImageFile IO column and ${other} can not be merged`);
59
+ }
60
+ case 3:
61
+ switch (other.tag) {
62
+ case 0:
63
+ return new IOType(3, []);
64
+ case 2:
65
+ return new IOType(3, []);
66
+ case 3:
67
+ return new IOType(3, []);
68
+ case 4:
69
+ return new IOType(4, []);
70
+ default:
71
+ throw new Error(`DerivedDataFile IO column and ${other} can not be merged`);
72
+ }
73
+ case 2:
74
+ switch (other.tag) {
75
+ case 0:
76
+ return new IOType(2, []);
77
+ case 2:
78
+ return new IOType(2, []);
79
+ case 3:
80
+ return new IOType(3, []);
81
+ case 4:
82
+ return new IOType(4, []);
83
+ default:
84
+ throw new Error(`RawDataFile IO column and ${other} can not be merged`);
85
+ }
86
+ case 1:
87
+ switch (other.tag) {
88
+ case 0:
89
+ return new IOType(1, []);
90
+ case 1:
91
+ return new IOType(1, []);
92
+ default:
93
+ throw new Error(`Sample IO column and ${other} can not be merged`);
94
+ }
95
+ case 0:
96
+ return (other.tag === 0) ? (new IOType(0, [])) : other;
97
+ case 5:
98
+ switch (other.tag) {
99
+ case 0:
100
+ return new IOType(5, []);
101
+ case 5:
102
+ return new IOType(5, []);
103
+ default:
104
+ throw new Error(`Material IO column and ${other} can not be merged`);
105
+ }
106
+ default:
107
+ if (other.tag === 6) {
108
+ if (this$.fields[0] === other.fields[0]) {
109
+ return new IOType(6, [this$.fields[0]]);
110
+ }
111
+ else {
112
+ throw new Error(`FreeText IO column names ${this$.fields[0]} and ${other.fields[0]} do differ`);
113
+ }
114
+ }
115
+ else {
116
+ throw new Error(`FreeText IO column and ${other} can not be merged`);
117
+ }
118
+ }
119
+ }
43
120
  toString() {
44
121
  const this$ = this;
45
122
  return (this$.tag === 1) ? "Sample Name" : ((this$.tag === 2) ? "Raw Data File" : ((this$.tag === 3) ? "Derived Data File" : ((this$.tag === 4) ? "Image File" : ((this$.tag === 5) ? "Material" : ((this$.tag === 6) ? this$.fields[0] : "Source Name")))));
@@ -57,6 +134,87 @@ export class IOType extends Union {
57
134
  return IOType.ofString(s);
58
135
  }
59
136
  }
137
+ GetUITooltip() {
138
+ const this$ = this;
139
+ return IOType.getUITooltip(this$);
140
+ }
141
+ static getUITooltip(iotype) {
142
+ let matchResult;
143
+ if (typeof iotype === "string") {
144
+ if (equals(iotype, "Source")) {
145
+ matchResult = 0;
146
+ }
147
+ else if (equals(iotype, "Sample")) {
148
+ matchResult = 1;
149
+ }
150
+ else if (equals(iotype, "RawDataFile")) {
151
+ matchResult = 2;
152
+ }
153
+ else if (equals(iotype, "DerivedDataFile")) {
154
+ matchResult = 3;
155
+ }
156
+ else if (equals(iotype, "ImageFile")) {
157
+ matchResult = 4;
158
+ }
159
+ else if (equals(iotype, "Material")) {
160
+ matchResult = 5;
161
+ }
162
+ else if (equals(iotype, "FreeText")) {
163
+ matchResult = 6;
164
+ }
165
+ else {
166
+ matchResult = 7;
167
+ }
168
+ }
169
+ else {
170
+ switch (iotype.tag) {
171
+ case 1: {
172
+ matchResult = 1;
173
+ break;
174
+ }
175
+ case 2: {
176
+ matchResult = 2;
177
+ break;
178
+ }
179
+ case 3: {
180
+ matchResult = 3;
181
+ break;
182
+ }
183
+ case 4: {
184
+ matchResult = 4;
185
+ break;
186
+ }
187
+ case 5: {
188
+ matchResult = 5;
189
+ break;
190
+ }
191
+ case 6: {
192
+ matchResult = 6;
193
+ break;
194
+ }
195
+ default:
196
+ matchResult = 0;
197
+ }
198
+ }
199
+ switch (matchResult) {
200
+ case 0:
201
+ return "The source value must be a unique identifier for an organism or a sample.";
202
+ case 1:
203
+ return "The Sample Name column describes specifc laboratory samples with a unique identifier.";
204
+ case 2:
205
+ return "The Raw Data File column defines untransformed and unprocessed data files.";
206
+ case 3:
207
+ return "The Derived Data File column defines transformed and/or processed data files.";
208
+ case 4:
209
+ return "Placeholder";
210
+ case 5:
211
+ return "Placeholder";
212
+ case 6:
213
+ return "Placeholder";
214
+ default:
215
+ throw new Error(`Unable to parse combination to existing IOType: \`${iotype}\``);
216
+ }
217
+ }
60
218
  }
61
219
 
62
220
  export function IOType_$reflection() {
@@ -271,7 +429,7 @@ export class CompositeHeader extends Union {
271
429
  }
272
430
  get isOutput() {
273
431
  const this$ = this;
274
- return this$.tag === 11;
432
+ return this$.tag === 12;
275
433
  }
276
434
  get isParameter() {
277
435
  const this$ = this;
@@ -334,6 +492,14 @@ export class CompositeHeader extends Union {
334
492
  const this$ = this;
335
493
  return this$.tag === 13;
336
494
  }
495
+ tryInput() {
496
+ const this$ = this;
497
+ return (this$.tag === 11) ? this$.fields[0] : void 0;
498
+ }
499
+ tryOutput() {
500
+ const this$ = this;
501
+ return (this$.tag === 12) ? this$.fields[0] : void 0;
502
+ }
337
503
  TryParameter() {
338
504
  const this$ = this;
339
505
  return (this$.tag === 3) ? ProtocolParameter_create_Z6C54B221(void 0, this$.fields[0]) : void 0;
@@ -350,6 +516,150 @@ export class CompositeHeader extends Union {
350
516
  const this$ = this;
351
517
  return (this$.tag === 0) ? Component_create_61502994(void 0, void 0, void 0, this$.fields[0]) : void 0;
352
518
  }
519
+ GetUITooltip() {
520
+ const this$ = this;
521
+ return CompositeHeader.getUITooltip(this$);
522
+ }
523
+ static getUITooltip(header) {
524
+ let matchResult;
525
+ if (typeof header === "string") {
526
+ if (equals(header, "Component")) {
527
+ matchResult = 0;
528
+ }
529
+ else if (equals(header, "Characteristic")) {
530
+ matchResult = 1;
531
+ }
532
+ else if (equals(header, "Factor")) {
533
+ matchResult = 2;
534
+ }
535
+ else if (equals(header, "Parameter")) {
536
+ matchResult = 3;
537
+ }
538
+ else if (equals(header, "ProtocolType")) {
539
+ matchResult = 4;
540
+ }
541
+ else if (equals(header, "ProtocolDescription")) {
542
+ matchResult = 5;
543
+ }
544
+ else if (equals(header, "ProtocolUri")) {
545
+ matchResult = 6;
546
+ }
547
+ else if (equals(header, "ProtocolVersion")) {
548
+ matchResult = 7;
549
+ }
550
+ else if (equals(header, "ProtocolREF")) {
551
+ matchResult = 8;
552
+ }
553
+ else if (equals(header, "Performer")) {
554
+ matchResult = 9;
555
+ }
556
+ else if (equals(header, "Date")) {
557
+ matchResult = 10;
558
+ }
559
+ else if (equals(header, "Input")) {
560
+ matchResult = 11;
561
+ }
562
+ else if (equals(header, "Output")) {
563
+ matchResult = 12;
564
+ }
565
+ else if (equals(header, "FreeText")) {
566
+ matchResult = 13;
567
+ }
568
+ else {
569
+ matchResult = 14;
570
+ }
571
+ }
572
+ else {
573
+ switch (header.tag) {
574
+ case 1: {
575
+ matchResult = 1;
576
+ break;
577
+ }
578
+ case 2: {
579
+ matchResult = 2;
580
+ break;
581
+ }
582
+ case 3: {
583
+ matchResult = 3;
584
+ break;
585
+ }
586
+ case 4: {
587
+ matchResult = 4;
588
+ break;
589
+ }
590
+ case 5: {
591
+ matchResult = 5;
592
+ break;
593
+ }
594
+ case 6: {
595
+ matchResult = 6;
596
+ break;
597
+ }
598
+ case 7: {
599
+ matchResult = 7;
600
+ break;
601
+ }
602
+ case 8: {
603
+ matchResult = 8;
604
+ break;
605
+ }
606
+ case 9: {
607
+ matchResult = 9;
608
+ break;
609
+ }
610
+ case 10: {
611
+ matchResult = 10;
612
+ break;
613
+ }
614
+ case 11: {
615
+ matchResult = 11;
616
+ break;
617
+ }
618
+ case 12: {
619
+ matchResult = 12;
620
+ break;
621
+ }
622
+ case 13: {
623
+ matchResult = 13;
624
+ break;
625
+ }
626
+ default:
627
+ matchResult = 0;
628
+ }
629
+ }
630
+ switch (matchResult) {
631
+ case 0:
632
+ return "Component columns are used to describe physical components of a experiment, e.g. instrument names, software names, and reagents names.";
633
+ case 1:
634
+ return "Characteristic columns are used for study descriptions and describe inherent properties of the source material, e.g. a certain strain or organism part.";
635
+ case 2:
636
+ return "Use Factor columns to describe independent variables that result in a specific output of your experiment, e.g. the light intensity under which an organism was grown.";
637
+ case 3:
638
+ return "Parameter columns describe steps in your experimental workflow, e.g. the centrifugation time or the temperature used for your assay.";
639
+ case 4:
640
+ return "Defines the protocol type according to your preferred endpoint repository.";
641
+ case 5:
642
+ return "Describe the protocol in free text.";
643
+ case 6:
644
+ return "Web or local address where the in-depth protocol is stored.";
645
+ case 7:
646
+ return "Defines the protocol version.";
647
+ case 8:
648
+ return "Defines the protocol name.";
649
+ case 9:
650
+ return "Defines the protocol performer.";
651
+ case 10:
652
+ return "Defines the date the protocol was performed.";
653
+ case 11:
654
+ return "Only one input column per table. E.g. experimental samples or files.";
655
+ case 12:
656
+ return "Only one output column per table. E.g. experimental samples or files.";
657
+ case 13:
658
+ return "Placeholder";
659
+ default:
660
+ throw new Error(`Unable to parse combination to existing CompositeHeader: \`${header}\``);
661
+ }
662
+ }
353
663
  }
354
664
 
355
665
  export function CompositeHeader_$reflection() {
package/ISA/ISA/Helper.js CHANGED
@@ -1,5 +1,6 @@
1
- import { isIterable, defaultOf, structuralHash, equals } from "../../fable_modules/fable-library.4.1.4/Util.js";
2
- import { value as value_1, some } from "../../fable_modules/fable-library.4.1.4/Option.js";
1
+ import { some, value as value_1 } from "../../fable_modules/fable-library.4.1.4/Option.js";
2
+ import { isIterable, defaultOf, structuralHash, equals, numberHash, identityHash } from "../../fable_modules/fable-library.4.1.4/Util.js";
3
+ import { exactlyOne, partition, fold } from "../../fable_modules/fable-library.4.1.4/Array.js";
3
4
  import { empty, singleton, append, head, tail, isEmpty } from "../../fable_modules/fable-library.4.1.4/List.js";
4
5
  import { Dictionary } from "../../fable_modules/fable-library.4.1.4/MutableMap.js";
5
6
  import { isEmpty as isEmpty_1, iterate } from "../../fable_modules/fable-library.4.1.4/Seq.js";
@@ -7,7 +8,18 @@ import { tryGetValue, addToDict } from "../../fable_modules/fable-library.4.1.4/
7
8
  import { Union, toString, FSharpRef } from "../../fable_modules/fable-library.4.1.4/Types.js";
8
9
  import { append_generic, distinct_generic, isList_generic, isMap_generic } from "./Fable.js";
9
10
  import { union_type, makeUnion, option_type, makeGenericType, getUnionCases, name, obj_type } from "../../fable_modules/fable-library.4.1.4/Reflection.js";
10
- import { exactlyOne, partition } from "../../fable_modules/fable-library.4.1.4/Array.js";
11
+
12
+ export function HashCodes_boxHashOption(a) {
13
+ let copyOfStruct, copyOfStruct_1;
14
+ return (a != null) ? ((copyOfStruct = value_1(a), identityHash(copyOfStruct))) : ((copyOfStruct_1 = 0, numberHash(copyOfStruct_1)));
15
+ }
16
+
17
+ export function HashCodes_boxHashArray(a) {
18
+ return fold((acc, o) => {
19
+ let copyOfStruct;
20
+ return ((-1640531527 + ((copyOfStruct = o, identityHash(copyOfStruct)))) + (acc << 6)) + (acc >> 2);
21
+ }, 0, a);
22
+ }
11
23
 
12
24
  /**
13
25
  * If the value matches the default, a None is returned, else a Some is returned
package/ISA/ISA/Regex.js CHANGED
@@ -49,7 +49,7 @@ export function ActivePatterns_$007CReferenceColumnHeader$007C_$007C(input) {
49
49
  * Matches any column header starting with some text, followed by one whitespace and a term name inside squared brackets.
50
50
  */
51
51
  export function ActivePatterns_$007CTermColumn$007C_$007C(input) {
52
- const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(?<termcolumntype>.+)\\s\\[(?<termname>.+)\\]", input);
52
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("(?<termcolumntype>.+?)\\s\\[(?<termname>.+)\\]", input);
53
53
  if (activePatternResult != null) {
54
54
  const r = activePatternResult;
55
55
  return {
@@ -12,7 +12,7 @@ import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetI
12
12
  import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
13
13
  import { Process_decoder, Process_encoder } from "./Process.js";
14
14
  import { decoder as decoder_5, encoder } from "./Comment.js";
15
- import { fromString, uri } from "./Decode.js";
15
+ import { fromJsonString, uri } from "./Decode.js";
16
16
  import { Assay } from "../ISA/JsonTypes/Assay.js";
17
17
  import { ArcAssay } from "../ISA/ArcTypes/ArcTypes.js";
18
18
 
@@ -88,11 +88,11 @@ export function Assay_decoder(options) {
88
88
  }, path_7, v));
89
89
  }
90
90
 
91
- export function Assay_fromString(s) {
92
- return fromString(uncurry2(Assay_decoder(ConverterOptions_$ctor())), s);
91
+ export function Assay_fromJsonString(s) {
92
+ return fromJsonString(uncurry2(Assay_decoder(ConverterOptions_$ctor())), s);
93
93
  }
94
94
 
95
- export function Assay_toString(p) {
95
+ export function Assay_toJsonString(p) {
96
96
  return toString(2, Assay_encoder(ConverterOptions_$ctor(), p));
97
97
  }
98
98
 
@@ -104,12 +104,12 @@ export function Assay_toStringLD(a) {
104
104
  return toString(2, Assay_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), a));
105
105
  }
106
106
 
107
- export function ArcAssay_fromString(s) {
108
- const arg = fromString(uncurry2(Assay_decoder(ConverterOptions_$ctor())), s);
107
+ export function ArcAssay_fromJsonString(s) {
108
+ const arg = fromJsonString(uncurry2(Assay_decoder(ConverterOptions_$ctor())), s);
109
109
  return ArcAssay.fromAssay(arg);
110
110
  }
111
111
 
112
- export function ArcAssay_toString(a) {
112
+ export function ArcAssay_toJsonString(a) {
113
113
  return toString(2, Assay_encoder(ConverterOptions_$ctor(), a.ToAssay()));
114
114
  }
115
115
 
@@ -1,14 +1,14 @@
1
1
  import { replace } from "../../fable_modules/fable-library.4.1.4/String.js";
2
2
  import { value as value_13 } from "../../fable_modules/fable-library.4.1.4/Option.js";
3
3
  import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
4
- import { toString as toString_1, nil, object as object_6 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
4
+ import { toString, nil, object as object_6 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
5
5
  import { choose } from "../../fable_modules/fable-library.4.1.4/List.js";
6
6
  import { uncurry2, equals } from "../../fable_modules/fable-library.4.1.4/Util.js";
7
7
  import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.1.4/Seq.js";
8
8
  import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
9
9
  import { tryInclude } from "./GEncode.js";
10
10
  import { string, object as object_7 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
11
- import { fromString as fromString_1, uri } from "./Decode.js";
11
+ import { fromJsonString as fromJsonString_1, uri } from "./Decode.js";
12
12
  import { Comment$ } from "../ISA/JsonTypes/Comment.js";
13
13
 
14
14
  export function genID(c) {
@@ -66,12 +66,12 @@ export function decoder(options) {
66
66
  }, path_2, v));
67
67
  }
68
68
 
69
- export function fromString(s) {
70
- return fromString_1(uncurry2(decoder(ConverterOptions_$ctor())), s);
69
+ export function fromJsonString(s) {
70
+ return fromJsonString_1(uncurry2(decoder(ConverterOptions_$ctor())), s);
71
71
  }
72
72
 
73
- export function toString(c) {
74
- return toString_1(2, encoder(ConverterOptions_$ctor(), c));
73
+ export function toJsonString(c) {
74
+ return toString(2, encoder(ConverterOptions_$ctor(), c));
75
75
  }
76
76
 
77
77
  /**
@@ -79,6 +79,6 @@ export function toString(c) {
79
79
  */
80
80
  export function toStringLD(c) {
81
81
  let returnVal;
82
- return toString_1(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), c));
82
+ return toString(2, encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), c));
83
83
  }
84
84
 
@@ -10,7 +10,7 @@ import { empty, singleton, append, delay, toList } from "../../fable_modules/fab
10
10
  import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
11
11
  import { tryInclude } from "./GEncode.js";
12
12
  import { decoder as decoder_3, encoder } from "./Comment.js";
13
- import { fromString, uri, hasUnknownFields } from "./Decode.js";
13
+ import { fromJsonString, uri, hasUnknownFields } from "./Decode.js";
14
14
  import { Data } from "../ISA/JsonTypes/Data.js";
15
15
  import { replace } from "../../fable_modules/fable-library.4.1.4/String.js";
16
16
  import { MaterialAttributeValue_decoder, MaterialAttributeValue_encoder } from "./Material.js";
@@ -110,12 +110,12 @@ export function Data_decoder(options, s, json) {
110
110
  }
111
111
  }
112
112
 
113
- export function Data_fromString(s) {
113
+ export function Data_fromJsonString(s) {
114
114
  let options;
115
- return fromString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Data_decoder(options, s_1, json)))), s);
115
+ return fromJsonString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Data_decoder(options, s_1, json)))), s);
116
116
  }
117
117
 
118
- export function Data_toString(m) {
118
+ export function Data_toJsonString(m) {
119
119
  return toString(2, Data_encoder(ConverterOptions_$ctor(), m));
120
120
  }
121
121
 
@@ -181,12 +181,12 @@ export function Source_decoder(options, s, json) {
181
181
  }
182
182
  }
183
183
 
184
- export function Source_fromString(s) {
184
+ export function Source_fromJsonString(s) {
185
185
  let options;
186
- return fromString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Source_decoder(options, s_1, json)))), s);
186
+ return fromJsonString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Source_decoder(options, s_1, json)))), s);
187
187
  }
188
188
 
189
- export function Source_toString(m) {
189
+ export function Source_toJsonString(m) {
190
190
  return toString(2, Source_encoder(ConverterOptions_$ctor(), m));
191
191
  }
192
192
 
@@ -252,12 +252,12 @@ export function Sample_decoder(options, s, json) {
252
252
  }
253
253
  }
254
254
 
255
- export function Sample_fromString(s) {
255
+ export function Sample_fromJsonString(s) {
256
256
  let options;
257
- return fromString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Sample_decoder(options, s_1, json)))), s);
257
+ return fromJsonString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Sample_decoder(options, s_1, json)))), s);
258
258
  }
259
259
 
260
- export function Sample_toString(m) {
260
+ export function Sample_toJsonString(m) {
261
261
  return toString(2, Sample_encoder(ConverterOptions_$ctor(), m));
262
262
  }
263
263
 
@@ -1,4 +1,4 @@
1
- import { fromString as fromString_1, string } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
1
+ import { fromString, string } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
2
2
  import { FSharpResult$2 } from "../../fable_modules/fable-library.4.1.4/Choice.js";
3
3
  import { printf, toText } from "../../fable_modules/fable-library.4.1.4/String.js";
4
4
  import { ErrorReason } from "../../fable_modules/Thoth.Json.10.1.0/Types.fs.js";
@@ -23,8 +23,8 @@ export function uri(s, json) {
23
23
  }
24
24
  }
25
25
 
26
- export function fromString(decoder, s) {
27
- const matchValue = fromString_1(decoder, s);
26
+ export function fromJsonString(decoder, s) {
27
+ const matchValue = fromString(decoder, s);
28
28
  if (matchValue.tag === 1) {
29
29
  throw new Error(toText(printf("Error decoding string: %s"))(matchValue.fields[0]));
30
30
  }
@@ -3,7 +3,7 @@ import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontolo
3
3
  import { object as object_8, toString, nil } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
4
4
  import { array, object as object_9, string, float, int } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
5
5
  import { FSharpResult$2 } from "../../fable_modules/fable-library.4.1.4/Choice.js";
6
- import { uri, fromString } from "./Decode.js";
6
+ import { uri, fromJsonString } from "./Decode.js";
7
7
  import { equals, uncurry2 } from "../../fable_modules/fable-library.4.1.4/Util.js";
8
8
  import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID, ConverterOptions_$ctor } from "./ConverterOptions.js";
9
9
  import { replace } from "../../fable_modules/fable-library.4.1.4/String.js";
@@ -63,12 +63,12 @@ export function Value_decoder(options, s, json) {
63
63
  }
64
64
  }
65
65
 
66
- export function Value_fromString(s) {
66
+ export function Value_fromJsonString(s) {
67
67
  let options;
68
- return fromString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Value_decoder(options, s_1, json)))), s);
68
+ return fromJsonString(uncurry2((options = ConverterOptions_$ctor(), (s_1) => ((json) => Value_decoder(options, s_1, json)))), s);
69
69
  }
70
70
 
71
- export function Value_toString(v) {
71
+ export function Value_toJsonString(v) {
72
72
  return toString(2, Value_encoder(ConverterOptions_$ctor(), v));
73
73
  }
74
74
 
@@ -121,11 +121,11 @@ export function Factor_decoder(options) {
121
121
  }, path_2, v));
122
122
  }
123
123
 
124
- export function Factor_fromString(s) {
125
- return fromString(uncurry2(Factor_decoder(ConverterOptions_$ctor())), s);
124
+ export function Factor_fromJsonString(s) {
125
+ return fromJsonString(uncurry2(Factor_decoder(ConverterOptions_$ctor())), s);
126
126
  }
127
127
 
128
- export function Factor_toString(f) {
128
+ export function Factor_toJsonString(f) {
129
129
  return toString(2, Factor_encoder(ConverterOptions_$ctor(), f));
130
130
  }
131
131
 
@@ -176,11 +176,11 @@ export function FactorValue_decoder(options) {
176
176
  }, path, v));
177
177
  }
178
178
 
179
- export function FactorValue_fromString(s) {
180
- return fromString(uncurry2(FactorValue_decoder(ConverterOptions_$ctor())), s);
179
+ export function FactorValue_fromJsonString(s) {
180
+ return fromJsonString(uncurry2(FactorValue_decoder(ConverterOptions_$ctor())), s);
181
181
  }
182
182
 
183
- export function FactorValue_toString(f) {
183
+ export function FactorValue_toJsonString(f) {
184
184
  return toString(2, FactorValue_encoder(ConverterOptions_$ctor(), f));
185
185
  }
186
186
 
@@ -13,7 +13,7 @@ import { Study_decoder, Study_encoder } from "./Study.js";
13
13
  import { decoder as decoder_7, encoder as encoder_2 } from "./Comment.js";
14
14
  import { list as list_1, string, object as object_25 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
15
15
  import { Investigation } from "../ISA/JsonTypes/Investigation.js";
16
- import { fromString } from "./Decode.js";
16
+ import { fromJsonString } from "./Decode.js";
17
17
  import { ArcInvestigation } from "../ISA/ArcTypes/ArcTypes.js";
18
18
 
19
19
  export function Investigation_genID(i) {
@@ -97,11 +97,11 @@ export function Investigation_decoder(options) {
97
97
  }, path_12, v));
98
98
  }
99
99
 
100
- export function Investigation_fromString(s) {
101
- return fromString(uncurry2(Investigation_decoder(ConverterOptions_$ctor())), s);
100
+ export function Investigation_fromJsonString(s) {
101
+ return fromJsonString(uncurry2(Investigation_decoder(ConverterOptions_$ctor())), s);
102
102
  }
103
103
 
104
- export function Investigation_toString(p) {
104
+ export function Investigation_toJsonString(p) {
105
105
  return toString(2, Investigation_encoder(ConverterOptions_$ctor(), p));
106
106
  }
107
107
 
@@ -113,12 +113,12 @@ export function Investigation_toStringLD(i) {
113
113
  return toString(2, Investigation_encoder((returnVal = ConverterOptions_$ctor(), ((ConverterOptions__set_SetID_Z1FBCCD16(returnVal, true), ConverterOptions__set_IncludeType_Z1FBCCD16(returnVal, true)), returnVal)), i));
114
114
  }
115
115
 
116
- export function ArcInvestigation_fromString(s) {
117
- const arg = fromString(uncurry2(Investigation_decoder(ConverterOptions_$ctor())), s);
116
+ export function ArcInvestigation_fromJsonString(s) {
117
+ const arg = fromJsonString(uncurry2(Investigation_decoder(ConverterOptions_$ctor())), s);
118
118
  return ArcInvestigation.fromInvestigation(arg);
119
119
  }
120
120
 
121
- export function ArcInvestigation_toString(a) {
121
+ export function ArcInvestigation_toJsonString(a) {
122
122
  return toString(2, Investigation_encoder(ConverterOptions_$ctor(), a.ToInvestigation()));
123
123
  }
124
124