@nfdi4plants/arctrl 3.1.0 → 3.1.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/dist/ts/ts/CWL/CWLTypes.d.ts +162 -45
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLTypes.js +495 -104
- package/dist/ts/ts/CWL/Decode.d.ts +291 -48
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +911 -568
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +37 -0
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -0
- package/dist/ts/ts/CWL/DynamicObjHelpers.js +57 -0
- package/dist/ts/ts/CWL/Encode.d.ts +117 -2
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +399 -163
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +2 -0
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +7 -0
- package/dist/ts/ts/CWL/Inputs.d.ts +65 -14
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Inputs.js +194 -51
- package/dist/ts/ts/CWL/OperationDescription.d.ts +2 -0
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/OperationDescription.js +7 -0
- package/dist/ts/ts/CWL/Outputs.d.ts +51 -12
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Outputs.js +152 -76
- package/dist/ts/ts/CWL/ParameterReference.d.ts +4 -1
- package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterReference.js +17 -6
- package/dist/ts/ts/CWL/Requirements.d.ts +140 -51
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Requirements.js +458 -128
- package/dist/ts/ts/CWL/ToolDescription.d.ts +27 -2
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ToolDescription.js +74 -4
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +2 -0
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowDescription.js +7 -0
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +50 -19
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +152 -23
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +4 -1
- package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Assay.js +4 -3
- package/dist/ts/ts/Conversion/Investigation.js +2 -2
- package/dist/ts/ts/Conversion/Person.d.ts +1 -1
- package/dist/ts/ts/Conversion/Person.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Person.js +27 -11
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Run.js +3 -2
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ScholarlyArticle.js +2 -1
- package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Study.js +5 -4
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Workflow.js +13 -12
- package/dist/ts/ts/Conversion.d.ts +14 -10
- package/dist/ts/ts/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Conversion.js +18 -11
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +18 -0
- package/dist/ts/ts/Json.d.ts +2 -2
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +3 -3
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +2 -1
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +5 -5
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -5
- package/dist/ts/ts/Yaml.js +1 -1
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/Decode.fs.js +5 -33
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/Persil.fs.js +11 -159
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.11/Preprocessing.fs.js +319 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.11/Reader.fs.js +1867 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/Regex.fs.js +1 -1
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/RegexActivePatterns.fs.js +2 -2
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.11/Syntax.fs.js +819 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/Writer.fs.js +75 -48
- package/package.json +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.7/FlowToBlock.fs.js +0 -956
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.7/Preprocessing.fs.js +0 -181
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.7/Reader.fs.js +0 -1493
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/Encode.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/Escapes.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/Interop/JsInterop.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/StringBuffer.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.7 → YAMLicious.1.0.0-alpha.11}/YAMLiciousTypes.fs.js +0 -0
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { length, takeWhile } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
2
|
-
import { trimStart, substring } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
3
|
-
import { isWhiteSpace } from '../../../node_modules/@fable-org/fable-library-js/Char.js';
|
|
4
|
-
import { Config_init_71136F3F, Config__get_WhitespaceString, Config, PreprocessorElement_Line, PreprocessorElement_Intendation, Preprocessor, PreprocessorElement_Level } from './YAMLiciousTypes.fs.js';
|
|
5
|
-
import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
|
-
import { StringBuffer_$ctor, StringBuffer__AppendLine_Z721C83C5 } from './StringBuffer.fs.js';
|
|
7
|
-
import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
8
|
-
import { toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
9
|
-
import { pipeline } from './Persil.fs.js';
|
|
10
|
-
import { isEmpty, tail, head, tryFind, cons, takeWhile as takeWhile$1, skipWhile, reverse, empty, ofArray, ofSeq } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
11
|
-
|
|
12
|
-
function ReadHelpers_indentLevel(line) {
|
|
13
|
-
return length(takeWhile((c) => c === " ", line.split("")));
|
|
14
|
-
}
|
|
15
|
-
function isDocumentMarker(marker, line) {
|
|
16
|
-
const trimmed = trimStart(line);
|
|
17
|
-
if (!trimmed.startsWith(marker)) {
|
|
18
|
-
return false;
|
|
19
|
-
} else if (trimmed.length === marker.length) {
|
|
20
|
-
return true;
|
|
21
|
-
} else {
|
|
22
|
-
return isWhiteSpace(trimmed[marker.length]);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function isDocumentStart(line) {
|
|
26
|
-
return isDocumentMarker("---", line);
|
|
27
|
-
}
|
|
28
|
-
function isDocumentEnd(line) {
|
|
29
|
-
return isDocumentMarker("...", line);
|
|
30
|
-
}
|
|
31
|
-
function write(rootElement, fconfig) {
|
|
32
|
-
let config_1;
|
|
33
|
-
const config = Config_init_71136F3F();
|
|
34
|
-
config_1 = fconfig != null ? value(fconfig)(config) : config;
|
|
35
|
-
const sb = StringBuffer_$ctor();
|
|
36
|
-
const loop = (current, sb_1, config_2) => {
|
|
37
|
-
switch (current.tag) {
|
|
38
|
-
case /* Intendation */
|
|
39
|
-
1: {
|
|
40
|
-
const nextConfig = new Config(config_2.Whitespace, config_2.Level + 1);
|
|
41
|
-
const enumerator = getEnumerator(current.fields[0]);
|
|
42
|
-
try {
|
|
43
|
-
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
44
|
-
loop(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"](), sb_1, nextConfig);
|
|
45
|
-
}
|
|
46
|
-
} finally {
|
|
47
|
-
disposeSafe(enumerator);
|
|
48
|
-
}
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
case /* Level */
|
|
52
|
-
0: {
|
|
53
|
-
const enumerator_1 = getEnumerator(current.fields[0]);
|
|
54
|
-
try {
|
|
55
|
-
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
56
|
-
loop(enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"](), sb_1, config_2);
|
|
57
|
-
}
|
|
58
|
-
} finally {
|
|
59
|
-
disposeSafe(enumerator_1);
|
|
60
|
-
}
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
case /* Nil */
|
|
64
|
-
3: {
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
default: {
|
|
68
|
-
const line = current.fields[0];
|
|
69
|
-
StringBuffer__AppendLine_Z721C83C5(sb_1, Config__get_WhitespaceString(config_2) + line);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
loop(rootElement, sb, config_1);
|
|
74
|
-
return toString(sb);
|
|
75
|
-
}
|
|
76
|
-
function read(yamlStr) {
|
|
77
|
-
const content = pipeline(yamlStr);
|
|
78
|
-
const stripIndent = (indent, line) => {
|
|
79
|
-
if (indent <= 0) {
|
|
80
|
-
return line;
|
|
81
|
-
} else if (line.length >= indent) {
|
|
82
|
-
return substring(line, indent);
|
|
83
|
-
} else {
|
|
84
|
-
return trimStart(line);
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
const loop = (lines_mut, currentIntendation_mut, acc_mut) => {
|
|
88
|
-
loop:
|
|
89
|
-
while (true) {
|
|
90
|
-
const lines = lines_mut, currentIntendation = currentIntendation_mut, acc = acc_mut;
|
|
91
|
-
if (!isEmpty(lines)) {
|
|
92
|
-
const rest = tail(lines);
|
|
93
|
-
const line_1 = head(lines);
|
|
94
|
-
if (line_1.trim() === "") {
|
|
95
|
-
const nextIndentedLine = tryFind((l) => l.trim() !== "", rest);
|
|
96
|
-
let matchResult, nextLine_1;
|
|
97
|
-
if (nextIndentedLine != null) {
|
|
98
|
-
if (ReadHelpers_indentLevel(value(nextIndentedLine)) > currentIntendation) {
|
|
99
|
-
matchResult = 0;
|
|
100
|
-
nextLine_1 = value(nextIndentedLine);
|
|
101
|
-
} else {
|
|
102
|
-
matchResult = 1;
|
|
103
|
-
}
|
|
104
|
-
} else {
|
|
105
|
-
matchResult = 1;
|
|
106
|
-
}
|
|
107
|
-
switch (matchResult) {
|
|
108
|
-
case 0: {
|
|
109
|
-
const nextIntendation = ReadHelpers_indentLevel(nextLine_1) | 0;
|
|
110
|
-
const nextLevelLines = takeWhile$1((l_1) => {
|
|
111
|
-
if (l_1.trim() === "") {
|
|
112
|
-
return true;
|
|
113
|
-
} else {
|
|
114
|
-
return ReadHelpers_indentLevel(l_1) > currentIntendation;
|
|
115
|
-
}
|
|
116
|
-
}, cons(line_1, rest));
|
|
117
|
-
lines_mut = skipWhile((l_2) => {
|
|
118
|
-
if (l_2.trim() === "") {
|
|
119
|
-
return true;
|
|
120
|
-
} else {
|
|
121
|
-
return ReadHelpers_indentLevel(l_2) > currentIntendation;
|
|
122
|
-
}
|
|
123
|
-
}, rest);
|
|
124
|
-
currentIntendation_mut = currentIntendation;
|
|
125
|
-
acc_mut = cons(PreprocessorElement_Intendation(reverse(loop(nextLevelLines, nextIntendation, empty()))), acc);
|
|
126
|
-
continue loop;
|
|
127
|
-
}
|
|
128
|
-
default: {
|
|
129
|
-
lines_mut = rest;
|
|
130
|
-
currentIntendation_mut = currentIntendation;
|
|
131
|
-
acc_mut = cons(PreprocessorElement_Line(""), acc);
|
|
132
|
-
continue loop;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
} else {
|
|
136
|
-
const nextIntendation_1 = ReadHelpers_indentLevel(line_1) | 0;
|
|
137
|
-
if (nextIntendation_1 === currentIntendation) {
|
|
138
|
-
lines_mut = rest;
|
|
139
|
-
currentIntendation_mut = currentIntendation;
|
|
140
|
-
acc_mut = cons(PreprocessorElement_Line(stripIndent(currentIntendation, line_1)), acc);
|
|
141
|
-
continue loop;
|
|
142
|
-
} else {
|
|
143
|
-
const lineText_1 = stripIndent(nextIntendation_1, line_1);
|
|
144
|
-
const nextLevelLines_1 = takeWhile$1((l_3) => {
|
|
145
|
-
if (l_3.trim() === "") {
|
|
146
|
-
return true;
|
|
147
|
-
} else {
|
|
148
|
-
return ReadHelpers_indentLevel(l_3) > currentIntendation;
|
|
149
|
-
}
|
|
150
|
-
}, rest);
|
|
151
|
-
lines_mut = skipWhile((l_4) => {
|
|
152
|
-
if (l_4.trim() === "") {
|
|
153
|
-
return true;
|
|
154
|
-
} else {
|
|
155
|
-
return ReadHelpers_indentLevel(l_4) > currentIntendation;
|
|
156
|
-
}
|
|
157
|
-
}, rest);
|
|
158
|
-
currentIntendation_mut = currentIntendation;
|
|
159
|
-
acc_mut = cons(PreprocessorElement_Intendation(cons(PreprocessorElement_Line(lineText_1), reverse(loop(nextLevelLines_1, nextIntendation_1, empty())))), acc);
|
|
160
|
-
continue loop;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
} else {
|
|
164
|
-
return acc;
|
|
165
|
-
}
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
return new Preprocessor(PreprocessorElement_Level(reverse(loop(ofArray(content.Lines), 0, empty()))), content.StringMap, content.CommentMap, content.YAMLVersion, content.TagHandles);
|
|
170
|
-
}
|
|
171
|
-
function mkLine(line) {
|
|
172
|
-
return PreprocessorElement_Line(line);
|
|
173
|
-
}
|
|
174
|
-
function mklLevel(children) {
|
|
175
|
-
return PreprocessorElement_Level(ofSeq(children));
|
|
176
|
-
}
|
|
177
|
-
function mkIntendation(children) {
|
|
178
|
-
return PreprocessorElement_Intendation(ofSeq(children));
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export { ReadHelpers_indentLevel, isDocumentEnd, isDocumentStart, mkIntendation, mkLine, mklLevel, read, write };
|