@galaxy-tool-util/schema 1.13.1 → 1.15.0
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/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/test-format/tests.schema.generated.d.ts +47 -0
- package/dist/test-format/tests.schema.generated.d.ts.map +1 -1
- package/dist/test-format/tests.schema.generated.js +62 -0
- package/dist/test-format/tests.schema.generated.js.map +1 -1
- package/dist/user-tool-source/schema.generated.d.ts +1203 -266
- package/dist/user-tool-source/schema.generated.d.ts.map +1 -1
- package/dist/user-tool-source/schema.generated.js +1522 -367
- package/dist/user-tool-source/schema.generated.js.map +1 -1
- package/dist/workflow/draft-checks.d.ts.map +1 -1
- package/dist/workflow/draft-checks.js +105 -59
- package/dist/workflow/draft-checks.js.map +1 -1
- package/dist/workflow/index.d.ts +5 -3
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +5 -3
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/input-parameter.d.ts +280 -0
- package/dist/workflow/input-parameter.d.ts.map +1 -0
- package/dist/workflow/input-parameter.js +38 -0
- package/dist/workflow/input-parameter.js.map +1 -0
- package/dist/workflow/layout-properties.d.ts +10 -0
- package/dist/workflow/layout-properties.d.ts.map +1 -0
- package/dist/workflow/layout-properties.js +112 -0
- package/dist/workflow/layout-properties.js.map +1 -0
- package/dist/workflow/layout.d.ts +84 -0
- package/dist/workflow/layout.d.ts.map +1 -0
- package/dist/workflow/layout.js +356 -0
- package/dist/workflow/layout.js.map +1 -0
- package/dist/workflow/lint-rules.d.ts +6 -0
- package/dist/workflow/lint-rules.d.ts.map +1 -1
- package/dist/workflow/lint-rules.js +6 -0
- package/dist/workflow/lint-rules.js.map +1 -1
- package/dist/workflow/lint.d.ts +1 -1
- package/dist/workflow/lint.d.ts.map +1 -1
- package/dist/workflow/lint.js +232 -58
- package/dist/workflow/lint.js.map +1 -1
- package/dist/workflow/lint_profiles.yml +1 -0
- package/dist/workflow/mermaid.d.ts.map +1 -1
- package/dist/workflow/mermaid.js +1 -0
- package/dist/workflow/mermaid.js.map +1 -1
- package/dist/workflow/normalized/expanded.d.ts +12 -0
- package/dist/workflow/normalized/expanded.d.ts.map +1 -1
- package/dist/workflow/normalized/expanded.js +42 -1
- package/dist/workflow/normalized/expanded.js.map +1 -1
- package/dist/workflow/normalized/index.d.ts +2 -2
- package/dist/workflow/normalized/index.d.ts.map +1 -1
- package/dist/workflow/normalized/index.js +2 -2
- package/dist/workflow/normalized/index.js.map +1 -1
- package/dist/workflow/normalized/labels.d.ts +7 -0
- package/dist/workflow/normalized/labels.d.ts.map +1 -1
- package/dist/workflow/normalized/labels.js +11 -0
- package/dist/workflow/normalized/labels.js.map +1 -1
- package/dist/workflow/normalized/native.js +5 -4
- package/dist/workflow/normalized/native.js.map +1 -1
- package/dist/workflow/normalized/toFormat2.d.ts +2 -0
- package/dist/workflow/normalized/toFormat2.d.ts.map +1 -1
- package/dist/workflow/normalized/toFormat2.js +28 -14
- package/dist/workflow/normalized/toFormat2.js.map +1 -1
- package/dist/workflow/normalized/toNative.d.ts +19 -2
- package/dist/workflow/normalized/toNative.d.ts.map +1 -1
- package/dist/workflow/normalized/toNative.js +55 -17
- package/dist/workflow/normalized/toNative.js.map +1 -1
- package/dist/workflow/raw/gxformat2-draft.d.ts +67 -9
- package/dist/workflow/raw/gxformat2-draft.d.ts.map +1 -1
- package/dist/workflow/raw/gxformat2-draft.effect.d.ts +1073 -161
- package/dist/workflow/raw/gxformat2-draft.effect.d.ts.map +1 -1
- package/dist/workflow/raw/gxformat2-draft.effect.js +184 -120
- package/dist/workflow/raw/gxformat2-draft.effect.js.map +1 -1
- package/dist/workflow/raw/gxformat2-draft.js +6 -0
- package/dist/workflow/raw/gxformat2-draft.js.map +1 -1
- package/dist/workflow/raw/gxformat2.d.ts +67 -9
- package/dist/workflow/raw/gxformat2.d.ts.map +1 -1
- package/dist/workflow/raw/gxformat2.effect.d.ts +591 -143
- package/dist/workflow/raw/gxformat2.effect.d.ts.map +1 -1
- package/dist/workflow/raw/gxformat2.effect.js +169 -105
- package/dist/workflow/raw/gxformat2.effect.js.map +1 -1
- package/dist/workflow/raw/gxformat2.js +6 -0
- package/dist/workflow/raw/gxformat2.js.map +1 -1
- package/dist/workflow/raw/native.d.ts +14 -0
- package/dist/workflow/raw/native.d.ts.map +1 -1
- package/dist/workflow/raw/native.effect.d.ts +45 -30
- package/dist/workflow/raw/native.effect.d.ts.map +1 -1
- package/dist/workflow/raw/native.effect.js +40 -26
- package/dist/workflow/raw/native.effect.js.map +1 -1
- package/dist/workflow/raw/native.js.map +1 -1
- package/dist/workflow/schema_rules.yml +9 -0
- package/dist/workflow/semantic-validators.d.ts +9 -0
- package/dist/workflow/semantic-validators.d.ts.map +1 -1
- package/dist/workflow/semantic-validators.js +42 -20
- package/dist/workflow/semantic-validators.js.map +1 -1
- package/dist/workflow/strict-checks.d.ts.map +1 -1
- package/dist/workflow/strict-checks.js +2 -3
- package/dist/workflow/strict-checks.js.map +1 -1
- package/dist/workflow/validators.d.ts +7 -4
- package/dist/workflow/validators.d.ts.map +1 -1
- package/dist/workflow/validators.js +20 -9
- package/dist/workflow/validators.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAGjG,OAAO,EACL,KAAK,cAAc,EACnB,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,6BAA6B,EAAE,MAAM,mBAAm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ACpB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,sBAAsB,EACtB,gCAAgC,EAChC,6BAA6B,EAC7B,6BAA6B,EAC7B,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,EAC3B,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC"}
|
package/dist/workflow/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { GalaxyWorkflowSchema, GalaxyWorkflowDraftSchema, DraftWorkflowStepSchem
|
|
|
5
5
|
// Plain JSON Schema siblings for downstream packagers (issue #108)
|
|
6
6
|
export { galaxyWorkflowDraftJsonSchema } from "./json-schemas.js";
|
|
7
7
|
// Normalized workflow types + normalizers
|
|
8
|
-
export { normalizedFormat2, normalizeStepIn, normalizeStepOut, NormalizedFormat2WorkflowSchema, NormalizedFormat2StepSchema, NormalizedFormat2InputSchema, NormalizedFormat2OutputSchema, NormalizedFormat2StepInputSchema, NormalizedFormat2StepOutputSchema, GalaxyUserToolStubSchema, isGalaxyUserToolRun, normalizedNative, NormalizedNativeWorkflowSchema, NormalizedNativeStepSchema, ToolReferenceSchema, toFormat2, toNative, toFormat2Stateful, toNativeStateful, ensureFormat2, ensureNative, expandedFormat2, expandedNative, isTrsUrl, MAX_EXPANSION_DEPTH, flattenCommentData, unflattenCommentData, resolveSourceReference, stepRenderIdentity, rawStepRenderIdentity, UNLABELED_INPUT_PREFIX, UNLABELED_STEP_PREFIX, } from "./normalized/index.js";
|
|
8
|
+
export { normalizedFormat2, normalizeStepIn, normalizeStepOut, NormalizedFormat2WorkflowSchema, NormalizedFormat2StepSchema, NormalizedFormat2InputSchema, NormalizedFormat2OutputSchema, NormalizedFormat2StepInputSchema, NormalizedFormat2StepOutputSchema, GalaxyUserToolStubSchema, isGalaxyUserToolRun, normalizedNative, NormalizedNativeWorkflowSchema, NormalizedNativeStepSchema, ToolReferenceSchema, toFormat2, toNative, toFormat2Stateful, toNativeStateful, ensureFormat2, ensureNative, expandedFormat2, expandedNative, isTrsUrl, trsDescriptorUrl, MAX_EXPANSION_DEPTH, flattenCommentData, unflattenCommentData, resolveSourceReference, stepRenderIdentity, rawStepRenderIdentity, unlabeledNodeId, UNLABELED_INPUT_PREFIX, UNLABELED_STEP_PREFIX, } from "./normalized/index.js";
|
|
9
9
|
export { flatStatePath, keysStartingWith, repeatInputsToArray, selectWhichWhen, } from "./walk-helpers.js";
|
|
10
10
|
export { injectConnectionsIntoState, stripConnectedValues, nativeConnectionsFromFormat2In, } from "./state-merge.js";
|
|
11
11
|
export { expandToolStateDefaults } from "./fill-defaults.js";
|
|
@@ -23,15 +23,17 @@ export { cleanWorkflow } from "./clean.js";
|
|
|
23
23
|
export { workflowToMermaid } from "./mermaid.js";
|
|
24
24
|
export { edgeAnnotationKey } from "./edge-annotation.js";
|
|
25
25
|
export { cytoscapeElements } from "./cytoscape.js";
|
|
26
|
+
export { applyLayout, layeredPositions, layoutPositions, AUTO as LAYOUT_AUTO, LayoutCycleError, } from "./layout.js";
|
|
27
|
+
export { GRAPH_PROPERTY_CHECKERS } from "./layout-properties.js";
|
|
26
28
|
export { elementsToList, } from "./cytoscape-models.js";
|
|
27
29
|
export { COL_STRIDE, ROW_STRIDE, LAYOUT_NAMES, bakesCoordinates, isLayoutName, topologicalPositions, } from "./cytoscape-layout.js";
|
|
28
30
|
export { detectFormat } from "./detect-format.js";
|
|
29
31
|
export { TODO_SENTINEL_PATTERN, PLAN_FIELDS, DRAFT_CLASS, isTodoSentinel, isDraftWorkflow, detectDraft, validateDraft, nextDraftStep, extractConcreteSubset, resolveDraftOverlay, PLANNED_CLASS, } from "./draft-checks.js";
|
|
30
32
|
export { stripPlanFields, promoteFullyConcreteDrafts, } from "./promote-draft.js";
|
|
31
|
-
export { withClass, validateFormat2, validateFormat2Strict, validateNative, validateNativeStrict, validatorForFixture, } from "./validators.js";
|
|
33
|
+
export { withClass, withDecodeClass, validateFormat2, validateFormat2Strict, validateNative, validateNativeStrict, validatorForFixture, } from "./validators.js";
|
|
32
34
|
export { validateEncodingNative, validateEncodingFormat2, checkStrictEncoding, checkStrictStructure, } from "./strict-checks.js";
|
|
33
35
|
export { LintContext, LintMessage, Linter, LEVEL_ERROR, LEVEL_WARN, lintNative, lintFormat2, lintWorkflow, lintBestPracticesFormat2, lintBestPracticesNative, } from "./lint.js";
|
|
34
|
-
export { NativeStepKeyNotInteger } from "./lint-rules.js";
|
|
36
|
+
export { NativeStepKeyNotInteger, StepLabelNotUnique } from "./lint-rules.js";
|
|
35
37
|
export { parseLintProfiles, lintProfilesById, rulesForProfile, iwcRuleIds, LINT_PROFILES_FILENAME, IWC_PROFILE_NAMES, } from "./lint-profiles.js";
|
|
36
38
|
// Structured report models (mirrors Python _report_models.py)
|
|
37
39
|
export { SKIP_STATUSES, validationSummary, validationFailures, cleanDisplayLabel, categoryOf, groupByCategory, buildSingleValidationReport, buildSingleLintReport, buildSingleCleanReport, buildSingleDraftValidationReport, buildSingleDraftExtractReport, buildWorkflowValidationResult, buildLintWorkflowResult, buildWorkflowCleanResult, buildTreeValidationReport, buildLintTreeReport, buildTreeCleanReport, buildWorkflowExportResult, buildExportTreeReport, buildWorkflowToNativeResult, buildToNativeTreeReport, buildRoundTripTreeReport, } from "./report-models.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAiC,MAAM,gBAAgB,CAAC;AAEjG,wCAAwC;AACxC,OAAO,EAEL,oBAAoB,EAEp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,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve Format2 input `type` strings to their Effect input parameter schemas.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors gxformat2/schema/_input_parameter.py and the `pydantic:discriminator_map`
|
|
5
|
+
* on `Process.inputs` in schema-sources/v19_09/Process.yml.
|
|
6
|
+
*/
|
|
7
|
+
declare const INPUT_TYPE_TO_SCHEMA: {
|
|
8
|
+
readonly data: import("effect/Schema").Struct<{
|
|
9
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
10
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
11
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
12
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
13
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
14
|
+
top: typeof import("effect/Schema").Number;
|
|
15
|
+
left: typeof import("effect/Schema").Number;
|
|
16
|
+
}>]>>;
|
|
17
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
18
|
+
type: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").Literal<["data", "File"]>, typeof import("effect/Schema").Null]>>;
|
|
19
|
+
format: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
20
|
+
}>;
|
|
21
|
+
readonly File: import("effect/Schema").Struct<{
|
|
22
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
23
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
24
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
25
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
26
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
27
|
+
top: typeof import("effect/Schema").Number;
|
|
28
|
+
left: typeof import("effect/Schema").Number;
|
|
29
|
+
}>]>>;
|
|
30
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
31
|
+
type: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").Literal<["data", "File"]>, typeof import("effect/Schema").Null]>>;
|
|
32
|
+
format: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
33
|
+
}>;
|
|
34
|
+
readonly data_input: import("effect/Schema").Struct<{
|
|
35
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
36
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
37
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
38
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
39
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
40
|
+
top: typeof import("effect/Schema").Number;
|
|
41
|
+
left: typeof import("effect/Schema").Number;
|
|
42
|
+
}>]>>;
|
|
43
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
44
|
+
type: import("effect/Schema").optional<import("effect/Schema").Union<[import("effect/Schema").Literal<["data", "File"]>, typeof import("effect/Schema").Null]>>;
|
|
45
|
+
format: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
46
|
+
}>;
|
|
47
|
+
readonly collection: import("effect/Schema").Struct<{
|
|
48
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
49
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
50
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
51
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
52
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
53
|
+
top: typeof import("effect/Schema").Number;
|
|
54
|
+
left: typeof import("effect/Schema").Number;
|
|
55
|
+
}>]>>;
|
|
56
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
57
|
+
type: import("effect/Schema").Literal<["collection"]>;
|
|
58
|
+
collection_type: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
59
|
+
column_definitions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
60
|
+
name: typeof import("effect/Schema").String;
|
|
61
|
+
description: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
62
|
+
type: import("effect/Schema").Literal<["string", "int", "float", "boolean", "element_identifier"]>;
|
|
63
|
+
optional: typeof import("effect/Schema").Boolean;
|
|
64
|
+
default_value: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, typeof import("effect/Schema").Number, typeof import("effect/Schema").Boolean]>>;
|
|
65
|
+
validators: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<typeof import("effect/Schema").Unknown>]>>;
|
|
66
|
+
restrictions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number, typeof import("effect/Schema").Number, typeof import("effect/Schema").Boolean]>>]>>;
|
|
67
|
+
suggestions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number, typeof import("effect/Schema").Number, typeof import("effect/Schema").Boolean]>>]>>;
|
|
68
|
+
}>>]>>;
|
|
69
|
+
fields: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
70
|
+
name: typeof import("effect/Schema").String;
|
|
71
|
+
type: import("effect/Schema").Union<[import("effect/Schema").Literal<["File", "null", "boolean", "int", "float", "string"]>, import("effect/Schema").Array$<import("effect/Schema").Literal<["File", "null", "boolean", "int", "float", "string"]>>]>;
|
|
72
|
+
format: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
73
|
+
}>>]>>;
|
|
74
|
+
format: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
75
|
+
}>;
|
|
76
|
+
readonly data_collection: import("effect/Schema").Struct<{
|
|
77
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
78
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
79
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
80
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
81
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
82
|
+
top: typeof import("effect/Schema").Number;
|
|
83
|
+
left: typeof import("effect/Schema").Number;
|
|
84
|
+
}>]>>;
|
|
85
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
86
|
+
type: import("effect/Schema").Literal<["collection"]>;
|
|
87
|
+
collection_type: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
88
|
+
column_definitions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
89
|
+
name: typeof import("effect/Schema").String;
|
|
90
|
+
description: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
91
|
+
type: import("effect/Schema").Literal<["string", "int", "float", "boolean", "element_identifier"]>;
|
|
92
|
+
optional: typeof import("effect/Schema").Boolean;
|
|
93
|
+
default_value: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, typeof import("effect/Schema").Number, typeof import("effect/Schema").Boolean]>>;
|
|
94
|
+
validators: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<typeof import("effect/Schema").Unknown>]>>;
|
|
95
|
+
restrictions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number, typeof import("effect/Schema").Number, typeof import("effect/Schema").Boolean]>>]>>;
|
|
96
|
+
suggestions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number, typeof import("effect/Schema").Number, typeof import("effect/Schema").Boolean]>>]>>;
|
|
97
|
+
}>>]>>;
|
|
98
|
+
fields: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
99
|
+
name: typeof import("effect/Schema").String;
|
|
100
|
+
type: import("effect/Schema").Union<[import("effect/Schema").Literal<["File", "null", "boolean", "int", "float", "string"]>, import("effect/Schema").Array$<import("effect/Schema").Literal<["File", "null", "boolean", "int", "float", "string"]>>]>;
|
|
101
|
+
format: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
102
|
+
}>>]>>;
|
|
103
|
+
format: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
104
|
+
}>;
|
|
105
|
+
readonly data_collection_input: import("effect/Schema").Struct<{
|
|
106
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
107
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
108
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
109
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
110
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
111
|
+
top: typeof import("effect/Schema").Number;
|
|
112
|
+
left: typeof import("effect/Schema").Number;
|
|
113
|
+
}>]>>;
|
|
114
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
115
|
+
type: import("effect/Schema").Literal<["collection"]>;
|
|
116
|
+
collection_type: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
117
|
+
column_definitions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
118
|
+
name: typeof import("effect/Schema").String;
|
|
119
|
+
description: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
120
|
+
type: import("effect/Schema").Literal<["string", "int", "float", "boolean", "element_identifier"]>;
|
|
121
|
+
optional: typeof import("effect/Schema").Boolean;
|
|
122
|
+
default_value: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, typeof import("effect/Schema").Number, typeof import("effect/Schema").Boolean]>>;
|
|
123
|
+
validators: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<typeof import("effect/Schema").Unknown>]>>;
|
|
124
|
+
restrictions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number, typeof import("effect/Schema").Number, typeof import("effect/Schema").Boolean]>>]>>;
|
|
125
|
+
suggestions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number, typeof import("effect/Schema").Number, typeof import("effect/Schema").Boolean]>>]>>;
|
|
126
|
+
}>>]>>;
|
|
127
|
+
fields: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
128
|
+
name: typeof import("effect/Schema").String;
|
|
129
|
+
type: import("effect/Schema").Union<[import("effect/Schema").Literal<["File", "null", "boolean", "int", "float", "string"]>, import("effect/Schema").Array$<import("effect/Schema").Literal<["File", "null", "boolean", "int", "float", "string"]>>]>;
|
|
130
|
+
format: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
131
|
+
}>>]>>;
|
|
132
|
+
format: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
133
|
+
}>;
|
|
134
|
+
readonly integer: import("effect/Schema").Struct<{
|
|
135
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
136
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
137
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
138
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
139
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
140
|
+
top: typeof import("effect/Schema").Number;
|
|
141
|
+
left: typeof import("effect/Schema").Number;
|
|
142
|
+
}>]>>;
|
|
143
|
+
type: import("effect/Schema").Literal<["integer", "int"]>;
|
|
144
|
+
min: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Number, typeof import("effect/Schema").Null]>>;
|
|
145
|
+
max: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Number, typeof import("effect/Schema").Null]>>;
|
|
146
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
147
|
+
}>;
|
|
148
|
+
readonly int: import("effect/Schema").Struct<{
|
|
149
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
150
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
151
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
152
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
153
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
154
|
+
top: typeof import("effect/Schema").Number;
|
|
155
|
+
left: typeof import("effect/Schema").Number;
|
|
156
|
+
}>]>>;
|
|
157
|
+
type: import("effect/Schema").Literal<["integer", "int"]>;
|
|
158
|
+
min: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Number, typeof import("effect/Schema").Null]>>;
|
|
159
|
+
max: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Number, typeof import("effect/Schema").Null]>>;
|
|
160
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
161
|
+
}>;
|
|
162
|
+
readonly text: import("effect/Schema").Struct<{
|
|
163
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
164
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
165
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
166
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
167
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
168
|
+
top: typeof import("effect/Schema").Number;
|
|
169
|
+
left: typeof import("effect/Schema").Number;
|
|
170
|
+
}>]>>;
|
|
171
|
+
type: import("effect/Schema").Literal<["text", "string"]>;
|
|
172
|
+
restrictions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
173
|
+
value: typeof import("effect/Schema").String;
|
|
174
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
175
|
+
}>]>>]>>;
|
|
176
|
+
suggestions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
177
|
+
value: typeof import("effect/Schema").String;
|
|
178
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
179
|
+
}>]>>]>>;
|
|
180
|
+
restrictOnConnections: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Boolean]>>;
|
|
181
|
+
validators: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
182
|
+
type: import("effect/Schema").Literal<["regex"]>;
|
|
183
|
+
expression: typeof import("effect/Schema").String;
|
|
184
|
+
message: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
185
|
+
negate: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Boolean]>>;
|
|
186
|
+
}>>]>>;
|
|
187
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
188
|
+
}>;
|
|
189
|
+
readonly string: import("effect/Schema").Struct<{
|
|
190
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
191
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
192
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
193
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
194
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
195
|
+
top: typeof import("effect/Schema").Number;
|
|
196
|
+
left: typeof import("effect/Schema").Number;
|
|
197
|
+
}>]>>;
|
|
198
|
+
type: import("effect/Schema").Literal<["text", "string"]>;
|
|
199
|
+
restrictions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
200
|
+
value: typeof import("effect/Schema").String;
|
|
201
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
202
|
+
}>]>>]>>;
|
|
203
|
+
suggestions: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Union<[typeof import("effect/Schema").String, import("effect/Schema").Struct<{
|
|
204
|
+
value: typeof import("effect/Schema").String;
|
|
205
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
206
|
+
}>]>>]>>;
|
|
207
|
+
restrictOnConnections: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Boolean]>>;
|
|
208
|
+
validators: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
209
|
+
type: import("effect/Schema").Literal<["regex"]>;
|
|
210
|
+
expression: typeof import("effect/Schema").String;
|
|
211
|
+
message: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
212
|
+
negate: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Boolean]>>;
|
|
213
|
+
}>>]>>;
|
|
214
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
215
|
+
}>;
|
|
216
|
+
readonly float: import("effect/Schema").Struct<{
|
|
217
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
218
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
219
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
220
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
221
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
222
|
+
top: typeof import("effect/Schema").Number;
|
|
223
|
+
left: typeof import("effect/Schema").Number;
|
|
224
|
+
}>]>>;
|
|
225
|
+
type: import("effect/Schema").Literal<["float"]>;
|
|
226
|
+
min: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Number, typeof import("effect/Schema").Null]>>;
|
|
227
|
+
max: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Number, typeof import("effect/Schema").Null]>>;
|
|
228
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
229
|
+
}>;
|
|
230
|
+
readonly boolean: import("effect/Schema").Struct<{
|
|
231
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
232
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
233
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
234
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
235
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
236
|
+
top: typeof import("effect/Schema").Number;
|
|
237
|
+
left: typeof import("effect/Schema").Number;
|
|
238
|
+
}>]>>;
|
|
239
|
+
type: import("effect/Schema").Literal<["boolean"]>;
|
|
240
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
241
|
+
}>;
|
|
242
|
+
readonly color: import("effect/Schema").Struct<{
|
|
243
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
244
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
245
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
246
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
247
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
248
|
+
top: typeof import("effect/Schema").Number;
|
|
249
|
+
left: typeof import("effect/Schema").Number;
|
|
250
|
+
}>]>>;
|
|
251
|
+
type: import("effect/Schema").Literal<["color"]>;
|
|
252
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
253
|
+
}>;
|
|
254
|
+
readonly directory_uri: import("effect/Schema").Struct<{
|
|
255
|
+
id: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
256
|
+
label: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
257
|
+
doc: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String, import("effect/Schema").Array$<typeof import("effect/Schema").String>]>>;
|
|
258
|
+
default: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Unknown]>>;
|
|
259
|
+
position: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Struct<{
|
|
260
|
+
top: typeof import("effect/Schema").Number;
|
|
261
|
+
left: typeof import("effect/Schema").Number;
|
|
262
|
+
}>]>>;
|
|
263
|
+
type: import("effect/Schema").Literal<["directory_uri"]>;
|
|
264
|
+
validators: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, import("effect/Schema").Array$<import("effect/Schema").Struct<{
|
|
265
|
+
type: import("effect/Schema").Literal<["regex"]>;
|
|
266
|
+
expression: typeof import("effect/Schema").String;
|
|
267
|
+
message: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").String]>>;
|
|
268
|
+
negate: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Null, typeof import("effect/Schema").Boolean]>>;
|
|
269
|
+
}>>]>>;
|
|
270
|
+
optional: import("effect/Schema").optional<import("effect/Schema").Union<[typeof import("effect/Schema").Boolean, typeof import("effect/Schema").Null]>>;
|
|
271
|
+
}>;
|
|
272
|
+
};
|
|
273
|
+
type InputParameterSchema = (typeof INPUT_TYPE_TO_SCHEMA)[keyof typeof INPUT_TYPE_TO_SCHEMA];
|
|
274
|
+
export declare const INPUT_TYPES: ReadonlySet<string>;
|
|
275
|
+
/** Input parameter schema for a Format2 type string; data for unknown or missing types. */
|
|
276
|
+
export declare function inputParameterSchema(typeValue: string | null | undefined): InputParameterSchema;
|
|
277
|
+
/** Format2 input type strings whose specific schema declares `field`. */
|
|
278
|
+
export declare function inputTypesDeclaring(field: string): ReadonlySet<string>;
|
|
279
|
+
export {};
|
|
280
|
+
//# sourceMappingURL=input-parameter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-parameter.d.ts","sourceRoot":"","sources":["../../src/workflow/input-parameter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAehB,CAAC;AAEX,KAAK,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAE7F,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,MAAM,CAA8C,CAAC;AAE3F,2FAA2F;AAC3F,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,oBAAoB,CAK/F;AAED,yEAAyE;AACzE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAMtE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve Format2 input `type` strings to their Effect input parameter schemas.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors gxformat2/schema/_input_parameter.py and the `pydantic:discriminator_map`
|
|
5
|
+
* on `Process.inputs` in schema-sources/v19_09/Process.yml.
|
|
6
|
+
*/
|
|
7
|
+
import { WorkflowBooleanParameterSchema, WorkflowCollectionParameterSchema, WorkflowColorParameterSchema, WorkflowDataParameterSchema, WorkflowDirectoryUriParameterSchema, WorkflowFloatParameterSchema, WorkflowIntegerParameterSchema, WorkflowTextParameterSchema, } from "./raw/gxformat2.effect.js";
|
|
8
|
+
const INPUT_TYPE_TO_SCHEMA = {
|
|
9
|
+
data: WorkflowDataParameterSchema,
|
|
10
|
+
File: WorkflowDataParameterSchema,
|
|
11
|
+
data_input: WorkflowDataParameterSchema,
|
|
12
|
+
collection: WorkflowCollectionParameterSchema,
|
|
13
|
+
data_collection: WorkflowCollectionParameterSchema,
|
|
14
|
+
data_collection_input: WorkflowCollectionParameterSchema,
|
|
15
|
+
integer: WorkflowIntegerParameterSchema,
|
|
16
|
+
int: WorkflowIntegerParameterSchema,
|
|
17
|
+
text: WorkflowTextParameterSchema,
|
|
18
|
+
string: WorkflowTextParameterSchema,
|
|
19
|
+
float: WorkflowFloatParameterSchema,
|
|
20
|
+
boolean: WorkflowBooleanParameterSchema,
|
|
21
|
+
color: WorkflowColorParameterSchema,
|
|
22
|
+
directory_uri: WorkflowDirectoryUriParameterSchema,
|
|
23
|
+
};
|
|
24
|
+
export const INPUT_TYPES = new Set(Object.keys(INPUT_TYPE_TO_SCHEMA));
|
|
25
|
+
/** Input parameter schema for a Format2 type string; data for unknown or missing types. */
|
|
26
|
+
export function inputParameterSchema(typeValue) {
|
|
27
|
+
if (typeValue != null && Object.hasOwn(INPUT_TYPE_TO_SCHEMA, typeValue)) {
|
|
28
|
+
return INPUT_TYPE_TO_SCHEMA[typeValue];
|
|
29
|
+
}
|
|
30
|
+
return WorkflowDataParameterSchema;
|
|
31
|
+
}
|
|
32
|
+
/** Format2 input type strings whose specific schema declares `field`. */
|
|
33
|
+
export function inputTypesDeclaring(field) {
|
|
34
|
+
return new Set(Object.entries(INPUT_TYPE_TO_SCHEMA)
|
|
35
|
+
.filter(([, schema]) => Object.hasOwn(schema.fields, field))
|
|
36
|
+
.map(([type]) => type));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=input-parameter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-parameter.js","sourceRoot":"","sources":["../../src/workflow/input-parameter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,EACjC,4BAA4B,EAC5B,2BAA2B,EAC3B,mCAAmC,EACnC,4BAA4B,EAC5B,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,oBAAoB,GAAG;IAC3B,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,2BAA2B;IACjC,UAAU,EAAE,2BAA2B;IACvC,UAAU,EAAE,iCAAiC;IAC7C,eAAe,EAAE,iCAAiC;IAClD,qBAAqB,EAAE,iCAAiC;IACxD,OAAO,EAAE,8BAA8B;IACvC,GAAG,EAAE,8BAA8B;IACnC,IAAI,EAAE,2BAA2B;IACjC,MAAM,EAAE,2BAA2B;IACnC,KAAK,EAAE,4BAA4B;IACnC,OAAO,EAAE,8BAA8B;IACvC,KAAK,EAAE,4BAA4B;IACnC,aAAa,EAAE,mCAAmC;CAC1C,CAAC;AAIX,MAAM,CAAC,MAAM,WAAW,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC;AAE3F,2FAA2F;AAC3F,MAAM,UAAU,oBAAoB,CAAC,SAAoC;IACvE,IAAI,SAAS,IAAI,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,SAAS,CAAC,EAAE,CAAC;QACxE,OAAO,oBAAoB,CAAC,SAA8C,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO,2BAA2B,CAAC;AACrC,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,OAAO,IAAI,GAAG,CACZ,MAAM,CAAC,OAAO,CAAC,oBAAoB,CAAC;SACjC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SAC3D,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CACzB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structural graph properties any conforming workflow layout must satisfy.
|
|
3
|
+
*
|
|
4
|
+
* Port of gxformat2/layout/_properties.py. The property names are the
|
|
5
|
+
* cross-language contract for `graph_properties` in layout.yml expectations;
|
|
6
|
+
* each checker takes a laid-out document and throws on violation.
|
|
7
|
+
*/
|
|
8
|
+
export type GraphPropertyChecker = (workflow: unknown) => void;
|
|
9
|
+
export declare const GRAPH_PROPERTY_CHECKERS: Record<string, GraphPropertyChecker>;
|
|
10
|
+
//# sourceMappingURL=layout-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-properties.d.ts","sourceRoot":"","sources":["../../src/workflow/layout-properties.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAeH,MAAM,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;AAkH/D,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAKxE,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structural graph properties any conforming workflow layout must satisfy.
|
|
3
|
+
*
|
|
4
|
+
* Port of gxformat2/layout/_properties.py. The property names are the
|
|
5
|
+
* cross-language contract for `graph_properties` in layout.yml expectations;
|
|
6
|
+
* each checker takes a laid-out document and throws on violation.
|
|
7
|
+
*/
|
|
8
|
+
import { extractGraph, format2NodeId, isGraphDocument, isNativeDocument, iterSubworkflows, layoutElements, nativeNodeId, } from "./layout.js";
|
|
9
|
+
function isDict(value) {
|
|
10
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
11
|
+
}
|
|
12
|
+
/** Read `{nodeId: position}` straight from the document (not from cytoscape). */
|
|
13
|
+
function readNodePositions(workflow) {
|
|
14
|
+
const positions = new Map();
|
|
15
|
+
if (isNativeDocument(workflow)) {
|
|
16
|
+
if (isDict(workflow.steps)) {
|
|
17
|
+
for (const [key, step] of Object.entries(workflow.steps)) {
|
|
18
|
+
if (isDict(step) && step.position != null) {
|
|
19
|
+
positions.set(nativeNodeId(key, step), step.position);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return positions;
|
|
24
|
+
}
|
|
25
|
+
for (const containerKey of ["inputs", "steps"]) {
|
|
26
|
+
const container = workflow[containerKey];
|
|
27
|
+
const isInput = containerKey === "inputs";
|
|
28
|
+
const entries = isDict(container)
|
|
29
|
+
? Object.entries(container)
|
|
30
|
+
: Array.isArray(container)
|
|
31
|
+
? container.map((item) => [null, item])
|
|
32
|
+
: [];
|
|
33
|
+
for (const [key, item] of entries) {
|
|
34
|
+
const nodeId = format2NodeId(item, key, isInput);
|
|
35
|
+
if (isDict(item) && item.position != null && nodeId !== null) {
|
|
36
|
+
positions.set(nodeId, item.position);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return positions;
|
|
41
|
+
}
|
|
42
|
+
function graph(workflow, graphEntries) {
|
|
43
|
+
const [nodeIds, edges] = extractGraph(layoutElements(workflow, graphEntries));
|
|
44
|
+
return [nodeIds, edges, readNodePositions(workflow)];
|
|
45
|
+
}
|
|
46
|
+
function check(condition, message) {
|
|
47
|
+
if (!condition)
|
|
48
|
+
throw new Error(message);
|
|
49
|
+
}
|
|
50
|
+
/** Every edge points strictly rightward: `target.left > source.left`. */
|
|
51
|
+
function downstreamRightOfUpstream([, edges, positions]) {
|
|
52
|
+
for (const [source, target] of edges) {
|
|
53
|
+
const s = positions.get(source);
|
|
54
|
+
const t = positions.get(target);
|
|
55
|
+
check(s !== undefined, `edge ${source}->${target}: source ${source} has no position`);
|
|
56
|
+
check(t !== undefined, `edge ${source}->${target}: target ${target} has no position`);
|
|
57
|
+
check(t.left > s.left, `edge ${source}->${target}: target.left ${t.left} not strictly right of source.left ${s.left}`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/** Every graph node has a position in the document. */
|
|
61
|
+
function allNodesPositioned([nodeIds, , positions]) {
|
|
62
|
+
const missing = nodeIds.filter((id) => !positions.has(id)).sort();
|
|
63
|
+
check(missing.length === 0, `nodes missing a position: ${JSON.stringify(missing)}`);
|
|
64
|
+
}
|
|
65
|
+
/** No two nodes occupy the same `{left, top}` coordinate. */
|
|
66
|
+
function noPositionCollisions([, , positions]) {
|
|
67
|
+
const seen = new Map();
|
|
68
|
+
for (const [id, pos] of positions) {
|
|
69
|
+
const key = `${pos.left},${pos.top}`;
|
|
70
|
+
check(!seen.has(key), `nodes ${seen.get(key)} and ${id} share position (${key})`);
|
|
71
|
+
seen.set(key, id);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/** Nodes with no incoming edge sit at the minimum `left`. */
|
|
75
|
+
function rootsLeftmost([nodeIds, edges, positions]) {
|
|
76
|
+
const targets = new Set(edges.map(([, target]) => target));
|
|
77
|
+
const roots = nodeIds.filter((id) => !targets.has(id));
|
|
78
|
+
if (roots.length === 0 || positions.size === 0)
|
|
79
|
+
return;
|
|
80
|
+
const minLeft = Math.min(...[...positions.values()].map((p) => p.left));
|
|
81
|
+
for (const id of roots) {
|
|
82
|
+
const pos = positions.get(id);
|
|
83
|
+
check(pos !== undefined, `root ${id} has no position`);
|
|
84
|
+
check(pos.left === minLeft, `root ${id} at left ${pos.left} is not at the minimum left ${minLeft}`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/** The document plus every in-file subworkflow / `$graph` entry it lays out. */
|
|
88
|
+
function* iterLayoutUnits(workflow, graphEntries = []) {
|
|
89
|
+
if (isGraphDocument(workflow)) {
|
|
90
|
+
const raw = workflow.$graph;
|
|
91
|
+
const entries = (Array.isArray(raw) ? raw : isDict(raw) ? Object.values(raw) : []).filter(isDict);
|
|
92
|
+
for (const entry of entries)
|
|
93
|
+
yield* iterLayoutUnits(entry, entries);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
yield graph(workflow, graphEntries);
|
|
97
|
+
for (const sub of iterSubworkflows(workflow))
|
|
98
|
+
yield* iterLayoutUnits(sub);
|
|
99
|
+
}
|
|
100
|
+
function recursive(checker) {
|
|
101
|
+
return (workflow) => {
|
|
102
|
+
for (const unit of iterLayoutUnits(workflow))
|
|
103
|
+
checker(unit);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export const GRAPH_PROPERTY_CHECKERS = {
|
|
107
|
+
downstream_right_of_upstream: recursive(downstreamRightOfUpstream),
|
|
108
|
+
all_nodes_positioned: recursive(allNodesPositioned),
|
|
109
|
+
no_position_collisions: recursive(noPositionCollisions),
|
|
110
|
+
roots_leftmost: recursive(rootsLeftmost),
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=layout-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-properties.js","sourceRoot":"","sources":["../../src/workflow/layout-properties.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EAEd,YAAY,GACb,MAAM,aAAa,CAAC;AAKrB,SAAS,MAAM,CAAC,KAAc;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E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