@nfdi4plants/arctrl 1.0.3 → 1.0.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.
|
@@ -177,6 +177,20 @@ export function ArcAssay_toJsonString(a) {
|
|
|
177
177
|
return toString(2, Assay_encoder(ConverterOptions_$ctor(), a.ToAssay()));
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
export function ArcAssay_toArcJsonString(a) {
|
|
181
|
+
return toString(0, ArcAssay_encoder(a));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function ArcAssay_fromArcJsonString(jsonString) {
|
|
185
|
+
const matchValue = fromString(uncurry2(ArcAssay_decoder), jsonString);
|
|
186
|
+
if (matchValue.tag === 1) {
|
|
187
|
+
return toFail(printf("Error. Unable to parse json string to ArcAssay: %s"))(matchValue.fields[0]);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
return matchValue.fields[0];
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
180
194
|
export function ARCtrl_ISA_ArcAssay__ArcAssay_fromArcJsonString_Static_Z721C83C5(jsonString) {
|
|
181
195
|
const matchValue = fromString(uncurry2(ArcAssay_decoder), jsonString);
|
|
182
196
|
if (matchValue.tag === 1) {
|
|
@@ -59,6 +59,20 @@ export function ArcInvestigation_toJsonString(a) {
|
|
|
59
59
|
return toString(2, encoder(ConverterOptions_$ctor(), a.ToInvestigation()));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
export function ArcInvestigation_toArcJsonString(a) {
|
|
63
|
+
return toString(0, ArcInvestigation_encoder(a));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ArcInvestigation_fromArcJsonString(jsonString) {
|
|
67
|
+
const matchValue = fromString(uncurry2(ArcInvestigation_decoder), jsonString);
|
|
68
|
+
if (matchValue.tag === 1) {
|
|
69
|
+
return toFail(printf("Error. Unable to parse json string to ArcInvestigation: %s"))(matchValue.fields[0]);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return matchValue.fields[0];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
62
76
|
export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_fromArcJsonString_Static_Z721C83C5(jsonString) {
|
|
63
77
|
const matchValue = fromString(uncurry2(ArcInvestigation_decoder), jsonString);
|
|
64
78
|
if (matchValue.tag === 1) {
|
|
@@ -57,6 +57,20 @@ export function ArcStudy_toJsonString(a, assays) {
|
|
|
57
57
|
return toString(2, Study_encoder(ConverterOptions_$ctor(), a.ToStudy(assays)));
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export function ArcStudy_toArcJsonString(a) {
|
|
61
|
+
return toString(0, ArcStudy_encoder(a));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ArcStudy_fromArcJsonString(jsonString) {
|
|
65
|
+
const matchValue = fromString(uncurry2(ArcStudy_decoder), jsonString);
|
|
66
|
+
if (matchValue.tag === 1) {
|
|
67
|
+
return toFail(printf("Error. Unable to parse json string to ArcStudy: %s"))(matchValue.fields[0]);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
return matchValue.fields[0];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
60
74
|
export function ARCtrl_ISA_ArcStudy__ArcStudy_fromArcJsonString_Static_Z721C83C5(jsonString) {
|
|
61
75
|
const matchValue = fromString(uncurry2(ArcStudy_decoder), jsonString);
|
|
62
76
|
if (matchValue.tag === 1) {
|