@uipath/maestro-builder-sdk 6.90.1 → 6.90.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-index.md +2 -2
- package/dist/api-members.md +5 -5
- package/dist/flow-sdk.d.ts +1 -1
- package/dist/flow-sdk.js +1 -1
- package/dist/nodes/http/flow/check.js +17 -37
- package/dist/nodes/http/flow/factories.js +1 -1
- package/dist/nodes/http/flow/spec.d.ts +3 -2
- package/dist/registry/prepare/resolve.d.ts +7 -0
- package/dist/registry/prepare/resolve.js +30 -7
- package/package.json +2 -2
package/dist/api-index.md
CHANGED
|
@@ -183,8 +183,8 @@ could hand you spans for a version you do not have.
|
|
|
183
183
|
| `HitlVariant` | type | `dist/nodes/hitl/flow/spec.d.ts:120-145` | Supporting types | WHICH human-task node type to emit. |
|
|
184
184
|
| `http` | function | `dist/nodes/http/flow/factories.d.ts:7-14` | Actions | Declare an HTTP request action, explicitly choosing standalone or managed. |
|
|
185
185
|
| `HttpBranch` | interface | `dist/nodes/http/flow/spec.d.ts:8-23` | Supporting types | One conditional response branch on an HTTP node — a designer-visible side exit. |
|
|
186
|
-
| `HttpInputs` | type | `dist/nodes/http/flow/spec.d.ts:
|
|
187
|
-
| `HttpInputsBase` | interface | `dist/nodes/http/flow/spec.d.ts:24-
|
|
186
|
+
| `HttpInputs` | type | `dist/nodes/http/flow/spec.d.ts:126-143` | Option shapes | |
|
|
187
|
+
| `HttpInputsBase` | interface | `dist/nodes/http/flow/spec.d.ts:24-125` | Option shapes | 11 field(s) |
|
|
188
188
|
| `HttpRequestToolRef` | interface | `dist/core/actions.d.ts:524-553` | Supporting types | The built-in HTTP-request tool (`uipath.agent.resource.tool.builtin.httprequest`): the agent performs an HTTP call. |
|
|
189
189
|
| `inlineAgent` | function | `dist/nodes/agent/flow/factories.d.ts:84-134` | Actions | Declare an INLINE AUTONOMOUS AGENT — an agent defined inside this flow's own project rather than published to… |
|
|
190
190
|
| `InlineAgentFieldType` | type | `dist/core/actions.d.ts:268-269` | Supporting types | A JSON-schema-ish type for one field of an inline agent's input/output schema. |
|
package/dist/api-members.md
CHANGED
|
@@ -507,7 +507,7 @@ not find it either.
|
|
|
507
507
|
| `hidden` | property | `RegistryInputField` | `dist/bpmn/typed-node.d.ts:68` |
|
|
508
508
|
| `hitl` | property | `FlowActionSpecs` | `dist/nodes/hitl/flow/spec.d.ts:427-430` |
|
|
509
509
|
| `http` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:956-957` |
|
|
510
|
-
| `http` | property | `FlowActionSpecs` | `dist/nodes/http/flow/spec.d.ts:
|
|
510
|
+
| `http` | property | `FlowActionSpecs` | `dist/nodes/http/flow/spec.d.ts:146-149` |
|
|
511
511
|
| `http` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2538-2572` |
|
|
512
512
|
| `httpRequest` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1531-1550` |
|
|
513
513
|
| `humanTask` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2826-2909` |
|
|
@@ -680,7 +680,7 @@ not find it either.
|
|
|
680
680
|
| `loop` | property | `ActivityNodeFields` | `dist/bpmn/bpmn-sdk.d.ts:365-366` |
|
|
681
681
|
| `loop` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:890-891` |
|
|
682
682
|
| `loop` | method | `StepList` | `dist/flow-sdk.d.ts:1077-1088` |
|
|
683
|
-
| `managed` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:37-
|
|
683
|
+
| `managed` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:37-68` |
|
|
684
684
|
| `marksCaseComplete` | property | `BuiltCaseExitCondition` | `dist/case/case-sdk.d.ts:457` |
|
|
685
685
|
| `marksStageComplete` | property | `BuiltExitCondition` | `dist/case/case-sdk.d.ts:424` |
|
|
686
686
|
| `marksStageComplete` | property | `ExitOpts` | `dist/case/case-sdk.d.ts:1179-1180` |
|
|
@@ -1035,13 +1035,13 @@ not find it either.
|
|
|
1035
1035
|
| `retry` | property | `ActivityNodeFields` | `dist/bpmn/bpmn-sdk.d.ts:363-364` |
|
|
1036
1036
|
| `retry` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:888-889` |
|
|
1037
1037
|
| `retryable` | property | `ErrorMappingRow` | `dist/bpmn/bpmn-sdk.d.ts:338-339` |
|
|
1038
|
-
| `retryCount` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:
|
|
1038
|
+
| `retryCount` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:110-124` |
|
|
1039
1039
|
| `return` | method | `StepList` | `dist/flow-sdk.d.ts:1244-1253` |
|
|
1040
1040
|
| `returnCitations` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:34-39` |
|
|
1041
1041
|
| `returns` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:353-372` |
|
|
1042
1042
|
| `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:114-126` |
|
|
1043
1043
|
| `returns` | property | `ClientSideToolRef` | `dist/core/actions.d.ts:507-508` |
|
|
1044
|
-
| `returns` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:
|
|
1044
|
+
| `returns` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:69-91` |
|
|
1045
1045
|
| `returns` | property | `InlineAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:280-293` |
|
|
1046
1046
|
| `returns` | property | `ProcessToolRef` | `dist/core/actions.d.ts:712-713` |
|
|
1047
1047
|
| `returns` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:178-186` |
|
|
@@ -1211,7 +1211,7 @@ not find it either.
|
|
|
1211
1211
|
| `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:1139-1177` |
|
|
1212
1212
|
| `threshold` | property | `ContextIndexRef` | `dist/core/actions.d.ts:852-853` |
|
|
1213
1213
|
| `timeCycle` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:286-287` |
|
|
1214
|
-
| `timeout` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:
|
|
1214
|
+
| `timeout` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:92-109` |
|
|
1215
1215
|
| `timeout` | property | `HttpRequestToolRef` | `dist/core/actions.d.ts:551-552` |
|
|
1216
1216
|
| `timer` | property | `ActionTimedSettings` | `dist/case/case-sdk.d.ts:854-855` |
|
|
1217
1217
|
| `timer` | property | `BoundaryOpts` | `dist/bpmn/bpmn-sdk.d.ts:806-807` |
|
package/dist/flow-sdk.d.ts
CHANGED
|
@@ -1098,7 +1098,7 @@ declare class StepList {
|
|
|
1098
1098
|
* ```ts
|
|
1099
1099
|
* .var('page', types.number, 1)
|
|
1100
1100
|
* .doWhile('paginate', js`$vars.fetch.output.body.hasNextPage === true`, (b) => b
|
|
1101
|
-
* .step('fetch', http({ url: tmpl`https://api.example.test/items?page=${v('page')}`, method: 'GET', managed:
|
|
1101
|
+
* .step('fetch', http({ url: tmpl`https://api.example.test/items?page=${v('page')}`, method: 'GET', managed: true, returns: { hasNextPage: 'boolean' } }), {
|
|
1102
1102
|
* updates: { page: js`$vars.page + 1` },
|
|
1103
1103
|
* }), { limit: 50 })
|
|
1104
1104
|
* ```
|
package/dist/flow-sdk.js
CHANGED
|
@@ -707,7 +707,7 @@ class StepList {
|
|
|
707
707
|
* ```ts
|
|
708
708
|
* .var('page', types.number, 1)
|
|
709
709
|
* .doWhile('paginate', js`$vars.fetch.output.body.hasNextPage === true`, (b) => b
|
|
710
|
-
* .step('fetch', http({ url: tmpl`https://api.example.test/items?page=${v('page')}`, method: 'GET', managed:
|
|
710
|
+
* .step('fetch', http({ url: tmpl`https://api.example.test/items?page=${v('page')}`, method: 'GET', managed: true, returns: { hasNextPage: 'boolean' } }), {
|
|
711
711
|
* updates: { page: js`$vars.page + 1` },
|
|
712
712
|
* }), { limit: 50 })
|
|
713
713
|
* ```
|
|
@@ -45,48 +45,28 @@ const RETRY_COUNT_SOFT_MAX = 5;
|
|
|
45
45
|
*/
|
|
46
46
|
export function checkHttp(inputs, ctx) {
|
|
47
47
|
const step = ctx.step;
|
|
48
|
-
// `core.action.http` is retired
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
// runs, which is why this is a warning and not an error: existing flows are
|
|
53
|
-
// not broken and `decompile` must keep round-tripping them.
|
|
48
|
+
// `core.action.http` is retired: the tenant serves only `core.action.http.v2`,
|
|
49
|
+
// and a run of the plain node answers 500 "No handler registered for extension
|
|
50
|
+
// type 'Intsvc.HttpExecution'". A warning, not an error, so `decompile` keeps
|
|
51
|
+
// round-tripping existing flows.
|
|
54
52
|
//
|
|
55
|
-
// Moving to the managed node is not a rename
|
|
56
|
-
// the
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
// the wrong move (flow-builder-sdk#898). With no `connection` the managed node
|
|
61
|
-
// still goes through Integration Service: serialize emits the `uipath-uipath-http`
|
|
62
|
-
// connector on `ImplicitConnection`, so the request leaves from IS's SHARED
|
|
63
|
-
// egress. Measured on slack-weather-pipeline (3/3 runs): agents took the old
|
|
64
|
-
// `managed: true` hint, and Open-Meteo answered that egress 429 "Daily API
|
|
65
|
-
// request limit exceeded" while direct calls from the same box got 200. The
|
|
66
|
-
// plain node goes direct. So the hint only steers toward `managed: true` when
|
|
67
|
-
// the step was given connection settings; the two other real reasons to move
|
|
68
|
-
// (a binding, an `.onError()`) already fire as errors with that suggestion
|
|
69
|
-
// (HTTP_BINDING_REQUIRES_MANAGED, HTTP_ONERROR_V1).
|
|
53
|
+
// Moving to the managed node is not a rename: a non-2xx fails the step instead
|
|
54
|
+
// of arriving on the success path with `statusCode`, so a status branch becomes
|
|
55
|
+
// an error handler reading the envelope's `status`. Without a `connection` it
|
|
56
|
+
// still goes through Integration Service's SHARED egress, where public APIs can
|
|
57
|
+
// answer 429 (flow-builder-sdk#898).
|
|
70
58
|
if (inputs && !inputs.managed) {
|
|
71
59
|
const asked = inputs;
|
|
72
60
|
const wantsConnection = asked.connection !== undefined || asked.folder !== undefined
|
|
73
61
|
|| asked.targetConnector !== undefined;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
ctx.report('HTTP_V1_RETIRED', `Step "${step}" emits core.action.http, which the tenant registry no longer serves (only `
|
|
83
|
-
+ `core.action.http.v2). It still compiles, validates and runs, and it calls the URL directly. For a URL `
|
|
84
|
-
+ `that needs no Integration Service connection, keep managed: false. managed: true is not a drop-in `
|
|
85
|
-
+ `replacement: even without a connection it sends the request through Integration Service's shared `
|
|
86
|
-
+ `egress (rate limits there are shared, and public APIs can answer 429 where a direct call succeeds), `
|
|
87
|
-
+ `and a non-2xx fails the step instead of arriving with statusCode. Switch only if the call needs an `
|
|
88
|
-
+ `Integration Service connection or an .onError() handler.`);
|
|
89
|
-
}
|
|
62
|
+
const tail = wantsConnection
|
|
63
|
+
? `It also sets Integration Service connection settings, which only the managed node can use.`
|
|
64
|
+
: `Without a connection it sends the request through Integration Service's shared egress, so public APIs can answer 429.`;
|
|
65
|
+
ctx.report('HTTP_V1_RETIRED', `Step "${step}" emits core.action.http, which no longer runs on the platform: the tenant registry serves only `
|
|
66
|
+
+ `core.action.http.v2, and the runtime answers 500 "No handler registered for extension type `
|
|
67
|
+
+ `'Intsvc.HttpExecution'". Moving to managed: true changes behaviour rather than just the node type: a non-2xx `
|
|
68
|
+
+ `fails the step instead of arriving with statusCode, so a status branch becomes an .onError() handler `
|
|
69
|
+
+ `reading err('${step}', 'status'). ${tail}`, wantsConnection ? `http({ url: …, managed: true, connection, folder })` : `http({ url: …, managed: true })`);
|
|
90
70
|
}
|
|
91
71
|
// Connection settings on the standalone node, an incomplete pair, and an
|
|
92
72
|
// empty or unbound `targetConnector` are the serializer's HTTP_BINDING_* /
|
|
@@ -15,7 +15,7 @@ export function http(inputs) {
|
|
|
15
15
|
if (typeof inputs.managed !== 'boolean') {
|
|
16
16
|
throw new CompileRefusal('HTTP_MANAGED_REQUIRED', 'http() requires managed: true or managed: false because they emit different platform nodes. '
|
|
17
17
|
+ 'Use true for Managed HTTP Request/core.action.http.v2 or when non-2xx statuses must reach .onError(); '
|
|
18
|
-
+ '
|
|
18
|
+
+ 'false emits the retired core.action.http, which no longer runs on the platform.');
|
|
19
19
|
}
|
|
20
20
|
return builtinActionSpec({ kind: 'http', inputs });
|
|
21
21
|
}
|
|
@@ -35,8 +35,9 @@ interface HttpInputsBase {
|
|
|
35
35
|
body?: string | Expr;
|
|
36
36
|
contentType?: string;
|
|
37
37
|
/**
|
|
38
|
-
* Choose the HTTP node explicitly. `false` emits the
|
|
39
|
-
* `core.action.http
|
|
38
|
+
* Choose the HTTP node explicitly. `false` emits the retired
|
|
39
|
+
* `core.action.http`, which no longer runs on the platform (500 "No handler
|
|
40
|
+
* registered for extension type 'Intsvc.HttpExecution'"); `true` emits the managed `core.action.http.v2`, routed
|
|
40
41
|
* through Integration Service's HTTP connector.
|
|
41
42
|
*
|
|
42
43
|
* This has no default because these are different platform nodes, not two
|
|
@@ -36,6 +36,8 @@ export interface LookupExhaustedFacts {
|
|
|
36
36
|
pages: number;
|
|
37
37
|
/** True when a cap, not the collection's end, stopped the scan. */
|
|
38
38
|
capped: boolean;
|
|
39
|
+
/** True when the service reported more records (`HasMore`) but returned no `NextPageToken`. */
|
|
40
|
+
truncated?: boolean;
|
|
39
41
|
/**
|
|
40
42
|
* Every distinct value the scan saw at `by`, when the whole collection was
|
|
41
43
|
* read and holds at most {@link CANDIDATE_LIMIT} records — what to pick from.
|
|
@@ -77,6 +79,7 @@ export declare class LookupExhausted extends ResolutionRefusal {
|
|
|
77
79
|
readonly scanned: number;
|
|
78
80
|
readonly pages: number;
|
|
79
81
|
readonly capped: boolean;
|
|
82
|
+
readonly truncated: boolean;
|
|
80
83
|
readonly candidates?: readonly string[];
|
|
81
84
|
readonly near?: string;
|
|
82
85
|
constructor(message: string, facts: LookupExhaustedFacts);
|
|
@@ -207,6 +210,8 @@ export interface ScanOutcome {
|
|
|
207
210
|
pages: number;
|
|
208
211
|
/** True when a cap, not the collection's end, stopped the scan. */
|
|
209
212
|
capped: boolean;
|
|
213
|
+
/** True when `HasMore` was true but no `NextPageToken` came back, so the scan could not continue. */
|
|
214
|
+
truncated: boolean;
|
|
210
215
|
}
|
|
211
216
|
/**
|
|
212
217
|
* Page through a collection, yielding each page's records and returning where
|
|
@@ -216,6 +221,8 @@ export interface ScanOutcome {
|
|
|
216
221
|
* / `pageToken` / `nextPageToken` is a documented way to loop forever on page
|
|
217
222
|
* one. Stops when the reply says there is no more, when it carries no token,
|
|
218
223
|
* at {@link MAX_SCANNED} records, or after {@link PAGE_GUARD} transitions.
|
|
224
|
+
* A reply with `HasMore` true and no token is a truncated scan, not the end:
|
|
225
|
+
* it stops without looping and says so in {@link ScanOutcome.truncated}.
|
|
219
226
|
*/
|
|
220
227
|
export declare function scanCollection(client: UipClient, connectorKey: string, collection: string, connectionId: string, query: string | undefined): AsyncGenerator<unknown[], ScanOutcome, void>;
|
|
221
228
|
/**
|
|
@@ -84,6 +84,7 @@ export class LookupExhausted extends ResolutionRefusal {
|
|
|
84
84
|
scanned;
|
|
85
85
|
pages;
|
|
86
86
|
capped;
|
|
87
|
+
truncated;
|
|
87
88
|
candidates;
|
|
88
89
|
near;
|
|
89
90
|
constructor(message, facts) {
|
|
@@ -96,6 +97,7 @@ export class LookupExhausted extends ResolutionRefusal {
|
|
|
96
97
|
this.scanned = facts.scanned;
|
|
97
98
|
this.pages = facts.pages;
|
|
98
99
|
this.capped = facts.capped;
|
|
100
|
+
this.truncated = facts.truncated === true;
|
|
99
101
|
if (facts.candidates !== undefined)
|
|
100
102
|
this.candidates = facts.candidates;
|
|
101
103
|
if (facts.near !== undefined)
|
|
@@ -408,6 +410,10 @@ export function substitute(template, resolved) {
|
|
|
408
410
|
export function matchRecord(record, by, value) {
|
|
409
411
|
return pyStrAny(readPath(record, by)) === value;
|
|
410
412
|
}
|
|
413
|
+
/** What a scan stopped by {@link ScanOutcome.truncated} says in place of "collection exhausted". */
|
|
414
|
+
function truncatedNote(collection, scanned) {
|
|
415
|
+
return `; TRUNCATED: the service reported more records in ${pyRepr(collection)} but returned no NextPageToken after ${scanned} record(s), so the value may be further in`;
|
|
416
|
+
}
|
|
411
417
|
/**
|
|
412
418
|
* Page through a collection, yielding each page's records and returning where
|
|
413
419
|
* the scan stopped.
|
|
@@ -416,10 +422,13 @@ export function matchRecord(record, by, value) {
|
|
|
416
422
|
* / `pageToken` / `nextPageToken` is a documented way to loop forever on page
|
|
417
423
|
* one. Stops when the reply says there is no more, when it carries no token,
|
|
418
424
|
* at {@link MAX_SCANNED} records, or after {@link PAGE_GUARD} transitions.
|
|
425
|
+
* A reply with `HasMore` true and no token is a truncated scan, not the end:
|
|
426
|
+
* it stops without looping and says so in {@link ScanOutcome.truncated}.
|
|
419
427
|
*/
|
|
420
428
|
export async function* scanCollection(client, connectorKey, collection, connectionId, query) {
|
|
421
429
|
let scanned = 0;
|
|
422
430
|
let pages = 0;
|
|
431
|
+
let truncated = false;
|
|
423
432
|
for (;;) {
|
|
424
433
|
const payload = await listPage(client, connectorKey, collection, connectionId, query);
|
|
425
434
|
const items = envelopeItems(payload);
|
|
@@ -427,7 +436,13 @@ export async function* scanCollection(client, connectorKey, collection, connecti
|
|
|
427
436
|
yield items;
|
|
428
437
|
const pagination = envelopePagination(payload);
|
|
429
438
|
const token = pagination.NextPageToken;
|
|
430
|
-
if (!truthy(pagination.HasMore)
|
|
439
|
+
if (!truthy(pagination.HasMore))
|
|
440
|
+
break;
|
|
441
|
+
if (!pyTruthy(token)) {
|
|
442
|
+
truncated = scanned < MAX_SCANNED;
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
if (scanned >= MAX_SCANNED)
|
|
431
446
|
break;
|
|
432
447
|
pages += 1;
|
|
433
448
|
if (pages > PAGE_GUARD)
|
|
@@ -436,7 +451,7 @@ export async function* scanCollection(client, connectorKey, collection, connecti
|
|
|
436
451
|
// is a documented way to loop forever on page one.
|
|
437
452
|
query = query ? `${query}&nextPage=${pyStrAny(token)}` : `nextPage=${pyStrAny(token)}`;
|
|
438
453
|
}
|
|
439
|
-
return { scanned, pages, capped: scanned >= MAX_SCANNED || pages > PAGE_GUARD };
|
|
454
|
+
return { scanned, pages, capped: truncated || scanned >= MAX_SCANNED || pages > PAGE_GUARD, truncated };
|
|
440
455
|
}
|
|
441
456
|
/**
|
|
442
457
|
* The connector-facing id for one lookup, or throw {@link ResolutionRefusal}.
|
|
@@ -513,7 +528,7 @@ export async function resolveOne(client, connectorKey, spec, field, by, value, c
|
|
|
513
528
|
}
|
|
514
529
|
step = await scan.next();
|
|
515
530
|
}
|
|
516
|
-
const { scanned, pages, capped } = step.value;
|
|
531
|
+
const { scanned, pages, capped, truncated } = step.value;
|
|
517
532
|
// No exact match anywhere in the collection: try the case-only ones. Exact
|
|
518
533
|
// first, because an id picked by a looser rule while the exact record sat
|
|
519
534
|
// on a later page would be the wrong id. Only once the scan has read to the
|
|
@@ -562,13 +577,17 @@ export async function resolveOne(client, connectorKey, spec, field, by, value, c
|
|
|
562
577
|
const candidates = !capped && !pyTruthy(filterPattern) && scanned <= CANDIDATE_LIMIT && held.length > 0 ? held : undefined;
|
|
563
578
|
throw new LookupExhausted(`${field}: no record in ${pyRepr(collection)} has ${by}=${pyRepr(value)} ` +
|
|
564
579
|
`(scanned ${scanned} record(s) across ${pages + 1} page(s)` +
|
|
565
|
-
(
|
|
580
|
+
(truncated
|
|
581
|
+
? truncatedNote(collection, scanned)
|
|
582
|
+
: capped
|
|
583
|
+
? `; STOPPED AT THE ${MAX_SCANNED}-record cap, so the value may be further in`
|
|
584
|
+
: "; collection exhausted") +
|
|
566
585
|
`) on connection ${connectionId}.` +
|
|
567
586
|
(near !== undefined
|
|
568
587
|
? ` Did you mean ${pyRepr(near)}? It differs only in case and was not taken: the scan stopped before the end, where an exact match may still be.`
|
|
569
588
|
: "") +
|
|
570
589
|
(candidates !== undefined ? ` It holds: ${candidates.map(pyRepr).join(", ")}.` : ""), {
|
|
571
|
-
field, collection, by, value, scanned, pages: pages + 1, capped,
|
|
590
|
+
field, collection, by, value, scanned, pages: pages + 1, capped, truncated,
|
|
572
591
|
...(candidates !== undefined ? { candidates } : {}),
|
|
573
592
|
...(near !== undefined ? { near } : {}),
|
|
574
593
|
});
|
|
@@ -689,10 +708,14 @@ async function resolveInTree(client, connectorKey, spec, field, by, value, conne
|
|
|
689
708
|
if (hit === undefined) {
|
|
690
709
|
const held = level.records.map((record) => pyStrAny(readPath(record, by))).filter((text) => text !== "None");
|
|
691
710
|
const shown = !level.outcome.capped && held.length > 0 && held.length <= CANDIDATE_LIMIT ? ` It holds: ${held.map(pyRepr).join(", ")}.` : "";
|
|
692
|
-
const facts = { field, collection: where, by, value, scanned, pages, capped: level.outcome.capped };
|
|
711
|
+
const facts = { field, collection: where, by, value, scanned, pages, capped: level.outcome.capped, truncated: level.outcome.truncated };
|
|
693
712
|
throw new LookupExhausted(`${field}: path ${pyRepr(value)} stops at segment ${i + 1}, ${pyRepr(segment)}: no record in ${pyRepr(where)} ` +
|
|
694
713
|
`has ${by}=${pyRepr(segment)} (walked ${listings} listing(s), ${scanned} record(s)` +
|
|
695
|
-
(level.outcome.
|
|
714
|
+
(level.outcome.truncated
|
|
715
|
+
? truncatedNote(where, level.outcome.scanned)
|
|
716
|
+
: level.outcome.capped
|
|
717
|
+
? `; STOPPED AT THE ${MAX_SCANNED}-record cap`
|
|
718
|
+
: "; that listing exhausted") +
|
|
696
719
|
`) on connection ${connectionId}.${shown}`, facts);
|
|
697
720
|
}
|
|
698
721
|
if (i === segments.length - 1)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.90.
|
|
3
|
+
"version": "6.90.3",
|
|
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",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"@types/node": "^22.7.0",
|
|
111
111
|
"esbuild": "^0.28.1"
|
|
112
112
|
},
|
|
113
|
-
"gitref": "
|
|
113
|
+
"gitref": "d934672924e4322f02cf71de72b930f959584af3"
|
|
114
114
|
}
|