@uipath/maestro-builder-sdk 5.2.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/LICENSE +21 -0
- package/README.md +322 -0
- package/dist/bindings-v2.d.ts +37 -0
- package/dist/bindings-v2.js +155 -0
- package/dist/bindings.d.ts +6 -0
- package/dist/bindings.js +6 -0
- package/dist/bpmn/bpmn-expr-check.d.ts +41 -0
- package/dist/bpmn/bpmn-expr-check.js +218 -0
- package/dist/bpmn/bpmn-sdk.d.ts +2257 -0
- package/dist/bpmn/bpmn-sdk.js +1476 -0
- package/dist/bpmn/check-cli.d.ts +3 -0
- package/dist/bpmn/check-cli.js +32 -0
- package/dist/bpmn/check.d.ts +25 -0
- package/dist/bpmn/check.js +430 -0
- package/dist/bpmn/compile-cli.d.ts +3 -0
- package/dist/bpmn/compile-cli.js +60 -0
- package/dist/bpmn/connector.d.ts +56 -0
- package/dist/bpmn/connector.js +199 -0
- package/dist/bpmn/decompile-cli.d.ts +8 -0
- package/dist/bpmn/decompile-cli.js +54 -0
- package/dist/bpmn/decompile.d.ts +6 -0
- package/dist/bpmn/decompile.js +1108 -0
- package/dist/bpmn/format-profile.d.ts +27 -0
- package/dist/bpmn/format-profile.js +11 -0
- package/dist/bpmn/intsvc.d.ts +77 -0
- package/dist/bpmn/intsvc.js +155 -0
- package/dist/bpmn/load.d.ts +4 -0
- package/dist/bpmn/load.js +22 -0
- package/dist/bpmn/merge-cli.d.ts +3 -0
- package/dist/bpmn/merge-cli.js +45 -0
- package/dist/bpmn/merge.d.ts +19 -0
- package/dist/bpmn/merge.js +293 -0
- package/dist/bpmn/registry-types.json +1869 -0
- package/dist/bpmn/serialize.d.ts +28 -0
- package/dist/bpmn/serialize.js +757 -0
- package/dist/bpmn/tidy-cli.d.ts +2 -0
- package/dist/bpmn/tidy-cli.js +39 -0
- package/dist/bpmn/typed-node.d.ts +382 -0
- package/dist/bpmn/typed-node.js +551 -0
- package/dist/bpmn/uipath-moddle.v1.json +823 -0
- package/dist/bpmn/xml-ranges.d.ts +45 -0
- package/dist/bpmn/xml-ranges.js +151 -0
- package/dist/case/case-expr-check.d.ts +35 -0
- package/dist/case/case-expr-check.js +85 -0
- package/dist/case/case-sdk.d.ts +1282 -0
- package/dist/case/case-sdk.js +923 -0
- package/dist/case/check-cli.d.ts +3 -0
- package/dist/case/check-cli.js +31 -0
- package/dist/case/check.d.ts +18 -0
- package/dist/case/check.js +456 -0
- package/dist/case/compile-cli.d.ts +3 -0
- package/dist/case/compile-cli.js +291 -0
- package/dist/case/decompile-cli.d.ts +9 -0
- package/dist/case/decompile-cli.js +117 -0
- package/dist/case/decompile.d.ts +187 -0
- package/dist/case/decompile.js +1170 -0
- package/dist/case/entry-points.d.ts +79 -0
- package/dist/case/entry-points.js +118 -0
- package/dist/case/format-profile.d.ts +60 -0
- package/dist/case/format-profile.js +79 -0
- package/dist/case/ids.d.ts +24 -0
- package/dist/case/ids.js +76 -0
- package/dist/case/load.d.ts +12 -0
- package/dist/case/load.js +32 -0
- package/dist/case/preserve.d.ts +133 -0
- package/dist/case/preserve.js +105 -0
- package/dist/case/serialize.d.ts +10 -0
- package/dist/case/serialize.js +1414 -0
- package/dist/check-cli.d.ts +3 -0
- package/dist/check-cli.js +118 -0
- package/dist/check.d.ts +146 -0
- package/dist/check.js +4898 -0
- package/dist/cli/commands/bpmn.d.ts +2 -0
- package/dist/cli/commands/bpmn.js +73 -0
- package/dist/cli/commands/case.d.ts +2 -0
- package/dist/cli/commands/case.js +60 -0
- package/dist/cli/commands/flow.d.ts +2 -0
- package/dist/cli/commands/flow.js +99 -0
- package/dist/cli/commands/registry.d.ts +10 -0
- package/dist/cli/commands/registry.js +170 -0
- package/dist/cli/common.d.ts +30 -0
- package/dist/cli/common.js +92 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +18 -0
- package/dist/cli-run.d.ts +2 -0
- package/dist/cli-run.js +42 -0
- package/dist/compile-cli.d.ts +3 -0
- package/dist/compile-cli.js +160 -0
- package/dist/config.d.ts +47 -0
- package/dist/config.js +201 -0
- package/dist/core/actions.d.ts +3244 -0
- package/dist/core/actions.js +1062 -0
- package/dist/core/binding-messages.d.ts +1 -0
- package/dist/core/binding-messages.js +16 -0
- package/dist/core/bindings.d.ts +12 -0
- package/dist/core/bindings.js +67 -0
- package/dist/core/ceql.d.ts +73 -0
- package/dist/core/ceql.js +272 -0
- package/dist/core/cli-spelling.d.ts +39 -0
- package/dist/core/cli-spelling.js +62 -0
- package/dist/core/connector-raw-node.d.ts +21 -0
- package/dist/core/connector-raw-node.js +47 -0
- package/dist/core/connectors.d.ts +184 -0
- package/dist/core/connectors.js +128 -0
- package/dist/core/expr-check.d.ts +93 -0
- package/dist/core/expr-check.js +186 -0
- package/dist/core/expr.d.ts +323 -0
- package/dist/core/expr.js +400 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.js +10 -0
- package/dist/core/library.d.ts +440 -0
- package/dist/core/library.js +1183 -0
- package/dist/core/list-envelope.d.ts +45 -0
- package/dist/core/list-envelope.js +97 -0
- package/dist/core/lookup-store.d.ts +22 -0
- package/dist/core/lookup-store.js +85 -0
- package/dist/core/lookups.d.ts +227 -0
- package/dist/core/lookups.js +231 -0
- package/dist/core/node-classes.d.ts +234 -0
- package/dist/core/node-classes.js +158 -0
- package/dist/core/script-return.d.ts +68 -0
- package/dist/core/script-return.js +197 -0
- package/dist/core/stable-id.d.ts +28 -0
- package/dist/core/stable-id.js +37 -0
- package/dist/core-definitions.json +16249 -0
- package/dist/decompile-cli.d.ts +3 -0
- package/dist/decompile-cli.js +131 -0
- package/dist/decompile.d.ts +138 -0
- package/dist/decompile.js +2482 -0
- package/dist/emit.d.ts +10 -0
- package/dist/emit.js +60 -0
- package/dist/event-filters.d.ts +130 -0
- package/dist/event-filters.js +137 -0
- package/dist/flow-expr-check.d.ts +17 -0
- package/dist/flow-expr-check.js +193 -0
- package/dist/flow-sdk.d.ts +1341 -0
- package/dist/flow-sdk.js +1164 -0
- package/dist/flow-variables.d.ts +13 -0
- package/dist/flow-variables.js +42 -0
- package/dist/format-profile.d.ts +72 -0
- package/dist/format-profile.js +97 -0
- package/dist/generators/_connections.py +287 -0
- package/dist/generators/_events.py +355 -0
- package/dist/generators/_lookups.py +114 -0
- package/dist/generators/_naming.py +185 -0
- package/dist/generators/_objects.py +299 -0
- package/dist/generators/_resolve.py +273 -0
- package/dist/generators/convert_library_to_md.py +1441 -0
- package/dist/generators/extract_library.py +125 -0
- package/dist/generators/generate_connectors_ts.py +936 -0
- package/dist/generators/generate_library_json.py +2527 -0
- package/dist/generators/generate_triggers_ts.py +110 -0
- package/dist/generators/materialize_registry.py +155 -0
- package/dist/generators/prepare_connector.py +1688 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +35 -0
- package/dist/ixp-definition.json +1982 -0
- package/dist/library.d.ts +6 -0
- package/dist/library.js +6 -0
- package/dist/load.d.ts +16 -0
- package/dist/load.js +95 -0
- package/dist/merge-cli.d.ts +3 -0
- package/dist/merge-cli.js +47 -0
- package/dist/merge.d.ts +125 -0
- package/dist/merge.js +0 -0
- package/dist/migrate.d.ts +15 -0
- package/dist/migrate.js +245 -0
- package/dist/node-runtime.d.ts +3 -0
- package/dist/node-runtime.js +22 -0
- package/dist/package-name.d.ts +17 -0
- package/dist/package-name.js +17 -0
- package/dist/ref-resolve.d.ts +77 -0
- package/dist/ref-resolve.js +170 -0
- package/dist/registry/cache.d.ts +55 -0
- package/dist/registry/cache.js +134 -0
- package/dist/registry/curated-overlay.d.ts +16 -0
- package/dist/registry/curated-overlay.js +62 -0
- package/dist/registry/extractor.d.ts +22 -0
- package/dist/registry/extractor.js +18 -0
- package/dist/registry/materialize-bin.d.ts +2 -0
- package/dist/registry/materialize-bin.js +7 -0
- package/dist/registry/materialize-cli.d.ts +1 -0
- package/dist/registry/materialize-cli.js +46 -0
- package/dist/registry/materializer.d.ts +23 -0
- package/dist/registry/materializer.js +34 -0
- package/dist/registry/path-cli.d.ts +1 -0
- package/dist/registry/path-cli.js +56 -0
- package/dist/registry/prepare-cli.d.ts +62 -0
- package/dist/registry/prepare-cli.js +185 -0
- package/dist/registry/pull-cli.d.ts +1 -0
- package/dist/registry/pull-cli.js +274 -0
- package/dist/registry/python.d.ts +26 -0
- package/dist/registry/python.js +46 -0
- package/dist/registry/search-cli.d.ts +52 -0
- package/dist/registry/search-cli.js +159 -0
- package/dist/schema-version.d.ts +165 -0
- package/dist/schema-version.js +148 -0
- package/dist/serialize.d.ts +64 -0
- package/dist/serialize.js +6398 -0
- package/lib/README.md +112 -0
- package/lib/library-json.samples/index.json +158 -0
- package/lib/library-json.samples/invariant-collections.json +83 -0
- package/lib/library-json.samples/list-envelopes.json +123 -0
- package/lib/library-json.samples/uipath-atlassian-jira/create-issue@1.0.0.json +131 -0
- package/lib/library-json.samples/uipath-atlassian-jira/create-issue@1.0.0.v1def.json +306 -0
- package/lib/library-json.samples/uipath-atlassian-jira/generic/create_issue/create@1.0.0.json +86 -0
- package/lib/library-json.samples/uipath-atlassian-jira/generic/create_issue/create@1.0.0.v1def.json +208 -0
- package/lib/library-json.samples/uipath-atlassian-jira/get-issue@1.0.0.json +2040 -0
- package/lib/library-json.samples/uipath-atlassian-jira/get-issue@1.0.0.v1def.json +195 -0
- package/lib/library-json.samples/uipath-google-vertex/execute-google-vertex-agent@1.0.0.json +169 -0
- package/lib/library-json.samples/uipath-google-vertex/execute-google-vertex-agent@1.0.0.v1def.json +209 -0
- package/lib/library-json.samples/uipath-http-webhook/event-http-webhook@1.0.0.json +63 -0
- package/lib/library-json.samples/uipath-http-webhook/event-http-webhook@1.0.0.v1def.json +262 -0
- package/lib/library-json.samples/uipath-http-webhook/trigger-http-webhook@1.0.0.json +63 -0
- package/lib/library-json.samples/uipath-http-webhook/trigger-http-webhook@1.0.0.v1def.json +213 -0
- package/lib/library-json.samples/uipath-microsoft-azureactivedirectory/list-groups@1.0.0.json +227 -0
- package/lib/library-json.samples/uipath-microsoft-azureactivedirectory/list-groups@1.0.0.v1def.json +373 -0
- package/lib/library-json.samples/uipath-microsoft-onedrive/event-file-created@1.0.0.json +116 -0
- package/lib/library-json.samples/uipath-microsoft-onedrive/event-file-created@1.0.0.v1def.json +369 -0
- package/lib/library-json.samples/uipath-microsoft-onedrive/event-list-item-added@1.0.0.json +56 -0
- package/lib/library-json.samples/uipath-microsoft-onedrive/event-list-item-added@1.0.0.v1def.json +256 -0
- package/lib/library-json.samples/uipath-microsoft-onedrive/trigger-file-created@1.0.0.json +116 -0
- package/lib/library-json.samples/uipath-microsoft-onedrive/trigger-file-created@1.0.0.v1def.json +320 -0
- package/lib/library-json.samples/uipath-microsoft-onedrive/trigger-list-item-added@1.0.0.json +56 -0
- package/lib/library-json.samples/uipath-microsoft-onedrive/trigger-list-item-added@1.0.0.v1def.json +207 -0
- package/lib/library-json.samples/uipath-microsoft-outlook365/event-email-received@1.0.0.json +107 -0
- package/lib/library-json.samples/uipath-microsoft-outlook365/event-email-received@1.0.0.v1def.json +264 -0
- package/lib/library-json.samples/uipath-microsoft-outlook365/send-email@1.0.0.json +142 -0
- package/lib/library-json.samples/uipath-microsoft-outlook365/send-email@1.0.0.v1def.json +306 -0
- package/lib/library-json.samples/uipath-microsoft-outlook365/trigger-email-received@1.0.0.json +107 -0
- package/lib/library-json.samples/uipath-microsoft-outlook365/trigger-email-received@1.0.0.v1def.json +217 -0
- package/lib/library-json.samples/uipath-microsoft-powerautomate/invoke-a-microsoft-power-automate-flow@1.0.0.json +85 -0
- package/lib/library-json.samples/uipath-microsoft-powerautomate/invoke-a-microsoft-power-automate-flow@1.0.0.v1def.json +209 -0
- package/lib/library-json.samples/uipath-salesforce-slack/send-message-to-user@1.0.0.json +755 -0
- package/lib/library-json.samples/uipath-salesforce-slack/send-message-to-user@1.0.0.v1def.json +513 -0
- package/lib/library-json.samples/uipath-uipath-dataservice/query-entity-records@1.0.0.json +122 -0
- package/lib/library-json.samples/uipath-uipath-dataservice/query-entity-records@1.0.0.v1def.json +227 -0
- package/package.json +85 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
const preserved = new WeakMap();
|
|
2
|
+
/** Attach decompiler-owned, non-authoring wire data to a built case. */
|
|
3
|
+
export function preserveCaseJson(built, payload) {
|
|
4
|
+
preserved.set(built, payload);
|
|
5
|
+
return built;
|
|
6
|
+
}
|
|
7
|
+
/** @internal Read the preservation payload attached by `preserveCaseJson`. */
|
|
8
|
+
export function caseJsonPreservation(built) {
|
|
9
|
+
return preserved.get(built);
|
|
10
|
+
}
|
|
11
|
+
const TOP_LEVEL_KEYS = new Set([
|
|
12
|
+
'id', 'name', 'description', 'version', 'bindings', 'variables', 'metadata', 'nodes', 'edges', 'layout',
|
|
13
|
+
]);
|
|
14
|
+
const METADATA_KEYS = new Set([
|
|
15
|
+
'caseIdentifier', 'caseIdentifierType', 'caseAppEnabled', 'publishVersion', 'caseExitRules', 'slaRules',
|
|
16
|
+
'caseAppConfig', 'adhocCaseEndData',
|
|
17
|
+
'allowAdhocOptionalStageTasks', 'waitForHumanSelectNextStageDFConnector',
|
|
18
|
+
]);
|
|
19
|
+
const VARIABLE_KEYS = new Set([
|
|
20
|
+
'id', 'name', 'type', 'default', 'body', '_jsonSchema', 'elementId', 'var',
|
|
21
|
+
]);
|
|
22
|
+
const TASK_KEYS = new Set([
|
|
23
|
+
'id', 'displayName', 'type', 'data', 'shouldRunOnlyOnce', 'isRequired', 'skipCondition', 'description',
|
|
24
|
+
'entryConditions', 'conditions', 'nonSequentialRunConditions',
|
|
25
|
+
]);
|
|
26
|
+
const TRIGGER_DATA_KEYS = new Set(['label', 'description', 'uipath', 'display', 'inputs', 'typeVersion']);
|
|
27
|
+
const PRESERVED_TASK_KEYS = new Set(['elementId']);
|
|
28
|
+
const PRESERVED_TRIGGER_DATA_KEYS = new Set(['parentElement', 'isInvalidDropTarget', 'isPendingParent']);
|
|
29
|
+
const PRESERVED_VARIABLE_KEYS = new Set(['subType', 'canonicalId', 'camelizedId', 'variableType', 'internal']);
|
|
30
|
+
const PRESERVED_CASE_APP_CONFIG_KEYS = new Set(['stageOrder', 'hiddenStageIds']);
|
|
31
|
+
const PRESERVED_CASE_APP_SECTION_KEYS = new Set(['error', 'titleError']);
|
|
32
|
+
/** @internal Validate that preservation cannot impersonate typed authoring. */
|
|
33
|
+
export function caseJsonPreservationErrors(payload) {
|
|
34
|
+
if (!payload)
|
|
35
|
+
return [];
|
|
36
|
+
const errors = [];
|
|
37
|
+
for (const name of Object.keys(payload.topLevel ?? {}))
|
|
38
|
+
if (TOP_LEVEL_KEYS.has(name))
|
|
39
|
+
errors.push(`top-level key "${name}" is owned by the typed Case serializer`);
|
|
40
|
+
for (const name of Object.keys(payload.metadata ?? {}))
|
|
41
|
+
if (METADATA_KEYS.has(name))
|
|
42
|
+
errors.push(`metadata key "${name}" is owned by the typed Case serializer`);
|
|
43
|
+
for (const name of Object.keys(payload.caseAppConfigFields?.fields ?? {}))
|
|
44
|
+
if (!PRESERVED_CASE_APP_CONFIG_KEYS.has(name))
|
|
45
|
+
errors.push(`caseAppConfig field "${name}" is not an allowed preserved platform field`);
|
|
46
|
+
for (const section of payload.caseAppConfigFields?.sections ?? []) {
|
|
47
|
+
if (typeof section.id !== 'string' || !section.id)
|
|
48
|
+
errors.push('preserved Case App section id must be a non-empty string');
|
|
49
|
+
for (const name of Object.keys(section.fields))
|
|
50
|
+
if (!PRESERVED_CASE_APP_SECTION_KEYS.has(name))
|
|
51
|
+
errors.push(`Case App section "${section.id}" field "${name}" is not an allowed preserved platform field`);
|
|
52
|
+
}
|
|
53
|
+
for (const preservedNode of payload.nodes ?? []) {
|
|
54
|
+
const type = String(preservedNode.node.type ?? '');
|
|
55
|
+
if (type !== 'case-management:StickyNote')
|
|
56
|
+
errors.push(`node type "${type || '(missing)'}" is not an allowed preserved annotation`);
|
|
57
|
+
if (!Number.isInteger(preservedNode.index) || preservedNode.index < 0)
|
|
58
|
+
errors.push(`preserved node index "${preservedNode.index}" is not a non-negative integer`);
|
|
59
|
+
}
|
|
60
|
+
for (const [lane, rows] of Object.entries(payload.variableFields ?? {})) {
|
|
61
|
+
if (!['inputs', 'outputs', 'inputOutputs'].includes(lane)) {
|
|
62
|
+
errors.push(`variable lane "${lane}" is not recognized`);
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
for (const [name, fields] of Object.entries(rows ?? {}))
|
|
66
|
+
for (const field of Object.keys(fields))
|
|
67
|
+
if (!PRESERVED_VARIABLE_KEYS.has(field)
|
|
68
|
+
&& !(lane === 'inputOutputs' && (field === 'default' || field === 'custom'))
|
|
69
|
+
&& !(lane === 'outputs' && field === 'var'))
|
|
70
|
+
errors.push(`variable "${name}" field "${field}" is not an allowed preserved designer field`);
|
|
71
|
+
else if (VARIABLE_KEYS.has(field)
|
|
72
|
+
&& !(lane === 'inputOutputs' && field === 'default')
|
|
73
|
+
&& !(lane === 'outputs' && field === 'var'))
|
|
74
|
+
errors.push(`variable "${name}" field "${field}" is owned by the typed Case serializer`);
|
|
75
|
+
}
|
|
76
|
+
for (const [lane, rows] of Object.entries(payload.legacyVariableDefaults ?? {})) {
|
|
77
|
+
if (!['inputs', 'outputs', 'inputOutputs'].includes(lane)) {
|
|
78
|
+
errors.push(`legacy variable-default lane "${lane}" is not recognized`);
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
for (const [name, value] of Object.entries(rows ?? {})) {
|
|
82
|
+
if (typeof value === 'string' || value === undefined || JSON.stringify(value) === undefined)
|
|
83
|
+
errors.push(`legacy variable default "${name}" must be a JSON-encodable non-string value`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
for (const entry of payload.omitTaskElementIds ?? [])
|
|
87
|
+
if (!Number.isInteger(entry.lane) || entry.lane < 0)
|
|
88
|
+
errors.push(`omitted-elementId task lane "${entry.lane}" is not a non-negative integer`);
|
|
89
|
+
for (const entry of payload.taskFields ?? []) {
|
|
90
|
+
if (!Number.isInteger(entry.lane) || entry.lane < 0)
|
|
91
|
+
errors.push(`preserved task lane "${entry.lane}" is not a non-negative integer`);
|
|
92
|
+
for (const field of Object.keys(entry.fields))
|
|
93
|
+
if (!PRESERVED_TASK_KEYS.has(field))
|
|
94
|
+
errors.push(`task "${entry.task}" field "${field}" is not allowed in the preservation channel`);
|
|
95
|
+
else if (TASK_KEYS.has(field))
|
|
96
|
+
errors.push(`task "${entry.task}" field "${field}" is owned by the typed Case serializer`);
|
|
97
|
+
}
|
|
98
|
+
for (const [index, fields] of (payload.triggerDataFields ?? []).entries())
|
|
99
|
+
for (const field of Object.keys(fields))
|
|
100
|
+
if (!PRESERVED_TRIGGER_DATA_KEYS.has(field))
|
|
101
|
+
errors.push(`trigger ${index + 1} data field "${field}" is not allowed in the preservation channel`);
|
|
102
|
+
else if (TRIGGER_DATA_KEYS.has(field))
|
|
103
|
+
errors.push(`trigger ${index + 1} data field "${field}" is owned by the typed Case serializer`);
|
|
104
|
+
return errors;
|
|
105
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Library } from '../core/library.js';
|
|
2
|
+
import { Bindings } from '../core/bindings.js';
|
|
3
|
+
import type { BuiltCase } from './case-sdk.js';
|
|
4
|
+
/** Optional wiring for connector tasks — the library that resolves a connector
|
|
5
|
+
* op, and the bindings that map its symbolic connection/folder to resources. */
|
|
6
|
+
export interface CaseSerializeOpts {
|
|
7
|
+
library?: Library;
|
|
8
|
+
bindings?: Bindings;
|
|
9
|
+
}
|
|
10
|
+
export declare function serialize(built: BuiltCase, opts?: CaseSerializeOpts): Record<string, unknown>;
|