@nfdi4plants/arctrl 2.1.0-alpha.4 → 2.2.1
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/CWL/CWLTypes.js +135 -0
- package/CWL/Decode.js +585 -0
- package/CWL/Inputs.js +62 -0
- package/CWL/Outputs.js +59 -0
- package/CWL/Requirements.js +72 -0
- package/CWL/ToolDescription.js +81 -0
- package/CWL/WorkflowDescription.js +81 -0
- package/CWL/WorkflowSteps.js +98 -0
- package/Core/ArcTypes.js +76 -87
- package/Core/Helper/Identifier.js +2 -2
- package/Core/OntologyAnnotation.js +8 -5
- package/Core/Table/ArcTable.js +15 -7
- package/Core/Table/CompositeHeader.js +4 -0
- package/Core/Template.js +8 -0
- package/Json/{ROCrateObject.js → LDObject.js} +66 -17
- package/Json/Process/Material.js +32 -8
- package/Json/Process/ProcessInput.js +3 -3
- package/Json/Process/Sample.js +32 -8
- package/Json/Process/Source.js +32 -8
- package/Json/context/rocrate/isa_assay_context.js +4 -4
- package/JsonIO/LDObject.js +31 -0
- package/ROCrate/ArcROCrateMetadata.js +35 -0
- package/ROCrate/ISAProfile/Assay.js +30 -2
- package/ROCrate/ISAProfile/Data.js +32 -5
- package/ROCrate/ISAProfile/Dataset.js +3 -3
- package/ROCrate/ISAProfile/Investigation.js +30 -2
- package/ROCrate/ISAProfile/LabProcess.js +113 -5
- package/ROCrate/ISAProfile/LabProtocol.js +4 -4
- package/ROCrate/ISAProfile/Person.js +32 -5
- package/ROCrate/ISAProfile/PropertyValue.js +59 -5
- package/ROCrate/ISAProfile/Sample.js +32 -5
- package/ROCrate/ISAProfile/ScholarlyArticle.js +59 -5
- package/ROCrate/ISAProfile/Study.js +30 -2
- package/ROCrate/LDObject.js +105 -0
- package/Spreadsheet/AnnotationTable/ArcTable.js +8 -5
- package/Spreadsheet/Template.js +29 -11
- package/Yaml/ValidationPackage.js +6 -6
- package/Yaml/ValidationPackagesConfig.js +6 -6
- package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynObj.fs +4 -4
- package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynObj.fs.js +0 -44
- package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/HashCodes.fs +4 -1
- package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/HashCodes.fs.js +8 -3
- package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/obj/Debug/netstandard2.0/DynamicObj.AssemblyInfo.fs +1 -1
- package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/obj/Release/netstandard2.0/DynamicObj.AssemblyInfo.fs +3 -3
- package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Decode.fs +398 -373
- package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Decode.fs.js +35 -2
- package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/obj/Debug/netstandard2.0/YAMLicious.AssemblyInfo.fs +1 -1
- package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/obj/Release/netstandard2.0/YAMLicious.AssemblyInfo.fs +1 -1
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/JsonIO/ROCrateObject.js +0 -146
- package/ROCrate/ROCrateObject.js +0 -61
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynamicObj.fableproj +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynamicObj.fs +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/DynamicObj.fs.js +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/FableJS.fs +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/FableJS.fs.js +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/FablePy.fs +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/PropertyHelper.fs +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/PropertyHelper.fs.js +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/ReflectionUtils.fs +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/ReflectionUtils.fs.js +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{DynamicObj.4.0.0 → DynamicObj.4.0.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Encode.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Encode.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Interop/JsInterop.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Interop/JsInterop.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Interop/PyInterop.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Library.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Library.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Persil.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Persil.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Preprocessing.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Preprocessing.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Reader.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Reader.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Regex.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Regex.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/RegexActivePatterns.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/RegexActivePatterns.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Writer.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/Writer.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/YAMLicious.fableproj +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/YAMLiciousTypes.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/YAMLiciousTypes.fs.js +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{YAMLicious.0.0.1 → YAMLicious.0.0.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
package/Json/Process/Material.js
CHANGED
|
@@ -7,7 +7,7 @@ import { ISAJson_decoder as ISAJson_decoder_1, ISAJson_encoder as ISAJson_encode
|
|
|
7
7
|
import { ISAJson_decoder as ISAJson_decoder_2, ISAJson_encoder as ISAJson_encoder_2, ROCrate_decoder as ROCrate_decoder_2, ROCrate_encoder as ROCrate_encoder_2 } from "./MaterialAttributeValue.js";
|
|
8
8
|
import { context_jsonvalue } from "../context/rocrate/isa_material_context.js";
|
|
9
9
|
import { map as map_1 } from "../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
10
|
-
import { list as list_2, string, object } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
10
|
+
import { list as list_2, string, unit, object } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
11
11
|
import { Decode_objectNoAdditionalProperties, Decode_uri } from "../Decode.js";
|
|
12
12
|
import { Material } from "../../Core/Process/Material.js";
|
|
13
13
|
import { encode } from "../IDTable.js";
|
|
@@ -38,23 +38,47 @@ export function ROCrate_encoder(oa) {
|
|
|
38
38
|
Encode(helpers_1) {
|
|
39
39
|
return helpers_1.encodeString("Material");
|
|
40
40
|
},
|
|
41
|
-
}))],
|
|
41
|
+
}))], ["additionalType", {
|
|
42
42
|
Encode(helpers_2) {
|
|
43
|
-
return helpers_2.encodeString(
|
|
43
|
+
return helpers_2.encodeString("Material");
|
|
44
|
+
},
|
|
45
|
+
}], tryInclude("name", (value_3) => ({
|
|
46
|
+
Encode(helpers_3) {
|
|
47
|
+
return helpers_3.encodeString(value_3);
|
|
44
48
|
},
|
|
45
49
|
}), oa.Name), tryInclude("type", ROCrate_encoder_1, oa.MaterialType), tryIncludeListOpt("characteristics", ROCrate_encoder_2, oa.Characteristics), tryIncludeListOpt("derivesFrom", ROCrate_encoder, oa.DerivesFrom), ["@context", context_jsonvalue]]));
|
|
46
50
|
return {
|
|
47
|
-
Encode(
|
|
48
|
-
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(
|
|
49
|
-
return
|
|
51
|
+
Encode(helpers_4) {
|
|
52
|
+
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values);
|
|
53
|
+
return helpers_4.encodeObject(arg);
|
|
50
54
|
},
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
export const ROCrate_decoder = (() => {
|
|
55
59
|
const decode = () => object((get$) => {
|
|
56
|
-
let
|
|
57
|
-
|
|
60
|
+
let objectArg_2, objectArg_3, objectArg_4, arg_11, objectArg_5, arg_13, objectArg_6;
|
|
61
|
+
let matchValue;
|
|
62
|
+
const objectArg = get$.Optional;
|
|
63
|
+
matchValue = objectArg.Field("additionalType", Decode_uri);
|
|
64
|
+
let matchResult;
|
|
65
|
+
if (matchValue == null) {
|
|
66
|
+
matchResult = 0;
|
|
67
|
+
}
|
|
68
|
+
else if (matchValue === "Material") {
|
|
69
|
+
matchResult = 0;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
matchResult = 1;
|
|
73
|
+
}
|
|
74
|
+
switch (matchResult) {
|
|
75
|
+
case 1: {
|
|
76
|
+
const objectArg_1 = get$.Required;
|
|
77
|
+
objectArg_1.Field("FailBecauseNotSample", unit);
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return new Material((objectArg_2 = get$.Optional, objectArg_2.Field("@id", Decode_uri)), (objectArg_3 = get$.Optional, objectArg_3.Field("name", string)), (objectArg_4 = get$.Optional, objectArg_4.Field("type", ROCrate_decoder_1)), (arg_11 = list_2(ROCrate_decoder_2), (objectArg_5 = get$.Optional, objectArg_5.Field("characteristics", arg_11))), (arg_13 = list_2(decode()), (objectArg_6 = get$.Optional, objectArg_6.Field("derivesFrom", arg_13))));
|
|
58
82
|
});
|
|
59
83
|
return decode();
|
|
60
84
|
})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ISAJson_decoder as ISAJson_decoder_2, ISAJson_encoder as ISAJson_encoder_1, ROCrate_decoder as
|
|
1
|
+
import { ISAJson_decoder as ISAJson_decoder_2, ISAJson_encoder as ISAJson_encoder_1, ROCrate_decoder as ROCrate_decoder_1, ROCrate_encoder as ROCrate_encoder_1 } from "./Sample.js";
|
|
2
2
|
import { ISAJson_decoder as ISAJson_decoder_3, ISAJson_encoder as ISAJson_encoder_2, ROCrate_decoder as ROCrate_decoder_3, ROCrate_encoder as ROCrate_encoder_2 } from "../Data.js";
|
|
3
3
|
import { ISAJson_decoder as ISAJson_decoder_4, ISAJson_encoder as ISAJson_encoder_3, ROCrate_decoder as ROCrate_decoder_4, ROCrate_encoder as ROCrate_encoder_3 } from "./Material.js";
|
|
4
|
-
import { ISAJson_decoder as ISAJson_decoder_1, ISAJson_encoder as ISAJson_encoder_4, ROCrate_decoder as
|
|
4
|
+
import { ISAJson_decoder as ISAJson_decoder_1, ISAJson_encoder as ISAJson_encoder_4, ROCrate_decoder as ROCrate_decoder_2, ROCrate_encoder as ROCrate_encoder_4 } from "./Source.js";
|
|
5
5
|
import { map, oneOf } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
6
6
|
import { ProcessInput } from "../../Core/Process/ProcessInput.js";
|
|
7
7
|
import { ofArray } from "../../fable_modules/fable-library-js.4.22.0/List.js";
|
|
@@ -19,7 +19,7 @@ export function ROCrate_encoder(value) {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export const ROCrate_decoder = oneOf(ofArray([map((Item) => (new ProcessInput(
|
|
22
|
+
export const ROCrate_decoder = oneOf(ofArray([map((Item) => (new ProcessInput(1, [Item])), ROCrate_decoder_1), map((Item_1) => (new ProcessInput(0, [Item_1])), ROCrate_decoder_2), map((Item_2) => (new ProcessInput(2, [Item_2])), ROCrate_decoder_3), map((Item_3) => (new ProcessInput(3, [Item_3])), ROCrate_decoder_4)]));
|
|
23
23
|
|
|
24
24
|
export function ISAJson_encoder(idMap, value) {
|
|
25
25
|
switch (value.tag) {
|
package/Json/Process/Sample.js
CHANGED
|
@@ -7,7 +7,7 @@ import { list as list_5 } from "../../fable_modules/Thoth.Json.Core.0.4.0/Encode
|
|
|
7
7
|
import { tryIncludeListOpt, tryIncludeList, tryInclude } from "../Encode.js";
|
|
8
8
|
import { context_jsonvalue } from "../context/rocrate/isa_sample_context.js";
|
|
9
9
|
import { map as map_2 } from "../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
10
|
-
import { list as list_6, object, string } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
10
|
+
import { unit, list as list_6, object, string } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
11
11
|
import { FSharpResult$2 } from "../../fable_modules/fable-library-js.4.22.0/Result.js";
|
|
12
12
|
import { Option_fromValueWithDefault } from "../../Core/Helper/Collections.js";
|
|
13
13
|
import { Decode_objectNoAdditionalProperties, Decode_uri } from "../Decode.js";
|
|
@@ -44,15 +44,19 @@ export function ROCrate_encoder(oa) {
|
|
|
44
44
|
Encode(helpers_1) {
|
|
45
45
|
return helpers_1.encodeString("Sample");
|
|
46
46
|
},
|
|
47
|
-
}))],
|
|
47
|
+
}))], ["additionalType", {
|
|
48
48
|
Encode(helpers_2) {
|
|
49
|
-
return helpers_2.encodeString(
|
|
49
|
+
return helpers_2.encodeString("Sample");
|
|
50
|
+
},
|
|
51
|
+
}], tryInclude("name", (value_5) => ({
|
|
52
|
+
Encode(helpers_3) {
|
|
53
|
+
return helpers_3.encodeString(value_5);
|
|
50
54
|
},
|
|
51
55
|
}), oa.Name), tryIncludeList("additionalProperties", (x) => x, additionalProperties), ["@context", context_jsonvalue]]));
|
|
52
56
|
return {
|
|
53
|
-
Encode(
|
|
54
|
-
const arg = map_2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(
|
|
55
|
-
return
|
|
57
|
+
Encode(helpers_4) {
|
|
58
|
+
const arg = map_2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values);
|
|
59
|
+
return helpers_4.encodeObject(arg);
|
|
56
60
|
},
|
|
57
61
|
};
|
|
58
62
|
}
|
|
@@ -72,7 +76,7 @@ export const ROCrate_additionalPropertyDecoder = {
|
|
|
72
76
|
};
|
|
73
77
|
|
|
74
78
|
export const ROCrate_decoder = object((get$) => {
|
|
75
|
-
let
|
|
79
|
+
let objectArg_3, objectArg_4, arg_11, objectArg_5;
|
|
76
80
|
let additionalProperties;
|
|
77
81
|
const arg_1 = list_6(ROCrate_additionalPropertyDecoder);
|
|
78
82
|
const objectArg = get$.Optional;
|
|
@@ -85,7 +89,27 @@ export const ROCrate_decoder = object((get$) => {
|
|
|
85
89
|
else {
|
|
86
90
|
patternInput = [undefined, undefined];
|
|
87
91
|
}
|
|
88
|
-
|
|
92
|
+
let matchValue;
|
|
93
|
+
const objectArg_1 = get$.Optional;
|
|
94
|
+
matchValue = objectArg_1.Field("additionalType", Decode_uri);
|
|
95
|
+
let matchResult;
|
|
96
|
+
if (matchValue == null) {
|
|
97
|
+
matchResult = 0;
|
|
98
|
+
}
|
|
99
|
+
else if (matchValue === "Sample") {
|
|
100
|
+
matchResult = 0;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
matchResult = 1;
|
|
104
|
+
}
|
|
105
|
+
switch (matchResult) {
|
|
106
|
+
case 1: {
|
|
107
|
+
const objectArg_2 = get$.Required;
|
|
108
|
+
objectArg_2.Field("FailBecauseNotSample", unit);
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return new Sample((objectArg_3 = get$.Optional, objectArg_3.Field("@id", Decode_uri)), (objectArg_4 = get$.Optional, objectArg_4.Field("name", string)), patternInput[0], patternInput[1], (arg_11 = list_6(ROCrate_decoder_3), (objectArg_5 = get$.Optional, objectArg_5.Field("derivesFrom", arg_11))));
|
|
89
113
|
});
|
|
90
114
|
|
|
91
115
|
export function ISAJson_encoder(idMap, oa) {
|
package/Json/Process/Source.js
CHANGED
|
@@ -7,7 +7,7 @@ import { tryIncludeListOpt, tryInclude } from "../Encode.js";
|
|
|
7
7
|
import { ISAJson_decoder as ISAJson_decoder_1, ISAJson_encoder as ISAJson_encoder_1, ROCrate_decoder as ROCrate_decoder_1, ROCrate_encoder as ROCrate_encoder_1 } from "./MaterialAttributeValue.js";
|
|
8
8
|
import { context_jsonvalue } from "../context/rocrate/isa_source_context.js";
|
|
9
9
|
import { map as map_1 } from "../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
10
|
-
import { list as list_2, string, object } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
10
|
+
import { list as list_2, string, unit, object } from "../../fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
11
11
|
import { Decode_objectNoAdditionalProperties, Decode_uri } from "../Decode.js";
|
|
12
12
|
import { Source } from "../../Core/Process/Source.js";
|
|
13
13
|
import { encode } from "../IDTable.js";
|
|
@@ -38,22 +38,46 @@ export function ROCrate_encoder(oa) {
|
|
|
38
38
|
Encode(helpers_1) {
|
|
39
39
|
return helpers_1.encodeString("Source");
|
|
40
40
|
},
|
|
41
|
-
}))],
|
|
41
|
+
}))], ["additionalType", {
|
|
42
42
|
Encode(helpers_2) {
|
|
43
|
-
return helpers_2.encodeString(
|
|
43
|
+
return helpers_2.encodeString("Source");
|
|
44
|
+
},
|
|
45
|
+
}], tryInclude("name", (value_3) => ({
|
|
46
|
+
Encode(helpers_3) {
|
|
47
|
+
return helpers_3.encodeString(value_3);
|
|
44
48
|
},
|
|
45
49
|
}), oa.Name), tryIncludeListOpt("characteristics", ROCrate_encoder_1, oa.Characteristics), ["@context", context_jsonvalue]]));
|
|
46
50
|
return {
|
|
47
|
-
Encode(
|
|
48
|
-
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(
|
|
49
|
-
return
|
|
51
|
+
Encode(helpers_4) {
|
|
52
|
+
const arg = map_1((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values);
|
|
53
|
+
return helpers_4.encodeObject(arg);
|
|
50
54
|
},
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
export const ROCrate_decoder = object((get$) => {
|
|
55
|
-
let
|
|
56
|
-
|
|
59
|
+
let objectArg_2, objectArg_3, arg_9, objectArg_4;
|
|
60
|
+
let matchValue;
|
|
61
|
+
const objectArg = get$.Optional;
|
|
62
|
+
matchValue = objectArg.Field("additionalType", Decode_uri);
|
|
63
|
+
let matchResult;
|
|
64
|
+
if (matchValue == null) {
|
|
65
|
+
matchResult = 0;
|
|
66
|
+
}
|
|
67
|
+
else if (matchValue === "Source") {
|
|
68
|
+
matchResult = 0;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
matchResult = 1;
|
|
72
|
+
}
|
|
73
|
+
switch (matchResult) {
|
|
74
|
+
case 1: {
|
|
75
|
+
const objectArg_1 = get$.Required;
|
|
76
|
+
objectArg_1.Field("FailBecauseNotSample", unit);
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return new Source((objectArg_2 = get$.Optional, objectArg_2.Field("@id", Decode_uri)), (objectArg_3 = get$.Optional, objectArg_3.Field("name", string)), (arg_9 = list_2(ROCrate_decoder_1), (objectArg_4 = get$.Optional, objectArg_4.Field("characteristics", arg_9))));
|
|
57
81
|
});
|
|
58
82
|
|
|
59
83
|
export function ISAJson_encoder(idMap, oa) {
|
|
@@ -3,7 +3,7 @@ import { record_type, string_type } from "../../../fable_modules/fable-library-j
|
|
|
3
3
|
import { map } from "../../../fable_modules/fable-library-js.4.22.0/Seq.js";
|
|
4
4
|
|
|
5
5
|
export class IContext extends Record {
|
|
6
|
-
constructor(sdo, arc, Assay, ArcAssay, measurementType, technologyType, technologyPlatform, dataFiles, materials, otherMaterials, samples, characteristicCategories,
|
|
6
|
+
constructor(sdo, arc, Assay, ArcAssay, measurementType, technologyType, technologyPlatform, dataFiles, materials, otherMaterials, samples, characteristicCategories, processSequence, unitCategories, comments, filename) {
|
|
7
7
|
super();
|
|
8
8
|
this.sdo = sdo;
|
|
9
9
|
this.arc = arc;
|
|
@@ -17,7 +17,7 @@ export class IContext extends Record {
|
|
|
17
17
|
this.otherMaterials = otherMaterials;
|
|
18
18
|
this.samples = samples;
|
|
19
19
|
this.characteristicCategories = characteristicCategories;
|
|
20
|
-
this.
|
|
20
|
+
this.processSequence = processSequence;
|
|
21
21
|
this.unitCategories = unitCategories;
|
|
22
22
|
this.comments = comments;
|
|
23
23
|
this.filename = filename;
|
|
@@ -25,7 +25,7 @@ export class IContext extends Record {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export function IContext_$reflection() {
|
|
28
|
-
return record_type("ARCtrl.Json.ROCrateContext.Assay.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["Assay", string_type], ["ArcAssay", string_type], ["measurementType", string_type], ["technologyType", string_type], ["technologyPlatform", string_type], ["dataFiles", string_type], ["materials", string_type], ["otherMaterials", string_type], ["samples", string_type], ["characteristicCategories", string_type], ["
|
|
28
|
+
return record_type("ARCtrl.Json.ROCrateContext.Assay.IContext", [], IContext, () => [["sdo", string_type], ["arc", string_type], ["Assay", string_type], ["ArcAssay", string_type], ["measurementType", string_type], ["technologyType", string_type], ["technologyPlatform", string_type], ["dataFiles", string_type], ["materials", string_type], ["otherMaterials", string_type], ["samples", string_type], ["characteristicCategories", string_type], ["processSequence", string_type], ["unitCategories", string_type], ["comments", string_type], ["filename", string_type]]);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export const context_jsonvalue = (() => {
|
|
@@ -65,7 +65,7 @@ export const context_jsonvalue = (() => {
|
|
|
65
65
|
Encode(helpers_8) {
|
|
66
66
|
return helpers_8.encodeString("sdo:creator");
|
|
67
67
|
},
|
|
68
|
-
}], ["
|
|
68
|
+
}], ["processSequence", {
|
|
69
69
|
Encode(helpers_9) {
|
|
70
70
|
return helpers_9.encodeString("sdo:about");
|
|
71
71
|
},
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { fromString } from "../fable_modules/Thoth.Json.JavaScript.0.3.0/Decode.fs.js";
|
|
2
|
+
import { encoder, decoder as decoder_1 } from "../Json/LDObject.js";
|
|
3
|
+
import { printf, toText } from "../fable_modules/fable-library-js.4.22.0/String.js";
|
|
4
|
+
import { toString } from "../fable_modules/Thoth.Json.JavaScript.0.3.0/Encode.fs.js";
|
|
5
|
+
import { defaultSpaces } from "../Json/Encode.js";
|
|
6
|
+
import { unwrap } from "../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
7
|
+
|
|
8
|
+
export function ARCtrl_ROCrate_LDObject__LDObject_fromROCrateJsonString_Static_Z721C83C5(s) {
|
|
9
|
+
const matchValue = fromString(decoder_1, s);
|
|
10
|
+
if (matchValue.tag === 1) {
|
|
11
|
+
throw new Error(toText(printf("Error decoding string: %O"))(matchValue.fields[0]));
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return matchValue.fields[0];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* exports in json-ld format
|
|
20
|
+
*/
|
|
21
|
+
export function ARCtrl_ROCrate_LDObject__LDObject_toROCrateJsonString_Static_71136F3F(spaces) {
|
|
22
|
+
return (obj) => {
|
|
23
|
+
const value = encoder(obj);
|
|
24
|
+
return toString(defaultSpaces(spaces), value);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function ARCtrl_ROCrate_LDObject__LDObject_ToROCrateJsonString_71136F3F(this$, spaces) {
|
|
29
|
+
return ARCtrl_ROCrate_LDObject__LDObject_toROCrateJsonString_Static_71136F3F(unwrap(spaces))(this$);
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defaultOf } from "../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
2
|
+
import { FSharpRef } from "../fable_modules/fable-library-js.4.22.0/Types.js";
|
|
3
|
+
import { setOptionalProperty } from "../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
|
|
4
|
+
import { DynamicObj } from "../fable_modules/DynamicObj.4.0.3/DynamicObj.fs.js";
|
|
5
|
+
import { LDObject_$reflection, LDObject, LDContext_$ctor } from "./LDObject.js";
|
|
6
|
+
import { class_type } from "../fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
7
|
+
|
|
8
|
+
export class ArcROCrateMetadata extends LDObject {
|
|
9
|
+
constructor(about) {
|
|
10
|
+
super("ro-crate-metadata", "CreativeWork");
|
|
11
|
+
const this$ = new FSharpRef(defaultOf());
|
|
12
|
+
this$.contents = this;
|
|
13
|
+
this["init@5"] = 1;
|
|
14
|
+
setOptionalProperty("about", about, this$.contents);
|
|
15
|
+
const conformsTo = new DynamicObj();
|
|
16
|
+
conformsTo.SetProperty("@id", "https://w3id.org/ro/crate/1.1");
|
|
17
|
+
this$.contents.SetProperty("conformsTo", conformsTo);
|
|
18
|
+
const context = LDContext_$ctor();
|
|
19
|
+
context.SetProperty("sdo", "http://schema.org/");
|
|
20
|
+
context.SetProperty("arc", "http://purl.org/nfdi4plants/ontology/");
|
|
21
|
+
context.SetProperty("CreativeWork", "sdo:CreativeWork");
|
|
22
|
+
context.SetProperty("about", "sdo:about");
|
|
23
|
+
context.SetProperty("conformsTo", "sdo:conformsTo");
|
|
24
|
+
this$.contents.SetProperty("@context", context);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function ArcROCrateMetadata_$reflection() {
|
|
29
|
+
return class_type("ARCtrl.ROCrate.ArcROCrateMetadata", undefined, ArcROCrateMetadata, LDObject_$reflection());
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function ArcROCrateMetadata_$ctor_Z475E1643(about) {
|
|
33
|
+
return new ArcROCrateMetadata(about);
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
|
|
2
|
+
import { value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
1
3
|
import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
2
4
|
import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
|
|
3
|
-
import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
|
|
4
5
|
import { Dataset_$reflection, Dataset } from "./Dataset.js";
|
|
5
6
|
import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
6
7
|
|
|
@@ -20,13 +21,40 @@ export class Assay extends Dataset {
|
|
|
20
21
|
setOptionalProperty("hasPart", hasPart, this$.contents);
|
|
21
22
|
setOptionalProperty("url", url, this$.contents);
|
|
22
23
|
}
|
|
24
|
+
GetIdentifier() {
|
|
25
|
+
const this$ = this;
|
|
26
|
+
const obj = this$;
|
|
27
|
+
if (tryGetPropertyValue("identifier", obj) != null) {
|
|
28
|
+
let matchValue;
|
|
29
|
+
const matchValue_1 = obj.TryGetPropertyValue("identifier");
|
|
30
|
+
if (matchValue_1 != null) {
|
|
31
|
+
const o = value_1(matchValue_1);
|
|
32
|
+
matchValue = ((typeof o === "string") ? o : undefined);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
matchValue = undefined;
|
|
36
|
+
}
|
|
37
|
+
if (matchValue == null) {
|
|
38
|
+
throw new Error(`Property '${"identifier"}' is set on this '${"Assay"}' object but cannot be cast to '${"String"}'`);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return matchValue;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
throw new Error(`No property '${"identifier"}' set on this '${"Assay"}' object although it is mandatory. Was it created correctly?`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
static get getIdentifier() {
|
|
49
|
+
return (ass) => ass.GetIdentifier();
|
|
50
|
+
}
|
|
23
51
|
}
|
|
24
52
|
|
|
25
53
|
export function Assay_$reflection() {
|
|
26
54
|
return class_type("ARCtrl.ROCrate.Assay", undefined, Assay, Dataset_$reflection());
|
|
27
55
|
}
|
|
28
56
|
|
|
29
|
-
export function Assay_$
|
|
57
|
+
export function Assay_$ctor_Z318F9460(id, identifier, about, comment, creator, hasPart, measurementMethod, measurementTechnique, url, variableMeasured) {
|
|
30
58
|
return new Assay(id, identifier, about, comment, creator, hasPart, measurementMethod, measurementTechnique, url, variableMeasured);
|
|
31
59
|
}
|
|
32
60
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
|
|
2
|
+
import { unwrap, value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
1
3
|
import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
2
4
|
import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
|
|
3
|
-
import {
|
|
4
|
-
import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
|
|
5
|
-
import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
5
|
+
import { LDObject_$reflection, LDObject } from "../LDObject.js";
|
|
6
6
|
import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
7
7
|
|
|
8
|
-
export class Data extends
|
|
8
|
+
export class Data extends LDObject {
|
|
9
9
|
constructor(id, name, additionalType, comment, encodingFormat, disambiguatingDescription) {
|
|
10
10
|
super(id, "schema.org/MediaObject", unwrap(additionalType));
|
|
11
11
|
const this$ = new FSharpRef(defaultOf());
|
|
@@ -16,10 +16,37 @@ export class Data extends ROCrateObject {
|
|
|
16
16
|
setOptionalProperty("encodingFormat", encodingFormat, this$.contents);
|
|
17
17
|
setOptionalProperty("disambiguatingDescription", disambiguatingDescription, this$.contents);
|
|
18
18
|
}
|
|
19
|
+
GetName() {
|
|
20
|
+
const this$ = this;
|
|
21
|
+
const obj = this$;
|
|
22
|
+
if (tryGetPropertyValue("name", obj) != null) {
|
|
23
|
+
let matchValue;
|
|
24
|
+
const matchValue_1 = obj.TryGetPropertyValue("name");
|
|
25
|
+
if (matchValue_1 != null) {
|
|
26
|
+
const o = value_1(matchValue_1);
|
|
27
|
+
matchValue = ((typeof o === "string") ? o : undefined);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
matchValue = undefined;
|
|
31
|
+
}
|
|
32
|
+
if (matchValue == null) {
|
|
33
|
+
throw new Error(`Property '${"name"}' is set on this '${"Data"}' object but cannot be cast to '${"String"}'`);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return matchValue;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
throw new Error(`No property '${"name"}' set on this '${"Data"}' object although it is mandatory. Was it created correctly?`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
static get getName() {
|
|
44
|
+
return (d) => d.GetName();
|
|
45
|
+
}
|
|
19
46
|
}
|
|
20
47
|
|
|
21
48
|
export function Data_$reflection() {
|
|
22
|
-
return class_type("ARCtrl.ROCrate.Data", undefined, Data,
|
|
49
|
+
return class_type("ARCtrl.ROCrate.Data", undefined, Data, LDObject_$reflection());
|
|
23
50
|
}
|
|
24
51
|
|
|
25
52
|
export function Data_$ctor_Z68810720(id, name, additionalType, comment, encodingFormat, disambiguatingDescription) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LDObject_$reflection, LDObject } from "../LDObject.js";
|
|
2
2
|
import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
3
3
|
import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
4
4
|
|
|
5
|
-
export class Dataset extends
|
|
5
|
+
export class Dataset extends LDObject {
|
|
6
6
|
constructor(id, additionalType) {
|
|
7
7
|
super(id, "schema.org/Dataset", unwrap(additionalType));
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export function Dataset_$reflection() {
|
|
12
|
-
return class_type("ARCtrl.ROCrate.Dataset", undefined, Dataset,
|
|
12
|
+
return class_type("ARCtrl.ROCrate.Dataset", undefined, Dataset, LDObject_$reflection());
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export function Dataset_$ctor_27AED5E3(id, additionalType) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
|
|
2
|
+
import { value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
1
3
|
import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
2
4
|
import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
|
|
3
|
-
import { setOptionalProperty, setProperty } from "../../fable_modules/DynamicObj.4.0.0/DynObj.fs.js";
|
|
4
5
|
import { Dataset_$reflection, Dataset } from "./Dataset.js";
|
|
5
6
|
import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
6
7
|
|
|
@@ -23,13 +24,40 @@ export class Investigation extends Dataset {
|
|
|
23
24
|
setOptionalProperty("url", url, this$.contents);
|
|
24
25
|
setOptionalProperty("description", description, this$.contents);
|
|
25
26
|
}
|
|
27
|
+
GetIdentifier() {
|
|
28
|
+
const this$ = this;
|
|
29
|
+
const obj = this$;
|
|
30
|
+
if (tryGetPropertyValue("identifier", obj) != null) {
|
|
31
|
+
let matchValue;
|
|
32
|
+
const matchValue_1 = obj.TryGetPropertyValue("identifier");
|
|
33
|
+
if (matchValue_1 != null) {
|
|
34
|
+
const o = value_1(matchValue_1);
|
|
35
|
+
matchValue = ((typeof o === "string") ? o : undefined);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
matchValue = undefined;
|
|
39
|
+
}
|
|
40
|
+
if (matchValue == null) {
|
|
41
|
+
throw new Error(`Property '${"identifier"}' is set on this '${"Investigation"}' object but cannot be cast to '${"String"}'`);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return matchValue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
throw new Error(`No property '${"identifier"}' set on this '${"Investigation"}' object although it is mandatory. Was it created correctly?`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
static get getIdentifier() {
|
|
52
|
+
return (inv) => inv.GetIdentifier();
|
|
53
|
+
}
|
|
26
54
|
}
|
|
27
55
|
|
|
28
56
|
export function Investigation_$reflection() {
|
|
29
57
|
return class_type("ARCtrl.ROCrate.Investigation", undefined, Investigation, Dataset_$reflection());
|
|
30
58
|
}
|
|
31
59
|
|
|
32
|
-
export function Investigation_$
|
|
60
|
+
export function Investigation_$ctor_Z47833D48(id, identifier, citation, comment, creator, dateCreated, dateModified, datePublished, hasPart, headline, mentions, url, description) {
|
|
33
61
|
return new Investigation(id, identifier, citation, comment, creator, dateCreated, dateModified, datePublished, hasPart, headline, mentions, url, description);
|
|
34
62
|
}
|
|
35
63
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { setOptionalProperty, setProperty, tryGetPropertyValue } from "../../fable_modules/DynamicObj.4.0.3/DynObj.fs.js";
|
|
2
|
+
import { unwrap, value as value_1 } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
1
3
|
import { defaultOf } from "../../fable_modules/fable-library-js.4.22.0/Util.js";
|
|
2
4
|
import { FSharpRef } from "../../fable_modules/fable-library-js.4.22.0/Types.js";
|
|
3
|
-
import {
|
|
4
|
-
import { ROCrateObject_$reflection, ROCrateObject } from "../ROCrateObject.js";
|
|
5
|
-
import { unwrap } from "../../fable_modules/fable-library-js.4.22.0/Option.js";
|
|
5
|
+
import { LDObject_$reflection, LDObject } from "../LDObject.js";
|
|
6
6
|
import { class_type } from "../../fable_modules/fable-library-js.4.22.0/Reflection.js";
|
|
7
7
|
|
|
8
|
-
export class LabProcess extends
|
|
8
|
+
export class LabProcess extends LDObject {
|
|
9
9
|
constructor(id, name, agent, object, result, additionalType, executesLabProtocol, parameterValue, endTime, disambiguatingDescription) {
|
|
10
10
|
super(id, "bioschemas.org/LabProcess", unwrap(additionalType));
|
|
11
11
|
const this$ = new FSharpRef(defaultOf());
|
|
@@ -20,10 +20,118 @@ export class LabProcess extends ROCrateObject {
|
|
|
20
20
|
setOptionalProperty("endTime", endTime, this$.contents);
|
|
21
21
|
setOptionalProperty("disambiguatingDescription", disambiguatingDescription, this$.contents);
|
|
22
22
|
}
|
|
23
|
+
GetName() {
|
|
24
|
+
const this$ = this;
|
|
25
|
+
const obj = this$;
|
|
26
|
+
if (tryGetPropertyValue("name", obj) != null) {
|
|
27
|
+
let matchValue;
|
|
28
|
+
const matchValue_1 = obj.TryGetPropertyValue("name");
|
|
29
|
+
if (matchValue_1 != null) {
|
|
30
|
+
const o = value_1(matchValue_1);
|
|
31
|
+
matchValue = ((typeof o === "string") ? o : undefined);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
matchValue = undefined;
|
|
35
|
+
}
|
|
36
|
+
if (matchValue == null) {
|
|
37
|
+
throw new Error(`Property '${"name"}' is set on this '${"LabProcess"}' object but cannot be cast to '${"String"}'`);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return matchValue;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
throw new Error(`No property '${"name"}' set on this '${"LabProcess"}' object although it is mandatory. Was it created correctly?`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
static get getName() {
|
|
48
|
+
return (lp) => lp.GetName();
|
|
49
|
+
}
|
|
50
|
+
GetAgent() {
|
|
51
|
+
const this$ = this;
|
|
52
|
+
const obj = this$;
|
|
53
|
+
if (tryGetPropertyValue("agent", obj) != null) {
|
|
54
|
+
let matchValue;
|
|
55
|
+
const matchValue_1 = obj.TryGetPropertyValue("agent");
|
|
56
|
+
if (matchValue_1 != null) {
|
|
57
|
+
const o = value_1(matchValue_1);
|
|
58
|
+
matchValue = ((typeof o === "string") ? o : undefined);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
matchValue = undefined;
|
|
62
|
+
}
|
|
63
|
+
if (matchValue == null) {
|
|
64
|
+
throw new Error(`Property '${"agent"}' is set on this '${"LabProcess"}' object but cannot be cast to '${"String"}'`);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
return matchValue;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
throw new Error(`No property '${"agent"}' set on this '${"LabProcess"}' object although it is mandatory. Was it created correctly?`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
static get getAgent() {
|
|
75
|
+
return (lp) => lp.GetAgent();
|
|
76
|
+
}
|
|
77
|
+
GetObject() {
|
|
78
|
+
const this$ = this;
|
|
79
|
+
const obj = this$;
|
|
80
|
+
if (tryGetPropertyValue("object", obj) != null) {
|
|
81
|
+
let matchValue;
|
|
82
|
+
const matchValue_1 = obj.TryGetPropertyValue("object");
|
|
83
|
+
if (matchValue_1 != null) {
|
|
84
|
+
const o = value_1(matchValue_1);
|
|
85
|
+
matchValue = ((typeof o === "string") ? o : undefined);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
matchValue = undefined;
|
|
89
|
+
}
|
|
90
|
+
if (matchValue == null) {
|
|
91
|
+
throw new Error(`Property '${"object"}' is set on this '${"LabProcess"}' object but cannot be cast to '${"String"}'`);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return matchValue;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
throw new Error(`No property '${"object"}' set on this '${"LabProcess"}' object although it is mandatory. Was it created correctly?`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
static get getObject() {
|
|
102
|
+
return (lp) => lp.GetObject();
|
|
103
|
+
}
|
|
104
|
+
GetResult() {
|
|
105
|
+
const this$ = this;
|
|
106
|
+
const obj = this$;
|
|
107
|
+
if (tryGetPropertyValue("result", obj) != null) {
|
|
108
|
+
let matchValue;
|
|
109
|
+
const matchValue_1 = obj.TryGetPropertyValue("result");
|
|
110
|
+
if (matchValue_1 != null) {
|
|
111
|
+
const o = value_1(matchValue_1);
|
|
112
|
+
matchValue = ((typeof o === "string") ? o : undefined);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
matchValue = undefined;
|
|
116
|
+
}
|
|
117
|
+
if (matchValue == null) {
|
|
118
|
+
throw new Error(`Property '${"result"}' is set on this '${"LabProcess"}' object but cannot be cast to '${"String"}'`);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return matchValue;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
throw new Error(`No property '${"result"}' set on this '${"LabProcess"}' object although it is mandatory. Was it created correctly?`);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
static get getResult() {
|
|
129
|
+
return (lp) => lp.GetResult();
|
|
130
|
+
}
|
|
23
131
|
}
|
|
24
132
|
|
|
25
133
|
export function LabProcess_$reflection() {
|
|
26
|
-
return class_type("ARCtrl.ROCrate.LabProcess", undefined, LabProcess,
|
|
134
|
+
return class_type("ARCtrl.ROCrate.LabProcess", undefined, LabProcess, LDObject_$reflection());
|
|
27
135
|
}
|
|
28
136
|
|
|
29
137
|
export function LabProcess_$ctor_Z33971C5D(id, name, agent, object, result, additionalType, executesLabProtocol, parameterValue, endTime, disambiguatingDescription) {
|