@uipath/maestro-builder-sdk 6.120.16 → 6.120.18
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/api-index.md +41 -41
- package/dist/api-members.md +183 -181
- package/dist/bpmn/bpmn-sdk.d.ts +45 -25
- package/dist/bpmn/bpmn-sdk.js +69 -34
- package/dist/bpmn/check.js +32 -16
- package/dist/bpmn/registry-types.json +22 -31
- package/dist/bpmn-api.md +6 -4
- package/dist/core/connector-inputs.js +29 -2
- package/dist/core/library.d.ts +35 -0
- package/dist/core/library.js +39 -4
- package/dist/core/refusals.d.ts +3 -0
- package/dist/core/refusals.js +3 -0
- package/package.json +2 -2
package/dist/core/library.js
CHANGED
|
@@ -17,6 +17,26 @@ import { ConnectorResolveError } from './connector-resolve-error.js';
|
|
|
17
17
|
import { CompileRefusal } from './compile-refusal.js';
|
|
18
18
|
import { transportHttpMethod } from './connector-inputs.js';
|
|
19
19
|
import { wireActivityTypeMatches } from './connector-configuration.js';
|
|
20
|
+
/**
|
|
21
|
+
* Whether a library entry's INPUT field list is resolved from the connection at
|
|
22
|
+
* design time: the operation needs a connection for its schema
|
|
23
|
+
* (`runtime.requiresConnectionForSchema`) and its schema action replaces the
|
|
24
|
+
* input half (`operation.schemaAction.replaces` is `input` or `both`).
|
|
25
|
+
*
|
|
26
|
+
* Both halves matter. `requiresConnectionForSchema` alone is set on every
|
|
27
|
+
* operation of a connector with field discovery (Slack's `send-message`
|
|
28
|
+
* included), whose static field list is complete; and an action that replaces
|
|
29
|
+
* only the `output` leaves the input list authoritative. In the library of
|
|
30
|
+
* #2053, 41 of 1,739 operations pass this test, all of them `Curated`
|
|
31
|
+
* (Data Fabric's record operations, Jira `create-issue`, Smartsheet `add-row`, …).
|
|
32
|
+
*/
|
|
33
|
+
export function inputSchemaFromConnection(entry) {
|
|
34
|
+
if (!entry || typeof entry !== 'object')
|
|
35
|
+
return false;
|
|
36
|
+
const e = entry;
|
|
37
|
+
const replaces = e.operation?.schemaAction?.replaces;
|
|
38
|
+
return e.runtime?.requiresConnectionForSchema === true && (replaces === 'input' || replaces === 'both');
|
|
39
|
+
}
|
|
20
40
|
export { ConnectorResolveError } from './connector-resolve-error.js';
|
|
21
41
|
/**
|
|
22
42
|
* The `provenance` a definition fetched through `uip` carries, on its entry and
|
|
@@ -297,8 +317,7 @@ export class Library {
|
|
|
297
317
|
|| entry?.connector?.discovery?.hasCustomFieldDiscovery === true;
|
|
298
318
|
if (!connectionResolved)
|
|
299
319
|
return { kind: 'static', prepared: true };
|
|
300
|
-
|
|
301
|
-
if (rows.some(({ overlay, row }) => overlay && row.provenance !== FETCHED_PROVENANCE))
|
|
320
|
+
if (this.preparedInOverlay(nodeType, version))
|
|
302
321
|
return { kind: 'customFields', prepared: true };
|
|
303
322
|
let bakedFields = [];
|
|
304
323
|
try {
|
|
@@ -740,6 +759,16 @@ export class Library {
|
|
|
740
759
|
* of the entries each layer resolves are UNIONED: the overlay can ADD fields
|
|
741
760
|
* but never drop ones the baked library already exposed (C4).
|
|
742
761
|
*/
|
|
762
|
+
/**
|
|
763
|
+
* Whether the connection-scoped overlay carries a `prepare` row for this
|
|
764
|
+
* operation. A row fetched through `uip` has no connection behind it, so it
|
|
765
|
+
* does not count (the same rule as {@link schemaReadiness}).
|
|
766
|
+
*/
|
|
767
|
+
preparedInOverlay(nodeType, version) {
|
|
768
|
+
return this.layers.some((layer) => layer.overlay === true && layer.entries.some((row) => row?.nodeType === nodeType
|
|
769
|
+
&& (!version || String(row.version) === version)
|
|
770
|
+
&& row.provenance !== FETCHED_PROVENANCE));
|
|
771
|
+
}
|
|
743
772
|
resolveType(nodeType, version, objectName, report = true) {
|
|
744
773
|
// A generic operation that carries other objects but not this one is a miss
|
|
745
774
|
// too: a fetch writes only the objects asked for, so a second object is
|
|
@@ -757,11 +786,17 @@ export class Library {
|
|
|
757
786
|
resolved.push(r);
|
|
758
787
|
}
|
|
759
788
|
if (resolved.length) {
|
|
789
|
+
// An input schema the connection resolves is open until a `prepare` row
|
|
790
|
+
// records it. Read from any layer's entry: a prepared overlay copy may not
|
|
791
|
+
// carry the schema action, which is the case where it does not matter.
|
|
792
|
+
const open = resolved.some((r) => inputSchemaFromConnection(r.entry))
|
|
793
|
+
&& !this.preparedInOverlay(nodeType, version);
|
|
794
|
+
const withOpen = (rc) => (open ? { ...rc, inputFieldsOpen: true } : rc);
|
|
760
795
|
// Metadata comes from the highest-priority layer (the overlay when
|
|
761
796
|
// present); fields are the UNION across all layers.
|
|
762
797
|
const primary = resolved[0];
|
|
763
798
|
if (resolved.length === 1)
|
|
764
|
-
return primary;
|
|
799
|
+
return withOpen(primary);
|
|
765
800
|
const byName = new Map();
|
|
766
801
|
// Insert lowest-priority (baked) first so a shared field keeps the baked
|
|
767
802
|
// position but takes the overlay's (higher-priority) definition.
|
|
@@ -769,7 +804,7 @@ export class Library {
|
|
|
769
804
|
for (const f of resolved[i].fields)
|
|
770
805
|
byName.set(f.name, f);
|
|
771
806
|
}
|
|
772
|
-
return { ...primary, fields: [...byName.values()] };
|
|
807
|
+
return withOpen({ ...primary, fields: [...byName.values()] });
|
|
773
808
|
}
|
|
774
809
|
const missing = !this.carries(nodeType);
|
|
775
810
|
if (missing && report)
|
package/dist/core/refusals.d.ts
CHANGED
|
@@ -116,6 +116,8 @@ export declare const REFUSALS: {
|
|
|
116
116
|
readonly BPMN_HTTP_CONNECTOR_FIELDS_NO_CONNECTION: "lowering";
|
|
117
117
|
readonly BPMN_HTTP_OUTPUT_VAR_RESERVED: "lowering";
|
|
118
118
|
readonly BPMN_HUMAN_TASK_APP_FIELDS_ON_FORM: "lowering";
|
|
119
|
+
readonly BPMN_HUMAN_TASK_APP_NO_FOLDER: "lowering";
|
|
120
|
+
readonly BPMN_HUMAN_TASK_APP_V1_FIELDS: "lowering";
|
|
119
121
|
readonly BPMN_HUMAN_TASK_APP_XOR_FORM: "lowering";
|
|
120
122
|
readonly BPMN_JSON_INPUT_CDATA_END: "lowering";
|
|
121
123
|
readonly BPMN_NO_DEFAULT_EXPORT: "lowering";
|
|
@@ -416,6 +418,7 @@ export declare const REFUSALS: {
|
|
|
416
418
|
readonly HITL_APP_NO_SCHEMA: "lint";
|
|
417
419
|
readonly HITL_APP_OUTCOME_UNKNOWN: "lowering";
|
|
418
420
|
readonly HITL_APP_SCHEMA_INVALID: "lowering";
|
|
421
|
+
readonly HITL_APP_V1: "lint";
|
|
419
422
|
readonly HITL_APP_WITHOUT_VARIANT: "lowering";
|
|
420
423
|
readonly HITL_APP_WITH_FIELDS: "lint";
|
|
421
424
|
readonly HITL_CHANNEL_UNKNOWN: "lint";
|
package/dist/core/refusals.js
CHANGED
|
@@ -165,6 +165,8 @@ export const REFUSALS = {
|
|
|
165
165
|
BPMN_HTTP_CONNECTOR_FIELDS_NO_CONNECTION: 'lowering',
|
|
166
166
|
BPMN_HTTP_OUTPUT_VAR_RESERVED: 'lowering',
|
|
167
167
|
BPMN_HUMAN_TASK_APP_FIELDS_ON_FORM: 'lowering',
|
|
168
|
+
BPMN_HUMAN_TASK_APP_NO_FOLDER: 'lowering',
|
|
169
|
+
BPMN_HUMAN_TASK_APP_V1_FIELDS: 'lowering',
|
|
168
170
|
BPMN_HUMAN_TASK_APP_XOR_FORM: 'lowering',
|
|
169
171
|
BPMN_JSON_INPUT_CDATA_END: 'lowering',
|
|
170
172
|
BPMN_NO_DEFAULT_EXPORT: 'lowering',
|
|
@@ -492,6 +494,7 @@ export const REFUSALS = {
|
|
|
492
494
|
HITL_APP_NO_SCHEMA: 'lint',
|
|
493
495
|
HITL_APP_OUTCOME_UNKNOWN: 'lowering',
|
|
494
496
|
HITL_APP_SCHEMA_INVALID: 'lowering',
|
|
497
|
+
HITL_APP_V1: 'lint',
|
|
495
498
|
HITL_APP_WITHOUT_VARIANT: 'lowering',
|
|
496
499
|
HITL_APP_WITH_FIELDS: 'lint',
|
|
497
500
|
HITL_CHANNEL_UNKNOWN: 'lint',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.120.
|
|
3
|
+
"version": "6.120.18",
|
|
4
4
|
"description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.uipath.com/maestro",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"@types/node": "^22.7.0",
|
|
125
125
|
"esbuild": "^0.28.1"
|
|
126
126
|
},
|
|
127
|
-
"gitref": "
|
|
127
|
+
"gitref": "5c8f71e82c53ef622bf0335c6d0bc846c8c77aed"
|
|
128
128
|
}
|