@nfdi4plants/arctrl 3.0.0 → 3.0.3
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/Decode.d.ts +15 -11
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +73 -23
- package/dist/ts/ts/CWL/Encode.d.ts +8 -1
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +15 -11
- package/dist/ts/ts/CWL/Requirements.d.ts +1 -1
- package/dist/ts/ts/CWL/Requirements.js +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +1 -1
- package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Basic.js +6 -6
- package/dist/ts/ts/Conversion/Workflow.js +3 -3
- package/dist/ts/ts/Core/DataContext.d.ts +21 -29
- package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataContext.js +70 -84
- package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Core/Datamap.js +9 -10
- package/dist/ts/ts/Json/Datamap/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Json/Datamap/DataContext.js +6 -6
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +1 -1
- package/dist/ts/ts/ROCrateIO.d.ts +1 -0
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +6 -3
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +1 -2
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +6 -7
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +2 -2
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +6 -6
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +6 -6
- package/dist/ts/ts/Yaml.js +1 -1
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Encode.fs.js +9 -9
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Escapes.fs.js +313 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/FlowToBlock.fs.js +14 -12
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Persil.fs.js +562 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Preprocessing.fs.js +52 -12
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Reader.fs.js +1314 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Regex.fs.js +7 -1
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/RegexActivePatterns.fs.js +313 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/StringBuffer.fs.js +60 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Writer.fs.js +391 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js +317 -0
- package/package.json +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Persil.fs.js +0 -45
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Reader.fs.js +0 -539
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/RegexActivePatterns.fs.js +0 -216
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Writer.fs.js +0 -164
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/YAMLiciousTypes.fs.js +0 -152
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Decode.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.5}/Interop/JsInterop.fs.js +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
2
|
-
import {
|
|
3
|
-
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.3/YAMLiciousTypes.fs.js';
|
|
2
|
+
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
4
3
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
5
|
-
import {
|
|
4
|
+
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
5
|
+
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
|
|
6
|
+
import { IGetters } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Decode.fs.js';
|
|
6
7
|
import { DynamicObj } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
7
8
|
import { SchemaDefRequirementType, SoftwarePackage, InputEnumSchema, InputRecordSchema, InputRecordField, InputArraySchema, CWLType_$union, SchemaSaladString_$union } from './CWLTypes.js';
|
|
8
9
|
import { CWLOutput, OutputBinding } from './Outputs.js';
|
|
@@ -16,6 +17,9 @@ import { CWLOperationDescription } from './OperationDescription.js';
|
|
|
16
17
|
import { CWLWorkflowDescription } from './WorkflowDescription.js';
|
|
17
18
|
import { CWLParameterReference } from './ParameterReference.js';
|
|
18
19
|
export declare function ResizeArray_map<$a, $b>(f: ((arg0: $a) => $b), a: $a[]): $b[];
|
|
20
|
+
export declare function Decode_countLeadingSpaces(line: string): int32;
|
|
21
|
+
export declare function Decode_isBlankLine(line: string): boolean;
|
|
22
|
+
export declare function Decode_tryParseBlockScalarHeader(line: string): Option<int32>;
|
|
19
23
|
export declare function Decode_normalizeYamlInput(yaml: string): string;
|
|
20
24
|
export declare function Decode_removeFullLineComments(yaml: string): string;
|
|
21
25
|
export declare function Decode_removeYamlComments(yamlElement: YAMLElement_$union): YAMLElement_$union;
|
|
@@ -58,14 +62,14 @@ export declare function Decode_cwlSimpleTypeFromString(s: string): CWLType_$unio
|
|
|
58
62
|
* Recursively parse array shorthand notation (File[][], string[][][], etc.)
|
|
59
63
|
*/
|
|
60
64
|
export declare function Decode_parseArrayShorthand(typeStr: string): Option<CWLType_$union>;
|
|
61
|
-
export declare function inputArraySchemaDecoder$
|
|
62
|
-
export declare const inputArraySchemaDecoder$
|
|
63
|
-
export declare function inputRecordFieldDecoder$
|
|
64
|
-
export declare const inputRecordFieldDecoder$
|
|
65
|
-
export declare function inputRecordSchemaDecoder$
|
|
66
|
-
export declare const inputRecordSchemaDecoder$
|
|
67
|
-
export declare function inputEnumSchemaDecoder$
|
|
68
|
-
export declare const inputEnumSchemaDecoder$
|
|
65
|
+
export declare function inputArraySchemaDecoder$0040315(): ((arg0: YAMLElement_$union) => InputArraySchema);
|
|
66
|
+
export declare const inputArraySchemaDecoder$0040315$002D1: any;
|
|
67
|
+
export declare function inputRecordFieldDecoder$0040329(): ((arg0: YAMLElement_$union) => InputRecordField);
|
|
68
|
+
export declare const inputRecordFieldDecoder$0040329$002D1: any;
|
|
69
|
+
export declare function inputRecordSchemaDecoder$0040368(): ((arg0: YAMLElement_$union) => InputRecordSchema);
|
|
70
|
+
export declare const inputRecordSchemaDecoder$0040368$002D1: any;
|
|
71
|
+
export declare function inputEnumSchemaDecoder$0040395(): ((arg0: YAMLElement_$union) => InputEnumSchema);
|
|
72
|
+
export declare const inputEnumSchemaDecoder$0040395$002D1: any;
|
|
69
73
|
export declare const Decode_inputArraySchemaDecoder: ((arg0: YAMLElement_$union) => InputArraySchema);
|
|
70
74
|
export declare const Decode_inputRecordFieldDecoder: ((arg0: YAMLElement_$union) => InputRecordField);
|
|
71
75
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Decode.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/Decode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,IAAI,EAA8B,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"Decode.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/Decode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,IAAI,EAA8B,MAAM,qCAAqC,CAAC;AAEvH,OAAO,EAAW,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAGtE,OAAO,EAAkE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAE/H,OAAO,EAAiF,UAAU,EAAwC,MAAM,qCAAqC,CAAC;AACtL,OAAO,EAA4I,kBAAkB,EAAE,MAAM,iEAAiE,CAAC;AAC/O,OAAO,EAA8F,QAAQ,EAAgB,MAAM,wDAAwD,CAAC;AAE5L,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAA+C,eAAe,EAAE,iBAAiB,EAAE,gBAAgB,EAAiB,gBAAgB,EAA0O,cAAc,EAA6E,wBAAwB,EAAkF,MAAM,eAAe,CAAC;AAC3nB,OAAO,EAA8C,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAknB,gCAAgC,EAAE,yBAAyB,EAAuF,6BAA6B,EAAuH,kBAAkB,EAA2G,2BAA2B,EAAqE,2BAA2B,EAAsC,cAAc,EAAE,iBAAiB,EAAsC,0BAA0B,EAAuI,MAAM,mBA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EG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAE3E;AAED,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,qBAAqB,CAgO1I;AAED,eAAO,MAAM,kDAAkD,GAAI,OAAO,kBAAkB,KAAG,qBAAqB,EAI3G,CAAC;AAEV,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,EAAE,CAE9F"}
|
package/dist/ts/ts/CWL/Decode.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { getEnumerator, disposeSafe, Lazy } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
2
|
-
import {
|
|
2
|
+
import { length, takeWhile, toArray, delay, collect, append, empty as empty$1, singleton, head as head$1, map as map$2 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
|
+
import { isMatch } from '../../node_modules/@fable-org/fable-library-js/RegExp.js';
|
|
4
|
+
import { trimEnd, replace, join, trimStart, toText, interpolate, printf, substring, trim } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
5
|
+
import { value, map as map$1, unwrap, defaultArg, some, bind } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
6
|
import { item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
4
7
|
import { choose, isEmpty, head, tail, iterate, map, empty, exists, tryPick, cons, singleton as singleton$1, ofArray, tryHead } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
|
-
import { YAMLElement_Mapping, YAMLElement_Sequence, YAMLElement_Object,
|
|
6
|
-
import {
|
|
7
|
-
import { read, object, string, bool, resizearray, int } from '../fable_modules/YAMLicious.1.0.0-alpha.3/Decode.fs.js';
|
|
8
|
+
import { YAMLElement_Mapping, YAMLElement_Sequence, YAMLElement_Object, YAMLContent_create_Z1C3A29C9, YAMLElement_Value } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
|
|
9
|
+
import { read, object, string, bool, resizearray, int } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Decode.fs.js';
|
|
8
10
|
import { setProperty, setOptionalProperty } from '../fable_modules/DynamicObj.7.1.0/DynObj.fs.js';
|
|
9
11
|
import { DynamicObj } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
10
12
|
import { SchemaSaladString_Literal, SchemaSaladString_Import, SchemaSaladString_Include, SchemaSaladStringModule_toDirectiveString, CWLType_Dirent, DirentInstance, DirectoryInstance_$ctor, FileInstance_$ctor, CWLType_Null, CWLType_Stdout, CWLType_Boolean, CWLType_Double, CWLType_Float, CWLType_Long, CWLType_Int, CWLType_String, CWLType_Directory, CWLType_File, CWLType_Array, InputArraySchema, InputRecordField, InputRecordSchema, InputEnumSchema, CWLType_Union, CWLType_Record, CWLType_Enum, SoftwarePackage, SchemaDefRequirementType } from './CWLTypes.js';
|
|
11
13
|
import { OutputBinding, CWLOutput, OutputSource_Multiple, OutputSource_Single } from './Outputs.js';
|
|
12
14
|
import { InitialWorkDirEntry_StringEntry, InitialWorkDirEntry_DirentEntry, InitialWorkDirEntry_DirectoryEntry, InitialWorkDirEntry_FileEntry, DockerRequirement_create_Z14898805, EnvironmentDef, LoadListingRequirementValue, LoadListingEnum_tryParse_Z721C83C5, ResourceRequirementInstance_$ctor_D76FC00, Requirement_WorkReuseExpressionRequirement, Requirement_WorkReuseRequirement, WorkReuseRequirementValue, Requirement_NetworkAccessExpressionRequirement, Requirement_NetworkAccessRequirement, NetworkAccessRequirementValue, InplaceUpdateRequirementValue, ToolTimeLimitValue_ToolTimeLimitExpression, ToolTimeLimitValue_ToolTimeLimitSeconds, InlineJavascriptRequirementValue, Requirement_StepInputExpressionRequirement, Requirement_MultipleInputFeatureRequirement, Requirement_ScatterFeatureRequirement, Requirement_SubworkflowFeatureRequirement, Requirement_ToolTimeLimitRequirement, Requirement_InplaceUpdateRequirement, Requirement_ResourceRequirement, Requirement_ShellCommandRequirement, Requirement_EnvVarRequirement, Requirement_InitialWorkDirRequirement, Requirement_LoadListingRequirement, Requirement_SoftwareRequirement, Requirement_DockerRequirement, Requirement_SchemaDefRequirement, Requirement_InlineJavascriptRequirement, HintEntry_UnknownHint, HintUnknownValue, HintEntry_KnownHint } from './Requirements.js';
|
|
13
|
-
import { toArray, delay, collect, append, empty as empty$1, singleton, head as head$1, map as map$2, length } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
14
15
|
import { getItemFromDict } from '../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
15
16
|
import { compare } from '../../node_modules/@fable-org/fable-library-js/BigInt.js';
|
|
16
17
|
import { tryParse } from '../../node_modules/@fable-org/fable-library-js/Long.js';
|
|
@@ -38,10 +39,59 @@ function ResizeArray_map(f, a) {
|
|
|
38
39
|
}
|
|
39
40
|
return b;
|
|
40
41
|
}
|
|
42
|
+
function Decode_countLeadingSpaces(line) {
|
|
43
|
+
return length(takeWhile((c) => c === " ", line.split("")));
|
|
44
|
+
}
|
|
45
|
+
function Decode_isBlankLine(line) {
|
|
46
|
+
return line.trim().length === 0;
|
|
47
|
+
}
|
|
48
|
+
function Decode_tryParseBlockScalarHeader(line) {
|
|
49
|
+
if (Decode_isBlankLine(line)) {
|
|
50
|
+
return void 0;
|
|
51
|
+
} else if (isMatch(/^(?:.+:\s*[|>][1-9]?[+-]?\s*(?:#.*)?|-\s*[|>][1-9]?[+-]?\s*(?:#.*)?)$/gu, trimEnd(line))) {
|
|
52
|
+
return Decode_countLeadingSpaces(line);
|
|
53
|
+
} else {
|
|
54
|
+
return void 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
41
57
|
function Decode_normalizeYamlInput(yaml) {
|
|
42
58
|
const normalized = yaml == null ? "" : replace(yaml, "\r\n", "\n");
|
|
43
59
|
const lines = normalized.split("\n");
|
|
44
|
-
|
|
60
|
+
const filtered = [];
|
|
61
|
+
let blockScalarIndent = void 0;
|
|
62
|
+
const processLine = (line_mut) => {
|
|
63
|
+
processLine:
|
|
64
|
+
while (true) {
|
|
65
|
+
const line = line_mut;
|
|
66
|
+
if (blockScalarIndent == null) {
|
|
67
|
+
const matchValue = Decode_tryParseBlockScalarHeader(line);
|
|
68
|
+
if (matchValue == null) {
|
|
69
|
+
if (line === "" ? true : line.trim().length > 0) {
|
|
70
|
+
void filtered.push(line);
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
const indent_1 = value(matchValue) | 0;
|
|
74
|
+
blockScalarIndent = indent_1;
|
|
75
|
+
void filtered.push(line);
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
const indent = value(blockScalarIndent) | 0;
|
|
79
|
+
if (Decode_isBlankLine(line)) {
|
|
80
|
+
void filtered.push(line);
|
|
81
|
+
} else if (Decode_countLeadingSpaces(line) > indent) {
|
|
82
|
+
void filtered.push(line);
|
|
83
|
+
} else {
|
|
84
|
+
blockScalarIndent = void 0;
|
|
85
|
+
line_mut = line;
|
|
86
|
+
continue processLine;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
const array = lines.length > 0 && item(0, lines).startsWith("#!") ? lines.slice(1, lines.length) : lines;
|
|
93
|
+
array.forEach(processLine);
|
|
94
|
+
return trimEnd(join("\n", toArray(filtered)));
|
|
45
95
|
}
|
|
46
96
|
function Decode_removeFullLineComments(yaml) {
|
|
47
97
|
let array;
|
|
@@ -528,40 +578,40 @@ function Decode_parseArrayShorthand(typeStr) {
|
|
|
528
578
|
return void 0;
|
|
529
579
|
}
|
|
530
580
|
}
|
|
531
|
-
function inputArraySchemaDecoder$
|
|
581
|
+
function inputArraySchemaDecoder$0040315() {
|
|
532
582
|
return (value_3) => object((get$) => {
|
|
533
583
|
let objectArg, objectArg_1, objectArg_2, objectArg_3;
|
|
534
584
|
return new InputArraySchema(Decode_cwlTypeDecoder$0027((objectArg = get$.Required, objectArg.Field("items", (x) => x))), (objectArg_1 = get$.Optional, objectArg_1.Field("label", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("doc", string)), (objectArg_3 = get$.Optional, objectArg_3.Field("name", string)));
|
|
535
585
|
}, value_3);
|
|
536
586
|
}
|
|
537
|
-
const inputArraySchemaDecoder$
|
|
538
|
-
function inputRecordFieldDecoder$
|
|
587
|
+
const inputArraySchemaDecoder$0040315$002D1 = new Lazy(inputArraySchemaDecoder$0040315);
|
|
588
|
+
function inputRecordFieldDecoder$0040329() {
|
|
539
589
|
return (value_3) => object((get$) => {
|
|
540
590
|
let objectArg, objectArg_1, objectArg_2, objectArg_3;
|
|
541
591
|
return new InputRecordField((objectArg = get$.Required, objectArg.Field("name", string)), Decode_cwlTypeDecoder$0027((objectArg_1 = get$.Required, objectArg_1.Field("type", (x) => x))), (objectArg_2 = get$.Optional, objectArg_2.Field("doc", string)), (objectArg_3 = get$.Optional, objectArg_3.Field("label", string)));
|
|
542
592
|
}, value_3);
|
|
543
593
|
}
|
|
544
|
-
const inputRecordFieldDecoder$
|
|
545
|
-
function inputRecordSchemaDecoder$
|
|
594
|
+
const inputRecordFieldDecoder$0040329$002D1 = new Lazy(inputRecordFieldDecoder$0040329);
|
|
595
|
+
function inputRecordSchemaDecoder$0040368() {
|
|
546
596
|
return (value_3) => object((get$) => {
|
|
547
597
|
let fieldsElement, objectArg, element, matchValue, objectArg_1, objectArg_2, objectArg_3;
|
|
548
598
|
return new InputRecordSchema((fieldsElement = (objectArg = get$.Optional, objectArg.Field("fields", (x) => x)), fieldsElement == null ? void 0 : value(fieldsElement).tag === /* Object */
|
|
549
599
|
3 ? isEmpty(value(fieldsElement).fields[0]) ? [] : (element = value(fieldsElement), matchValue = Decode_tryDecodeFieldsAsArray(element), matchValue == null ? Decode_tryDecodeFieldsAsMap(element) : value(matchValue)) : (element = value(fieldsElement), matchValue = Decode_tryDecodeFieldsAsArray(element), matchValue == null ? Decode_tryDecodeFieldsAsMap(element) : value(matchValue))), (objectArg_1 = get$.Optional, objectArg_1.Field("label", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("doc", string)), (objectArg_3 = get$.Optional, objectArg_3.Field("name", string)));
|
|
550
600
|
}, value_3);
|
|
551
601
|
}
|
|
552
|
-
const inputRecordSchemaDecoder$
|
|
553
|
-
function inputEnumSchemaDecoder$
|
|
602
|
+
const inputRecordSchemaDecoder$0040368$002D1 = new Lazy(inputRecordSchemaDecoder$0040368);
|
|
603
|
+
function inputEnumSchemaDecoder$0040395() {
|
|
554
604
|
return (value_5) => object((get$) => {
|
|
555
605
|
let objectArg, objectArg_1, objectArg_2, objectArg_3;
|
|
556
606
|
return new InputEnumSchema((objectArg = get$.Required, objectArg.Field("symbols", (value) => resizearray(string, value))), (objectArg_1 = get$.Optional, objectArg_1.Field("label", string)), (objectArg_2 = get$.Optional, objectArg_2.Field("doc", string)), (objectArg_3 = get$.Optional, objectArg_3.Field("name", string)));
|
|
557
607
|
}, value_5);
|
|
558
608
|
}
|
|
559
|
-
const inputEnumSchemaDecoder$
|
|
560
|
-
const Decode_inputArraySchemaDecoder = inputArraySchemaDecoder$
|
|
561
|
-
const Decode_inputRecordFieldDecoder = inputRecordFieldDecoder$
|
|
609
|
+
const inputEnumSchemaDecoder$0040395$002D1 = new Lazy(inputEnumSchemaDecoder$0040395);
|
|
610
|
+
const Decode_inputArraySchemaDecoder = inputArraySchemaDecoder$0040315$002D1.Value;
|
|
611
|
+
const Decode_inputRecordFieldDecoder = inputRecordFieldDecoder$0040329$002D1.Value;
|
|
562
612
|
function Decode_tryDecodeFieldsAsArray(element) {
|
|
563
613
|
try {
|
|
564
|
-
return resizearray(inputRecordFieldDecoder$
|
|
614
|
+
return resizearray(inputRecordFieldDecoder$0040329$002D1.Value, element);
|
|
565
615
|
} catch (matchValue) {
|
|
566
616
|
if (Decode_isRecoverableDecodingError(matchValue)) {
|
|
567
617
|
return void 0;
|
|
@@ -592,8 +642,8 @@ function Decode_tryDecodeFieldsAsMap(element) {
|
|
|
592
642
|
}
|
|
593
643
|
}
|
|
594
644
|
}
|
|
595
|
-
const Decode_inputRecordSchemaDecoder = inputRecordSchemaDecoder$
|
|
596
|
-
const Decode_inputEnumSchemaDecoder = inputEnumSchemaDecoder$
|
|
645
|
+
const Decode_inputRecordSchemaDecoder = inputRecordSchemaDecoder$0040368$002D1.Value;
|
|
646
|
+
const Decode_inputEnumSchemaDecoder = inputEnumSchemaDecoder$0040395$002D1.Value;
|
|
597
647
|
function Decode_cwlTypeDecoder$0027(element) {
|
|
598
648
|
let collection;
|
|
599
649
|
const parseTypeString = (typeStr) => {
|
|
@@ -683,7 +733,7 @@ function Decode_cwlTypeDecoder$0027(element) {
|
|
|
683
733
|
switch (matchResult_1) {
|
|
684
734
|
case 0: {
|
|
685
735
|
const matchValue_1 = v_1.Value;
|
|
686
|
-
return matchValue_1 === "record" ? CWLType_Record(inputRecordSchemaDecoder$
|
|
736
|
+
return matchValue_1 === "record" ? CWLType_Record(inputRecordSchemaDecoder$0040368$002D1.Value(element)) : matchValue_1 === "enum" ? CWLType_Enum(inputEnumSchemaDecoder$0040395$002D1.Value(element)) : matchValue_1 === "array" ? CWLType_Array(inputArraySchemaDecoder$0040315$002D1.Value(element)) : parseTypeString(matchValue_1);
|
|
687
737
|
}
|
|
688
738
|
case 1:
|
|
689
739
|
return Decode_cwlTypeDecoder$0027((objectArg_1 = get$.Required, objectArg_1.Field("type", (x_1) => x_1)));
|
|
@@ -1477,7 +1527,7 @@ function Decode_hintArrayDecoder(yEle) {
|
|
|
1477
1527
|
default:
|
|
1478
1528
|
return false;
|
|
1479
1529
|
}
|
|
1480
|
-
}, mappings) ? kv[1] : YAMLElement_Object(cons(YAMLElement_Mapping(
|
|
1530
|
+
}, mappings) ? kv[1] : YAMLElement_Object(cons(YAMLElement_Mapping(YAMLContent_create_Z1C3A29C9("class"), YAMLElement_Object(singleton$1(YAMLElement_Value(YAMLContent_create_Z1C3A29C9(kv[0]))))), mappings))) : YAMLElement_Object(ofArray([YAMLElement_Mapping(YAMLContent_create_Z1C3A29C9("class"), YAMLElement_Object(singleton$1(YAMLElement_Value(YAMLContent_create_Z1C3A29C9(kv[0]))))), YAMLElement_Mapping(YAMLContent_create_Z1C3A29C9("value"), matchValue)]))));
|
|
1481
1531
|
}, get$.Overflow.FieldList(empty()));
|
|
1482
1532
|
return Array.from(collection_1);
|
|
1483
1533
|
}, yEle);
|
|
@@ -2062,7 +2112,7 @@ function Decode_withDefaultCwlVersion(defaultCwlVersion, yamlElement) {
|
|
|
2062
2112
|
return yamlElement;
|
|
2063
2113
|
} else {
|
|
2064
2114
|
const fields_2 = yamlElement.fields[0];
|
|
2065
|
-
return YAMLElement_Object(cons(YAMLElement_Mapping(
|
|
2115
|
+
return YAMLElement_Object(cons(YAMLElement_Mapping(YAMLContent_create_Z1C3A29C9("cwlVersion"), YAMLElement_Object(singleton$1(YAMLElement_Value(YAMLContent_create_Z1C3A29C9(defaultCwlVersion))))), fields_2));
|
|
2066
2116
|
}
|
|
2067
2117
|
} else {
|
|
2068
2118
|
return yamlElement;
|
|
@@ -2614,4 +2664,4 @@ function DecodeParameters_decodeYAMLParameterFile(yaml) {
|
|
|
2614
2664
|
return DecodeParameters_cwlparameterReferenceArrayDecoder(read(yaml));
|
|
2615
2665
|
}
|
|
2616
2666
|
|
|
2617
|
-
export { DecodeParameters_cwlParameterReferenceDecoder, DecodeParameters_cwlparameterReferenceArrayDecoder, DecodeParameters_decodeYAMLParameterFile, Decode_baseCommandDecoder, Decode_boolOptionFieldDecoder, Decode_classDecoder, Decode_commandLineToolDecoder, Decode_cwlSimpleTypeFromString, Decode_cwlTypeDecoder, Decode_cwlTypeDecoder$0027, Decode_cwlTypeStringMatcher, Decode_decodeCWLProcessingUnit, Decode_decodeCWLProcessingUnitElement, Decode_decodeCommandLineTool, Decode_decodeExpressionTool, Decode_decodeHintElement, Decode_decodeOperation, Decode_decodeResourceScalar, Decode_decodeSchemaSaladString, Decode_decodeStepInputFromArrayItem, Decode_decodeStepInputFromValue, Decode_decodeStepInputsFromArray, Decode_decodeStepInputsFromMap, Decode_decodeStepOutputItem, Decode_decodeStringArrayOrScalar, Decode_decodeStringOrExpression, Decode_decodeWorkflow, Decode_decodeWorkflowStepFromArrayItem, Decode_decodeWorkflowStepFromValueWithId, Decode_direntDecoder, Decode_docDecoder, Decode_dockerRequirementDecoder, Decode_envVarRequirementDecoder, Decode_expressionStringOptionFieldDecoder, Decode_expressionToolDecoder, Decode_hasField, Decode_hintArrayDecoder, Decode_hintsDecoder, Decode_initialWorkDirEntryDecoder, Decode_initialWorkDirRequirementDecoder, Decode_inlineJavascriptRequirementDecoder, Decode_inplaceUpdateRequirementDecoder, Decode_inputArrayDecoder, Decode_inputArraySchemaDecoder, Decode_inputBindingDecoder, Decode_inputEnumSchemaDecoder, Decode_inputRecordFieldDecoder, Decode_inputRecordSchemaDecoder, Decode_inputStepDecoder, Decode_inputsDecoder, Decode_intentDecoder, Decode_isRecoverableDecodingError, Decode_labelDecoder, Decode_linkMergeFieldDecoder, Decode_loadListingRequirementDecoder, Decode_networkAccessRequirementDecoder, Decode_normalizeYamlInput, Decode_operationDecoder, Decode_optionalResourceField, Decode_outputArrayDecoder, Decode_outputBindingDecoder, Decode_outputBindingGlobDecoder, Decode_outputSourceDecoder, Decode_outputStepsDecoder, Decode_outputsDecoder, Decode_overflowDecoder, Decode_parseArrayShorthand, Decode_pickValueFieldDecoder, Decode_readSanitizedYaml, Decode_removeFullLineComments, Decode_removeYamlComments, Decode_requirementArrayDecoder, Decode_requirementFromTypeName, Decode_requirementsDecoder, Decode_resourceRequirementDecoder, Decode_scatterFieldDecoder, Decode_scatterMethodFieldDecoder, Decode_schemaDefRequirementDecoder, Decode_schemaDefRequirementTypeDecoder, Decode_softwareRequirementDecoder, Decode_sourceArrayFieldDecoder, Decode_stepArrayDecoder, Decode_stepArrayDecoderWithVersion, Decode_stepsDecoder, Decode_stepsDecoderWithVersion, Decode_stringFieldDecoder, Decode_stringOptionFieldDecoder, Decode_stringOrStringArrayDecoder, Decode_toolTimeLimitRequirementDecoder, Decode_tryDecodeBoolScalar, Decode_tryDecodeFieldsAsArray, Decode_tryDecodeFieldsAsMap, Decode_tryDecodeKnownRequirementFromElement, Decode_versionDecoder, Decode_withDefaultCwlVersion, Decode_workReuseRequirementDecoder, Decode_workflowDecoder, Decode_workflowStepRunDecoder, Decode_yamlElementOptionFieldDecoder, ResizeArray_map, inputArraySchemaDecoder$
|
|
2667
|
+
export { DecodeParameters_cwlParameterReferenceDecoder, DecodeParameters_cwlparameterReferenceArrayDecoder, DecodeParameters_decodeYAMLParameterFile, Decode_baseCommandDecoder, Decode_boolOptionFieldDecoder, Decode_classDecoder, Decode_commandLineToolDecoder, Decode_countLeadingSpaces, Decode_cwlSimpleTypeFromString, Decode_cwlTypeDecoder, Decode_cwlTypeDecoder$0027, Decode_cwlTypeStringMatcher, Decode_decodeCWLProcessingUnit, Decode_decodeCWLProcessingUnitElement, Decode_decodeCommandLineTool, Decode_decodeExpressionTool, Decode_decodeHintElement, Decode_decodeOperation, Decode_decodeResourceScalar, Decode_decodeSchemaSaladString, Decode_decodeStepInputFromArrayItem, Decode_decodeStepInputFromValue, Decode_decodeStepInputsFromArray, Decode_decodeStepInputsFromMap, Decode_decodeStepOutputItem, Decode_decodeStringArrayOrScalar, Decode_decodeStringOrExpression, Decode_decodeWorkflow, Decode_decodeWorkflowStepFromArrayItem, Decode_decodeWorkflowStepFromValueWithId, Decode_direntDecoder, Decode_docDecoder, Decode_dockerRequirementDecoder, Decode_envVarRequirementDecoder, Decode_expressionStringOptionFieldDecoder, Decode_expressionToolDecoder, Decode_hasField, Decode_hintArrayDecoder, Decode_hintsDecoder, Decode_initialWorkDirEntryDecoder, Decode_initialWorkDirRequirementDecoder, Decode_inlineJavascriptRequirementDecoder, Decode_inplaceUpdateRequirementDecoder, Decode_inputArrayDecoder, Decode_inputArraySchemaDecoder, Decode_inputBindingDecoder, Decode_inputEnumSchemaDecoder, Decode_inputRecordFieldDecoder, Decode_inputRecordSchemaDecoder, Decode_inputStepDecoder, Decode_inputsDecoder, Decode_intentDecoder, Decode_isBlankLine, Decode_isRecoverableDecodingError, Decode_labelDecoder, Decode_linkMergeFieldDecoder, Decode_loadListingRequirementDecoder, Decode_networkAccessRequirementDecoder, Decode_normalizeYamlInput, Decode_operationDecoder, Decode_optionalResourceField, Decode_outputArrayDecoder, Decode_outputBindingDecoder, Decode_outputBindingGlobDecoder, Decode_outputSourceDecoder, Decode_outputStepsDecoder, Decode_outputsDecoder, Decode_overflowDecoder, Decode_parseArrayShorthand, Decode_pickValueFieldDecoder, Decode_readSanitizedYaml, Decode_removeFullLineComments, Decode_removeYamlComments, Decode_requirementArrayDecoder, Decode_requirementFromTypeName, Decode_requirementsDecoder, Decode_resourceRequirementDecoder, Decode_scatterFieldDecoder, Decode_scatterMethodFieldDecoder, Decode_schemaDefRequirementDecoder, Decode_schemaDefRequirementTypeDecoder, Decode_softwareRequirementDecoder, Decode_sourceArrayFieldDecoder, Decode_stepArrayDecoder, Decode_stepArrayDecoderWithVersion, Decode_stepsDecoder, Decode_stepsDecoderWithVersion, Decode_stringFieldDecoder, Decode_stringOptionFieldDecoder, Decode_stringOrStringArrayDecoder, Decode_toolTimeLimitRequirementDecoder, Decode_tryDecodeBoolScalar, Decode_tryDecodeFieldsAsArray, Decode_tryDecodeFieldsAsMap, Decode_tryDecodeKnownRequirementFromElement, Decode_tryParseBlockScalarHeader, Decode_versionDecoder, Decode_withDefaultCwlVersion, Decode_workReuseRequirementDecoder, Decode_workflowDecoder, Decode_workflowStepRunDecoder, Decode_yamlElementOptionFieldDecoder, ResizeArray_map, inputArraySchemaDecoder$0040315, inputArraySchemaDecoder$0040315$002D1, inputEnumSchemaDecoder$0040395, inputEnumSchemaDecoder$0040395$002D1, inputRecordFieldDecoder$0040329, inputRecordFieldDecoder$0040329$002D1, inputRecordSchemaDecoder$0040368, inputRecordSchemaDecoder$0040368$002D1 };
|
|
@@ -2,7 +2,7 @@ import { FSharpChoice$2_$union } from '@fable-org/fable-library-js/Choice.js';
|
|
|
2
2
|
import { SchemaDefRequirementType, InputEnumSchema, InputRecordSchema, InputRecordField, SoftwarePackage, SchemaSaladString_$union, CWLType_$union, InputArraySchema } from './CWLTypes.js';
|
|
3
3
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
4
4
|
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
5
|
-
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
5
|
+
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
|
|
6
6
|
import { HintEntry_$union, Requirement_$union, EnvironmentDef } from './Requirements.js';
|
|
7
7
|
import { CWLOutput, OutputBinding } from './Outputs.js';
|
|
8
8
|
import { CWLInput, InputBinding } from './Inputs.js';
|
|
@@ -28,6 +28,13 @@ export declare function isComplexType(t_mut: CWLType_$union): boolean;
|
|
|
28
28
|
export declare function yBool(b: boolean): YAMLElement_$union;
|
|
29
29
|
export declare function yMap(pairs: FSharpList<[string, YAMLElement_$union]>): YAMLElement_$union;
|
|
30
30
|
export declare function normalizeDocString(doc: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* Encode expression payloads with style-aware scalars.
|
|
33
|
+
* Single-line expressions are double-quoted to protect JS token syntax.
|
|
34
|
+
* Multi-line expressions are emitted as literal block scalars with clip chomping
|
|
35
|
+
* so trailing newlines and blank lines survive decode/encode roundtrips.
|
|
36
|
+
*/
|
|
37
|
+
export declare function encodeExpressionScalar(expression: string): YAMLElement_$union;
|
|
31
38
|
export declare function encodeSchemaSaladString(value: SchemaSaladString_$union): YAMLElement_$union;
|
|
32
39
|
export declare function normalizeEnvValueForEncode(envValue: string): string;
|
|
33
40
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Encode.d.ts","s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gB,qBAAqB,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,kBAAkB,GAAG,MAAM,CAwD/I;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,kBAAkB,GAAG,MAAM,CAEpE;AAED,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,sBAAsB,GAAG,MAAM,CAE5E;AAED,wBAAgB,+BAA+B,CAAC,EAAE,EAAE,4BAA4B,GAAG,MAAM,CAExF;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,uBAAuB,GAAG,MAAM,CAE9E;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,wBAAwB,GAAG,MAAM,CAWzE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,cAAc,GAAG,MAAM,CAiB3D;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAE1E;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CA+B7E;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAEzE;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAE3E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,cAAc,GAAG,MAAM,CAE7D"}
|
package/dist/ts/ts/CWL/Encode.js
CHANGED
|
@@ -2,14 +2,14 @@ import { FSharpChoice$2_Choice1Of2, FSharpChoice$2_Choice2Of2 } from '../../node
|
|
|
2
2
|
import { map, value, bind, filter } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { toList, map as map$2, choose as choose$1, fold, delay, append as append$1, singleton as singleton$1, empty as empty$1 } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
4
4
|
import { isEmpty, head, tail, map as map$1, singleton, ofArray, empty, append, ofSeq, choose, exists, cons, filter as filter$1, contains, tryFind, reverse, length } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
5
|
-
import { YAMLElement_Value,
|
|
5
|
+
import { YAMLElement_Value, YAMLContent_create_Z1C3A29C9, YAMLElement_Object, YAMLElement_Mapping, ScalarStyle_Block, BlockScalarStyle_Literal, ChompingMode_Clip, ScalarStyle_DoubleQuoted, YAMLElement_Sequence, YAMLElement, Config } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
|
|
6
6
|
import { trimEnd, replace, toText, interpolate, trimStart, join, split } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
7
|
-
import { string, int, float } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
7
|
+
import { string, int, float } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Encode.fs.js';
|
|
8
8
|
import { LoadListingEnum_get_toCwlString } from './Requirements.js';
|
|
9
9
|
import { int64ToString, stringHash, comparePrimitives } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
10
10
|
import { WorkflowStepRunOps_tryGetOperation, WorkflowStepRunOps_tryGetExpressionTool, WorkflowStepRunOps_tryGetWorkflow, WorkflowStepRunOps_tryGetTool } from './CWLProcessingUnit.js';
|
|
11
11
|
import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
12
|
-
import { write } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
12
|
+
import { write } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Writer.fs.js';
|
|
13
13
|
import { ofList, FSharpSet__Contains } from '../../node_modules/@fable-org/fable-library-js/Set.js';
|
|
14
14
|
|
|
15
15
|
function $007CPrimitiveType$007CComplexType$007C(t) {
|
|
@@ -160,18 +160,22 @@ function isComplexType(t_mut) {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
function yBool(b) {
|
|
163
|
-
return YAMLElement_Value(
|
|
163
|
+
return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(b ? "true" : "false"));
|
|
164
164
|
}
|
|
165
165
|
function yMap(pairs) {
|
|
166
166
|
return YAMLElement_Object(map$1((tupledArg) => {
|
|
167
167
|
let _arg, single;
|
|
168
|
-
return YAMLElement_Mapping(
|
|
169
|
-
3 ? !isEmpty(_arg.fields[0]) ? isEmpty(tail(_arg.fields[0])) ? (single = head(_arg.fields[0]), single) : _arg : YAMLElement_Value(
|
|
168
|
+
return YAMLElement_Mapping(YAMLContent_create_Z1C3A29C9(tupledArg[0]), (_arg = tupledArg[1], _arg.tag === /* Object */
|
|
169
|
+
3 ? !isEmpty(_arg.fields[0]) ? isEmpty(tail(_arg.fields[0])) ? (single = head(_arg.fields[0]), single) : _arg : YAMLElement_Value(YAMLContent_create_Z1C3A29C9("{}")) : _arg));
|
|
170
170
|
}, pairs));
|
|
171
171
|
}
|
|
172
172
|
function normalizeDocString(doc) {
|
|
173
173
|
return trimEnd(trimEnd(replace(doc, "\r\n", "\n"), "\n"), "\r");
|
|
174
174
|
}
|
|
175
|
+
function encodeExpressionScalar(expression) {
|
|
176
|
+
const normalized = expression == null ? "" : replace(replace(expression, "\r\n", "\n"), "\r", "\n");
|
|
177
|
+
return YAMLElement_Value(YAMLContent_create_Z1C3A29C9(normalized, void 0, void 0, void 0, normalized.indexOf("\n") >= 0 ? ScalarStyle_Block(BlockScalarStyle_Literal(), ChompingMode_Clip(), void 0) : ScalarStyle_DoubleQuoted()));
|
|
178
|
+
}
|
|
175
179
|
function encodeSchemaSaladString(value) {
|
|
176
180
|
switch (value.tag) {
|
|
177
181
|
case /* Include */
|
|
@@ -825,7 +829,7 @@ function encodeRequirement(r) {
|
|
|
825
829
|
if (typeof value_32 === "number") {
|
|
826
830
|
return [key, int(value_32)];
|
|
827
831
|
} else if (typeof value_32 === "bigint") {
|
|
828
|
-
return [key, YAMLElement_Value(
|
|
832
|
+
return [key, YAMLElement_Value(YAMLContent_create_Z1C3A29C9(int64ToString(value_32)))];
|
|
829
833
|
} else if (typeof value_32 === "number") {
|
|
830
834
|
return [key, float(value_32)];
|
|
831
835
|
} else if (typeof value_32 === "string") {
|
|
@@ -871,7 +875,7 @@ function encodeRequirement(r) {
|
|
|
871
875
|
14: {
|
|
872
876
|
const tl = r.fields[0];
|
|
873
877
|
const timelimit = tl.tag === /* ToolTimeLimitExpression */
|
|
874
|
-
1 ? string(tl.fields[0]) : YAMLElement_Value(
|
|
878
|
+
1 ? string(tl.fields[0]) : YAMLElement_Value(YAMLContent_create_Z1C3A29C9(int64ToString(tl.fields[0])));
|
|
875
879
|
return yMap(ofArray([["class", string("ToolTimeLimit")], ["timelimit", timelimit]]));
|
|
876
880
|
}
|
|
877
881
|
case /* SubworkflowFeatureRequirement */
|
|
@@ -908,7 +912,7 @@ function encodeSourceArray(sources) {
|
|
|
908
912
|
if (sources.length === 1) {
|
|
909
913
|
return string(sources[0]);
|
|
910
914
|
} else {
|
|
911
|
-
return YAMLElement_Sequence(ofSeq(map$2((s) => YAMLElement_Object(singleton(YAMLElement_Value(
|
|
915
|
+
return YAMLElement_Sequence(ofSeq(map$2((s) => YAMLElement_Object(singleton(YAMLElement_Value(YAMLContent_create_Z1C3A29C9(s)))), sources)));
|
|
912
916
|
}
|
|
913
917
|
}
|
|
914
918
|
function encodeLinkMergeMethod(linkMerge) {
|
|
@@ -1185,7 +1189,7 @@ function encodeExpressionToolDescriptionElement(et) {
|
|
|
1185
1189
|
default:
|
|
1186
1190
|
withRequirements = withHints;
|
|
1187
1191
|
}
|
|
1188
|
-
const withExpression = append(append((matchValue_2 = et.Inputs, matchValue_2 != null ? (i = value(matchValue_2), i.length > 0) ? (i_1 = value(matchValue_2), append(withRequirements, singleton(["inputs", yMap(toList(map$2(encodeCWLInput, i_1)))]))) : withRequirements : withRequirements), singleton(["outputs", yMap(toList(map$2(encodeCWLOutput, et.Outputs)))])), singleton(["expression",
|
|
1192
|
+
const withExpression = append(append((matchValue_2 = et.Inputs, matchValue_2 != null ? (i = value(matchValue_2), i.length > 0) ? (i_1 = value(matchValue_2), append(withRequirements, singleton(["inputs", yMap(toList(map$2(encodeCWLInput, i_1)))]))) : withRequirements : withRequirements), singleton(["outputs", yMap(toList(map$2(encodeCWLOutput, et.Outputs)))])), singleton(["expression", encodeExpressionScalar(et.Expression)]));
|
|
1189
1193
|
return yMap((matchValue_3 = et.Metadata, matchValue_3 == null ? withExpression : (md = value(matchValue_3), fold((acc_6, kvp) => {
|
|
1190
1194
|
let matchValue_4;
|
|
1191
1195
|
return append(acc_6, singleton([kvp[0], (matchValue_4 = kvp[1], typeof matchValue_4 === "string" ? string(matchValue_4) : typeof matchValue_4 === "boolean" ? yBool(matchValue_4) : typeof matchValue_4 === "number" ? int(matchValue_4) : typeof matchValue_4 === "number" ? float(matchValue_4) : matchValue_4 instanceof YAMLElement ? matchValue_4 : string(toString(kvp[1])))]));
|
|
@@ -1506,4 +1510,4 @@ function cwlTypeToYamlString(t) {
|
|
|
1506
1510
|
return encodeCWLTypeYaml(t);
|
|
1507
1511
|
}
|
|
1508
1512
|
|
|
1509
|
-
export { $007CPrimitiveType$007CComplexType$007C, cwlTypeToYamlString, encodeCWLInput, encodeCWLOutput, encodeCWLType, encodeCWLTypeYaml, encodeDoc, encodeEnvVarRequirementCompactMap, encodeExpressionToolDescription, encodeExpressionToolDescriptionElement, encodeHintEntry, encodeInputArraySchema, encodeInputArraySchemaYaml, encodeInputBinding, encodeInputEnumSchema, encodeInputEnumSchemaYaml, encodeInputRecordField, encodeInputRecordFieldYaml, encodeInputRecordSchema, encodeInputRecordSchemaYaml, encodeIntent, encodeLabel, encodeLinkMergeMethod, encodeOperationDescription, encodeOperationDescriptionElement, encodeOutputBinding, encodePickValueMethod, encodeProcessingUnit, encodeRequirement, encodeScatter, encodeScatterMethod, encodeSchemaDefRequirementType, encodeSchemaSaladString, encodeSoftwareRequirementCompactMap, encodeSourceArray, encodeStepInput, encodeStepInputs, encodeStepOutputParameter, encodeStepOutputs, encodeStringArrayOrScalar, encodeToolDescription, encodeToolDescriptionElement, encodeWorkflowDescription, encodeWorkflowDescriptionElement, encodeWorkflowStep, encodeWorkflowStepRun, getObjectPairs, isComplexType, normalizeDocString, normalizeEnvValueForEncode, renderTopLevelElement, tryGetArrayShorthand, writeYaml, yBool, yMap };
|
|
1513
|
+
export { $007CPrimitiveType$007CComplexType$007C, cwlTypeToYamlString, encodeCWLInput, encodeCWLOutput, encodeCWLType, encodeCWLTypeYaml, encodeDoc, encodeEnvVarRequirementCompactMap, encodeExpressionScalar, encodeExpressionToolDescription, encodeExpressionToolDescriptionElement, encodeHintEntry, encodeInputArraySchema, encodeInputArraySchemaYaml, encodeInputBinding, encodeInputEnumSchema, encodeInputEnumSchemaYaml, encodeInputRecordField, encodeInputRecordFieldYaml, encodeInputRecordSchema, encodeInputRecordSchemaYaml, encodeIntent, encodeLabel, encodeLinkMergeMethod, encodeOperationDescription, encodeOperationDescriptionElement, encodeOutputBinding, encodePickValueMethod, encodeProcessingUnit, encodeRequirement, encodeScatter, encodeScatterMethod, encodeSchemaDefRequirementType, encodeSchemaSaladString, encodeSoftwareRequirementCompactMap, encodeSourceArray, encodeStepInput, encodeStepInputs, encodeStepOutputParameter, encodeStepOutputs, encodeStringArrayOrScalar, encodeToolDescription, encodeToolDescriptionElement, encodeWorkflowDescription, encodeWorkflowDescriptionElement, encodeWorkflowStep, encodeWorkflowStepRun, getObjectPairs, isComplexType, normalizeDocString, normalizeEnvValueForEncode, renderTopLevelElement, tryGetArrayShorthand, writeYaml, yBool, yMap };
|
|
@@ -6,7 +6,7 @@ import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
|
6
6
|
import { int64 } from '@fable-org/fable-library-js/BigInt.js';
|
|
7
7
|
import { DynamicObj } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
8
8
|
import { float64, int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
9
|
-
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
9
|
+
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
|
|
10
10
|
export declare class DockerRequirement extends Record implements IEquatable<DockerRequirement>, IComparable<DockerRequirement> {
|
|
11
11
|
readonly DockerPull: Option<string>;
|
|
12
12
|
readonly DockerFile: Option<SchemaSaladString_$union>;
|
|
@@ -6,7 +6,7 @@ import { record_type, option_type, string_type, union_type, bool_type, int64_typ
|
|
|
6
6
|
import { toInt64, fromInt32 } from '../../node_modules/@fable-org/fable-library-js/BigInt.js';
|
|
7
7
|
import { setOptionalProperty } from '../fable_modules/DynamicObj.7.1.0/DynObj.fs.js';
|
|
8
8
|
import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
9
|
-
import { YAMLElement_$reflection } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
9
|
+
import { YAMLElement_$reflection } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
|
|
10
10
|
import { map } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
11
11
|
|
|
12
12
|
class DockerRequirement extends Record {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
2
2
|
import { Record, Union } from '@fable-org/fable-library-js/Types.js';
|
|
3
3
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
4
|
-
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
4
|
+
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
|
|
5
5
|
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
6
6
|
import { IComparable, IEquatable } from '@fable-org/fable-library-js/Util.js';
|
|
7
7
|
import { HintEntry_$union, Requirement_$union } from './Requirements.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { unwrap, toArray } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
2
|
import { Union, Record } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
3
3
|
import { union_type, record_type, string_type, option_type, array_type, bool_type, obj_type, class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
4
|
-
import { YAMLElement_$reflection } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
4
|
+
import { YAMLElement_$reflection } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
|
|
5
5
|
import { setItem } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
6
6
|
import { filter, iterate, tryFindIndex } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
7
7
|
import { DynamicObj, DynamicObj_$reflection } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Basic.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Basic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAmD,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAEhH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAS,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAInE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAA0F,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAG9J,OAAO,EAAoP,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG5T,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"Basic.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/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AC,EAAE,SAAS,GAAG,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAEvI;AAED;;GAEG;AACH,wBAAgB,gDAAgD,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAE/I;AAED;;GAEG;AACH,wBAAgB,yCAAyC,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAiBzI;AAED,wBAAgB,0CAA0C,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAc1I;AAED;;;;;;GAMG;AACH,wBAAgB,4CAA4C,CAAC,EAAE,EAAE,kBAAkB,GAAG,MAAM,CAQ3F;AAED;;;;;;GAMG;AACH,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAahG"}
|
|
@@ -16,8 +16,8 @@ import { LDFile } from '../ROCrate/LDTypes/File.js';
|
|
|
16
16
|
import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
|
|
17
17
|
import { map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
18
18
|
import { combine } from '../FileSystem/Path.js';
|
|
19
|
-
import { DataContext__get_Explication, DataContext__get_Unit, DataContext__get_ObjectType, DataContext__get_GeneratedBy, DataContext__get_Description, DataContext__get_Label, DataContext_$ctor_Z780A8A2A } from '../Core/DataContext.js';
|
|
20
19
|
import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
20
|
+
import { DataContext } from '../Core/DataContext.js';
|
|
21
21
|
import { LDSample } from '../ROCrate/LDTypes/Sample.js';
|
|
22
22
|
import { Value_Name, Value_Ontology } from '../Core/Value.js';
|
|
23
23
|
import { ActivePatterns_$007CRegex$007C_$007C } from '../Core/Helper/Regex.js';
|
|
@@ -210,14 +210,14 @@ function BaseTypes_composeFragmentDescriptor_Z4C0BEF62(dc) {
|
|
|
210
210
|
throw new Error("RO-Crate parsing of DataContext failed: Cannot create a fragment descriptor without a name.");
|
|
211
211
|
}
|
|
212
212
|
const id = LDPropertyValue.genIdFragmentDescriptor(dc.NameText);
|
|
213
|
-
const patternInput = defaultArg(map((e) => [e.Name, Option_fromValueWithDefault("", e.TermAccessionAndOntobeeUrlIfShort)],
|
|
214
|
-
const patternInput_1 = defaultArg(map((u) => [u.Name, Option_fromValueWithDefault("", u.TermAccessionAndOntobeeUrlIfShort)],
|
|
213
|
+
const patternInput = defaultArg(map((e) => [e.Name, Option_fromValueWithDefault("", e.TermAccessionAndOntobeeUrlIfShort)], dc.Explication), [void 0, void 0]);
|
|
214
|
+
const patternInput_1 = defaultArg(map((u) => [u.Name, Option_fromValueWithDefault("", u.TermAccessionAndOntobeeUrlIfShort)], dc.Unit), [void 0, void 0]);
|
|
215
215
|
const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString, dc.Comments));
|
|
216
216
|
const dataFragment = BaseTypes_composeFile_6CE21C7D(dc);
|
|
217
|
-
const pattern = map(BaseTypes_composeDefinedTerm_ZDED3A0F,
|
|
217
|
+
const pattern = map(BaseTypes_composeDefinedTerm_ZDED3A0F, dc.ObjectType);
|
|
218
218
|
dataFragment.SetProperty(LDFile.about, new LDRef(id));
|
|
219
219
|
dataFragment.SetOptionalProperty(LDFile.pattern, pattern);
|
|
220
|
-
return LDPropertyValue.createFragmentDescriptor(dc.NameText, unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput_1[0]), unwrap(patternInput[1]), unwrap(
|
|
220
|
+
return LDPropertyValue.createFragmentDescriptor(dc.NameText, unwrap(patternInput[0]), void 0, unwrap(patternInput_1[1]), unwrap(patternInput_1[0]), unwrap(patternInput[1]), unwrap(dc.GeneratedBy), unwrap(dc.Description), unwrap(dc.Label), unwrap(disambiguatingDescriptions), dataFragment);
|
|
221
221
|
}
|
|
222
222
|
function BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, graph, context) {
|
|
223
223
|
const file = LDPropertyValue.tryGetSubjectOf(fd, unwrap(graph), unwrap(context));
|
|
@@ -235,7 +235,7 @@ function BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, graph, context) {
|
|
|
235
235
|
const unit = BaseTypes_tryOntologyTermFromNameAndID_40457300(unwrap(LDPropertyValue.tryGetUnitTextAsString(fd)), unwrap(LDPropertyValue.tryGetUnitCodeAsString(fd)));
|
|
236
236
|
const generatedBy = LDPropertyValue.tryGetMeasurementMethodAsString(fd);
|
|
237
237
|
const description = LDPropertyValue.tryGetDescriptionAsString(fd);
|
|
238
|
-
return
|
|
238
|
+
return new DataContext(void 0, name, void 0, unwrap(format), unwrap(selectorFormat), unwrap(explication), unwrap(unit), unwrap(objectType), unwrap(LDPropertyValue.tryGetAlternateNameAsString(fd)), unwrap(description), unwrap(generatedBy), ResizeArray_map((s) => Comment$.fromString(s), LDPropertyValue.getDisambiguatingDescriptionsAsString(fd)));
|
|
239
239
|
}
|
|
240
240
|
function BaseTypes_composeProcessInput(header, value, fs) {
|
|
241
241
|
if (header.tag === /* Input */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
2
2
|
import { isComplexType, cwlTypeToYamlString, writeYaml, encodeCWLType } from '../CWL/Encode.js';
|
|
3
|
-
import { read } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
4
|
-
import { YAMLElement_Sequence, YAMLElement_Comment } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
5
|
-
import { object } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
3
|
+
import { read } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Reader.fs.js';
|
|
4
|
+
import { YAMLElement_Sequence, YAMLElement_Comment } from '../fable_modules/YAMLicious.1.0.0-alpha.5/YAMLiciousTypes.fs.js';
|
|
5
|
+
import { object } from '../fable_modules/YAMLicious.1.0.0-alpha.5/Decode.fs.js';
|
|
6
6
|
import { Decode_cwlTypeDecoder$0027, Decode_cwlTypeStringMatcher } from '../CWL/Decode.js';
|
|
7
7
|
import { isEmpty, head, tail } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
8
8
|
import { value, defaultArg, unwrap, bind, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|