@nfdi4plants/arctrl 3.0.3 → 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/node_modules/@fable-org/fable-library-js/System.Collections.Generic.js +320 -0
- package/dist/ts/ts/ARC.d.ts +3 -3
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +72 -93
- 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 +292 -46
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +951 -563
- 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 +447 -193
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +8 -3
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +20 -4
- 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 +8 -3
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/OperationDescription.js +20 -4
- 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 -50
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Requirements.js +458 -127
- package/dist/ts/ts/CWL/ToolDescription.d.ts +31 -3
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ToolDescription.js +83 -4
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +8 -3
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowDescription.js +20 -4
- 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/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.d.ts +3 -3
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +30 -23
- 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/Core/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Core/Datamap.js +4 -2
- package/dist/ts/ts/Core/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +76 -2
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +3 -0
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.js +23 -10
- package/dist/ts/ts/Core/Table/ArcTables.d.ts +1 -0
- package/dist/ts/ts/Core/Table/ArcTables.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTables.js +7 -3
- 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.5 → YAMLicious.1.0.0-alpha.11}/Decode.fs.js +96 -24
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → 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.5 → YAMLicious.1.0.0-alpha.11}/Regex.fs.js +1 -1
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → 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.11/Writer.fs.js +686 -0
- package/package.json +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/FlowToBlock.fs.js +0 -956
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Preprocessing.fs.js +0 -139
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Reader.fs.js +0 -1314
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.5/Writer.fs.js +0 -391
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/Encode.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/Escapes.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/Interop/JsInterop.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/StringBuffer.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.5 → YAMLicious.1.0.0-alpha.11}/YAMLiciousTypes.fs.js +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FSharpSet } from '@fable-org/fable-library-js/Set.js';
|
|
2
|
+
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
3
|
+
import { DynamicObj } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
4
|
+
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
5
|
+
/**
|
|
6
|
+
* Convert a public F# property name to the private backing-field name that
|
|
7
|
+
* DynamicObj exposes for typed members compiled by Fable or .NET.
|
|
8
|
+
*/
|
|
9
|
+
export declare function toCompilerBackingName(propertyName: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* Return both common backing-field spellings for all typed properties so they
|
|
12
|
+
* can be excluded from dynamic CWL extension fields.
|
|
13
|
+
*/
|
|
14
|
+
export declare function typedBackingFieldNames(dynObj: DynamicObj): FSharpSet<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Enumerate only true dynamic properties, excluding known CWL fields and
|
|
17
|
+
* compiler-generated storage for typed members.
|
|
18
|
+
*/
|
|
19
|
+
export declare function dynamicPropertiesExcept(knownFieldNames: FSharpSet<string>, dynObj: DynamicObj): Iterable<[string, any]>;
|
|
20
|
+
/**
|
|
21
|
+
* Create a stable, sorted dynamic-property snapshot for equality and hashing.
|
|
22
|
+
*/
|
|
23
|
+
export declare function dynamicPropertiesSnapshotExcept(knownFieldNames: FSharpSet<string>, dynObj: DynamicObj): FSharpList<[string, any]>;
|
|
24
|
+
/**
|
|
25
|
+
* Snapshot all dynamic extension properties on an object.
|
|
26
|
+
*/
|
|
27
|
+
export declare function dynamicPropertiesSnapshot(dynObj: DynamicObj): FSharpList<[string, any]>;
|
|
28
|
+
/**
|
|
29
|
+
* Compare only preserved dynamic extension properties between two CWL objects.
|
|
30
|
+
*/
|
|
31
|
+
export declare function dynamicPropertiesEqual(left: DynamicObj, right: DynamicObj): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Hash preserved dynamic extension properties in the same stable order used
|
|
34
|
+
* by dynamicPropertiesEqual.
|
|
35
|
+
*/
|
|
36
|
+
export declare function hashDynamicProperties(dynObj: DynamicObj): int32;
|
|
37
|
+
//# sourceMappingURL=DynamicObjHelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicObjHelpers.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/DynamicObjHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmB,SAAS,EAAS,MAAM,oCAAoC,CAAC;AAIvF,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEjE;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAiBlE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,CAI5E;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,GAAG,QAAQ,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAUvH;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,eAAe,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAIjI;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAIvF;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAEnF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,KAAK,CAE/D"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { isNullOrEmpty, endsWith, substring } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
2
|
+
import { isUpper } from '../../node_modules/@fable-org/fable-library-js/Char.js';
|
|
3
|
+
import { item, setItem } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
4
|
+
import { ofSeq, contains, empty } from '../../node_modules/@fable-org/fable-library-js/Set.js';
|
|
5
|
+
import { collect, delay, append, singleton, filter, toList, sortBy, map } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
|
+
import { comparePrimitives, equals, safeHash } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
7
|
+
|
|
8
|
+
function toCompilerBackingName(propertyName) {
|
|
9
|
+
const propertyName_1 = isNullOrEmpty(propertyName) ? propertyName : endsWith(propertyName, "_", 4) ? substring(propertyName, 0, propertyName.length - 1) : propertyName;
|
|
10
|
+
const chars = propertyName_1.split("");
|
|
11
|
+
let index = 0;
|
|
12
|
+
let keepLowering = true;
|
|
13
|
+
while (keepLowering && index < chars.length && isUpper(item(index, chars))) {
|
|
14
|
+
const nextIsEnd = index + 1 === chars.length;
|
|
15
|
+
const nextIsUpper = !nextIsEnd && isUpper(item(index + 1, chars));
|
|
16
|
+
if ((index === 0 ? true : nextIsEnd) ? true : nextIsUpper) {
|
|
17
|
+
setItem(chars, index, item(index, chars).toLowerCase());
|
|
18
|
+
index = index + 1 | 0;
|
|
19
|
+
} else {
|
|
20
|
+
keepLowering = false;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return "_" + chars.join("");
|
|
24
|
+
}
|
|
25
|
+
function typedBackingFieldNames(dynObj) {
|
|
26
|
+
return ofSeq(collect((property_1) => delay(() => append(singleton("_" + property_1.Name), delay(() => singleton(toCompilerBackingName(property_1.Name))))), filter((property) => !property.IsDynamic, dynObj.GetPropertyHelpers(true))), {
|
|
27
|
+
Compare: comparePrimitives
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function dynamicPropertiesExcept(knownFieldNames, dynObj) {
|
|
31
|
+
const typedBackingFields = typedBackingFieldNames(dynObj);
|
|
32
|
+
return filter((kv) => {
|
|
33
|
+
if (!contains(kv[0], knownFieldNames)) {
|
|
34
|
+
return !contains(kv[0], typedBackingFields);
|
|
35
|
+
} else {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
}, dynObj.GetProperties(false));
|
|
39
|
+
}
|
|
40
|
+
function dynamicPropertiesSnapshotExcept(knownFieldNames, dynObj) {
|
|
41
|
+
return toList(sortBy((tuple) => tuple[0], map((kv) => [kv[0], kv[1]], dynamicPropertiesExcept(knownFieldNames, dynObj)), {
|
|
42
|
+
Compare: comparePrimitives
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
function dynamicPropertiesSnapshot(dynObj) {
|
|
46
|
+
return dynamicPropertiesSnapshotExcept(empty({
|
|
47
|
+
Compare: comparePrimitives
|
|
48
|
+
}), dynObj);
|
|
49
|
+
}
|
|
50
|
+
function dynamicPropertiesEqual(left, right) {
|
|
51
|
+
return equals(dynamicPropertiesSnapshot(left), dynamicPropertiesSnapshot(right));
|
|
52
|
+
}
|
|
53
|
+
function hashDynamicProperties(dynObj) {
|
|
54
|
+
return safeHash(dynamicPropertiesSnapshot(dynObj));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { dynamicPropertiesEqual, dynamicPropertiesExcept, dynamicPropertiesSnapshot, dynamicPropertiesSnapshotExcept, hashDynamicProperties, toCompilerBackingName, typedBackingFieldNames };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { FSharpChoice$2_$union } from '@fable-org/fable-library-js/Choice.js';
|
|
2
|
-
import { SchemaDefRequirementType, InputEnumSchema, InputRecordSchema,
|
|
2
|
+
import { SchemaDefRequirementType, InputRecordField, InputEnumSchema, InputRecordSchema, DirectoryInstance, FileInstance, SoftwarePackage, SchemaSaladString_$union, CWLType_$union, InputArraySchema } from './CWLTypes.js';
|
|
3
3
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
4
|
+
import { float64 } from '@fable-org/fable-library-js/Int32.js';
|
|
4
5
|
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
5
|
-
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.
|
|
6
|
+
import { YAMLElement_$union } from '../fable_modules/YAMLicious.1.0.0-alpha.11/YAMLiciousTypes.fs.js';
|
|
7
|
+
import { DynamicObj } from '../fable_modules/DynamicObj.7.1.0/DynamicObj.fs.js';
|
|
8
|
+
import { FSharpSet } from '@fable-org/fable-library-js/Set.js';
|
|
6
9
|
import { HintEntry_$union, Requirement_$union, EnvironmentDef } from './Requirements.js';
|
|
7
10
|
import { CWLOutput, OutputBinding } from './Outputs.js';
|
|
8
11
|
import { CWLInput, InputBinding } from './Inputs.js';
|
|
@@ -26,7 +29,27 @@ export declare function tryGetArrayShorthand(cwlType: CWLType_$union): Option<st
|
|
|
26
29
|
*/
|
|
27
30
|
export declare function isComplexType(t_mut: CWLType_$union): boolean;
|
|
28
31
|
export declare function yBool(b: boolean): YAMLElement_$union;
|
|
32
|
+
/**
|
|
33
|
+
* Encode floats with round-trip formatting on .NET while keeping Fable output usable.
|
|
34
|
+
*/
|
|
35
|
+
export declare function yFloat(value: float64): YAMLElement_$union;
|
|
29
36
|
export declare function yMap(pairs: FSharpList<[string, YAMLElement_$union]>): YAMLElement_$union;
|
|
37
|
+
/**
|
|
38
|
+
* Encode preserved DynamicObj extension values when they can be represented as YAML.
|
|
39
|
+
*/
|
|
40
|
+
export declare function encodeDynamicValue(value: any): Option<YAMLElement_$union>;
|
|
41
|
+
/**
|
|
42
|
+
* Encode all dynamic extension properties on a DynamicObj as a YAML mapping.
|
|
43
|
+
*/
|
|
44
|
+
export declare function encodeDynamicObj(dynObj: DynamicObj): YAMLElement_$union;
|
|
45
|
+
/**
|
|
46
|
+
* Append encodable dynamic extension fields while excluding typed CWL fields.
|
|
47
|
+
*/
|
|
48
|
+
export declare function appendDynamicPropertiesExcept(knownFieldNames: FSharpSet<string>, dynObj: DynamicObj, acc: FSharpList<[string, YAMLElement_$union]>): FSharpList<[string, YAMLElement_$union]>;
|
|
49
|
+
export declare function appendDynamicProperties(dynObj: DynamicObj, acc: FSharpList<[string, YAMLElement_$union]>): FSharpList<[string, YAMLElement_$union]>;
|
|
50
|
+
/**
|
|
51
|
+
* Normalize documentation line endings and trim only trailing newline markers.
|
|
52
|
+
*/
|
|
30
53
|
export declare function normalizeDocString(doc: string): string;
|
|
31
54
|
/**
|
|
32
55
|
* Encode expression payloads with style-aware scalars.
|
|
@@ -35,7 +58,13 @@ export declare function normalizeDocString(doc: string): string;
|
|
|
35
58
|
* so trailing newlines and blank lines survive decode/encode roundtrips.
|
|
36
59
|
*/
|
|
37
60
|
export declare function encodeExpressionScalar(expression: string): YAMLElement_$union;
|
|
61
|
+
/**
|
|
62
|
+
* Encode schema-salad strings as literals or directive mappings.
|
|
63
|
+
*/
|
|
38
64
|
export declare function encodeSchemaSaladString(value: SchemaSaladString_$union): YAMLElement_$union;
|
|
65
|
+
/**
|
|
66
|
+
* Quote boolean-looking EnvVar values so YAML does not coerce them on decode.
|
|
67
|
+
*/
|
|
39
68
|
export declare function normalizeEnvValueForEncode(envValue: string): string;
|
|
40
69
|
/**
|
|
41
70
|
* Encode EnvVarRequirement using compact map shorthand (envName -> envValue).
|
|
@@ -48,18 +77,65 @@ export declare function encodeSoftwareRequirementCompactMap(packages: SoftwarePa
|
|
|
48
77
|
export declare function encodeLabel(label: string): [string, YAMLElement_$union];
|
|
49
78
|
export declare function encodeDoc(doc: string): [string, YAMLElement_$union];
|
|
50
79
|
export declare function encodeIntent(intent: string[]): [string, YAMLElement_$union];
|
|
80
|
+
/**
|
|
81
|
+
* Encode File fields with the supplied discriminator key (`type` or `class`).
|
|
82
|
+
*/
|
|
83
|
+
export declare function encodeFilePairs(discriminatorKey: string, discriminatorValue: string, file: FileInstance): FSharpList<[string, YAMLElement_$union]>;
|
|
84
|
+
/**
|
|
85
|
+
* Encode Directory fields with the supplied discriminator key (`type` or `class`).
|
|
86
|
+
*/
|
|
87
|
+
export declare function encodeDirectoryPairs(discriminatorKey: string, discriminatorValue: string, directory: DirectoryInstance): FSharpList<[string, YAMLElement_$union]>;
|
|
88
|
+
/**
|
|
89
|
+
* Encode CWL types using shorthand when possible and full schema objects when required.
|
|
90
|
+
*/
|
|
51
91
|
export declare function encodeCWLType(t: CWLType_$union): YAMLElement_$union;
|
|
92
|
+
/**
|
|
93
|
+
* Encode a record field as a map entry keyed by its field name.
|
|
94
|
+
*/
|
|
52
95
|
export declare function encodeInputRecordField(field: InputRecordField): [string, YAMLElement_$union];
|
|
96
|
+
/**
|
|
97
|
+
* Encode record schemas with map-form fields and preserved schema metadata.
|
|
98
|
+
*/
|
|
53
99
|
export declare function encodeInputRecordSchema(schema: InputRecordSchema): YAMLElement_$union;
|
|
100
|
+
/**
|
|
101
|
+
* Encode enum schemas while preserving symbol order and schema metadata.
|
|
102
|
+
*/
|
|
54
103
|
export declare function encodeInputEnumSchema(schema: InputEnumSchema): YAMLElement_$union;
|
|
104
|
+
/**
|
|
105
|
+
* Encode array schemas with their item type and preserved schema metadata.
|
|
106
|
+
*/
|
|
55
107
|
export declare function encodeInputArraySchema(schema: InputArraySchema): YAMLElement_$union;
|
|
108
|
+
/**
|
|
109
|
+
* Encode outputBinding fields and preserved extension properties.
|
|
110
|
+
*/
|
|
56
111
|
export declare function encodeOutputBinding(ob: OutputBinding): YAMLElement_$union;
|
|
112
|
+
/**
|
|
113
|
+
* Encode one source value as a scalar and multiple source values as a sequence.
|
|
114
|
+
*/
|
|
57
115
|
export declare function encodeStringArrayOrScalar(values: string[]): YAMLElement_$union;
|
|
116
|
+
/**
|
|
117
|
+
* Encode a workflow or tool output, choosing shorthand only when type is the sole field.
|
|
118
|
+
*/
|
|
58
119
|
export declare function encodeCWLOutput(o: CWLOutput): [string, YAMLElement_$union];
|
|
120
|
+
/**
|
|
121
|
+
* Encode inputBinding fields and preserved extension properties.
|
|
122
|
+
*/
|
|
59
123
|
export declare function encodeInputBinding(ib: InputBinding): YAMLElement_$union;
|
|
124
|
+
/**
|
|
125
|
+
* Encode a workflow or tool input, choosing shorthand only when type is the sole field.
|
|
126
|
+
*/
|
|
60
127
|
export declare function encodeCWLInput(i: CWLInput): [string, YAMLElement_$union];
|
|
128
|
+
/**
|
|
129
|
+
* Encode one SchemaDefRequirement type entry and preserved schema extension fields.
|
|
130
|
+
*/
|
|
61
131
|
export declare function encodeSchemaDefRequirementType(s: SchemaDefRequirementType): YAMLElement_$union;
|
|
132
|
+
/**
|
|
133
|
+
* Encode known CWL requirements in extended form while preserving requirement extensions.
|
|
134
|
+
*/
|
|
62
135
|
export declare function encodeRequirement(r: Requirement_$union): YAMLElement_$union;
|
|
136
|
+
/**
|
|
137
|
+
* Encode known hints as requirements and unknown hints as their original raw YAML.
|
|
138
|
+
*/
|
|
63
139
|
export declare function encodeHintEntry(hint: HintEntry_$union): YAMLElement_$union;
|
|
64
140
|
/**
|
|
65
141
|
* Encode a ResizeArray<string> as either a single string or a sequence
|
|
@@ -68,19 +144,58 @@ export declare function encodeSourceArray(sources: string[]): YAMLElement_$union
|
|
|
68
144
|
export declare function encodeLinkMergeMethod(linkMerge: LinkMergeMethod_$union): YAMLElement_$union;
|
|
69
145
|
export declare function encodePickValueMethod(pickValue: PickValueMethod_$union): YAMLElement_$union;
|
|
70
146
|
export declare function encodeScatterMethod(scatterMethod: ScatterMethod_$union): YAMLElement_$union;
|
|
147
|
+
/**
|
|
148
|
+
* Encode a step input using scalar source shorthand only when no other fields exist.
|
|
149
|
+
*/
|
|
71
150
|
export declare function encodeStepInput(si: StepInput): [string, YAMLElement_$union];
|
|
151
|
+
/**
|
|
152
|
+
* Encode all step inputs in map form keyed by step input id.
|
|
153
|
+
*/
|
|
72
154
|
export declare function encodeStepInputs(inputs: StepInput[]): YAMLElement_$union;
|
|
155
|
+
/**
|
|
156
|
+
* Encode record-form step output parameters, including extension fields.
|
|
157
|
+
*/
|
|
73
158
|
export declare function encodeStepOutputParameter(so: StepOutputParameter): YAMLElement_$union;
|
|
159
|
+
/**
|
|
160
|
+
* Encode step outputs as either scalar ids or record-form output parameters.
|
|
161
|
+
*/
|
|
74
162
|
export declare function encodeStepOutputs(outputs: StepOutput_$union[]): YAMLElement_$union;
|
|
163
|
+
/**
|
|
164
|
+
* Encode scatter as scalar shorthand for one item or a sequence for multiple items.
|
|
165
|
+
*/
|
|
75
166
|
export declare function encodeScatter(scatter: string[]): YAMLElement_$union;
|
|
167
|
+
/**
|
|
168
|
+
* Encode workflow step run targets as paths or inline processing units.
|
|
169
|
+
*/
|
|
76
170
|
export declare function encodeWorkflowStepRun(run: WorkflowStepRun_$union): YAMLElement_$union;
|
|
171
|
+
/**
|
|
172
|
+
* Encode a CommandLineTool element with ordered sections and preserved metadata.
|
|
173
|
+
*/
|
|
77
174
|
export declare function encodeToolDescriptionElement(td: CWLToolDescription): YAMLElement_$union;
|
|
175
|
+
/**
|
|
176
|
+
* Encode an ExpressionTool element with ordered sections and preserved metadata.
|
|
177
|
+
*/
|
|
78
178
|
export declare function encodeExpressionToolDescriptionElement(et: CWLExpressionToolDescription): YAMLElement_$union;
|
|
179
|
+
/**
|
|
180
|
+
* Encode an Operation element with ordered sections and preserved metadata.
|
|
181
|
+
*/
|
|
79
182
|
export declare function encodeOperationDescriptionElement(op: CWLOperationDescription): YAMLElement_$union;
|
|
183
|
+
/**
|
|
184
|
+
* Encode a Workflow element with ordered sections and preserved metadata.
|
|
185
|
+
*/
|
|
80
186
|
export declare function encodeWorkflowDescriptionElement(wd: CWLWorkflowDescription): YAMLElement_$union;
|
|
187
|
+
/**
|
|
188
|
+
* Encode one workflow step as a map entry keyed by step id.
|
|
189
|
+
*/
|
|
81
190
|
export declare function encodeWorkflowStep(ws: WorkflowStep): [string, YAMLElement_$union];
|
|
82
191
|
export declare function writeYaml(element: YAMLElement_$union): string;
|
|
192
|
+
/**
|
|
193
|
+
* Extract object mappings in order, dropping non-mapping presentation nodes.
|
|
194
|
+
*/
|
|
83
195
|
export declare function getObjectPairs(element: YAMLElement_$union): FSharpList<[string, YAMLElement_$union]>;
|
|
196
|
+
/**
|
|
197
|
+
* Render top-level CWL sections in a stable order while keeping metadata as a final block.
|
|
198
|
+
*/
|
|
84
199
|
export declare function renderTopLevelElement(baseKeys: FSharpList<string>, orderedSectionKeys: FSharpList<string>, element: YAMLElement_$union): string;
|
|
85
200
|
export declare function encodeToolDescription(td: CWLToolDescription): string;
|
|
86
201
|
export declare function encodeWorkflowDescription(wd: CWLWorkflowDescription): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Encode.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/Encode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAwD,MAAM,uCAAuC,CAAC;AACpI,OAAO,
|
|
1
|
+
{"version":3,"file":"Encode.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/CWL/Encode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAwD,MAAM,uCAAuC,CAAC;AACpI,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAkB,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,wBAAwB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC7O,OAAO,EAAmC,MAAM,EAAO,MAAM,uCAAuC,CAAC;AACrG,OAAO,EAAE,OAAO,EAAS,MAAM,sCAAsC,CAAC;AAEtE,OAAO,EAA4K,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAC3O,OAAO,EAAgL,kBAAkB,EAAmD,MAAM,kEAAkE,CAAC;AAIrU,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAEhF,OAAO,EAAiD,SAAS,EAAS,MAAM,oC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