@uipath/maestro-builder-sdk 6.124.6 → 6.124.8
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 +45 -45
- package/dist/api-members.md +198 -198
- package/dist/bpmn/bpmn-sdk.d.ts +6 -20
- package/dist/bpmn/bpmn-sdk.js +1 -2
- package/dist/bpmn/registry-types.json +26 -14
- package/dist/bpmn/typed-node.d.ts +0 -8
- package/dist/bpmn-api.md +3 -3
- package/dist/core/event-filters.d.ts +18 -0
- package/dist/core/event-filters.js +33 -9
- package/dist/core/event-subscription.d.ts +3 -0
- package/dist/core/event-subscription.js +6 -1
- package/package.json +2 -2
package/dist/bpmn/bpmn-sdk.d.ts
CHANGED
|
@@ -1543,16 +1543,9 @@ export interface OrchestratorOpts extends ActivityOpts {
|
|
|
1543
1543
|
* The local engine does not bind `result` yet (it binds the job's output under
|
|
1544
1544
|
* `response`, and a local `*Async` start returns none), so on a local run this row
|
|
1545
1545
|
* reads `undefined`; the platform reads it.
|
|
1546
|
-
*
|
|
1547
|
-
* Needed for the same reason `.humanTask()` has it: this family declares a TYPED output
|
|
1548
|
-
* (`type="Orchestrator.RunJob"` and friends) with no `source`, which the designer resolves
|
|
1549
|
-
* into sub-fields but the local engine cannot — so the variable stays `undefined` on a local
|
|
1550
|
-
* run and nothing downstream can read or branch on it. An explicit row maps one field the
|
|
1551
|
-
* way every other output row works. The spec's own row is still emitted, so the artifact
|
|
1552
|
-
* stays what the platform expects.
|
|
1553
1546
|
*/
|
|
1554
1547
|
outputs?: Record<string, string>;
|
|
1555
|
-
/** Variable
|
|
1548
|
+
/** Variable every output argument lands in (`=result`). Defaults to `<id>_processResponse`. */
|
|
1556
1549
|
outputVar?: string;
|
|
1557
1550
|
/** `=`-expression that skips the invocation when truthy. */
|
|
1558
1551
|
skipCondition?: string;
|
|
@@ -1595,16 +1588,9 @@ export interface QueueItemOpts extends ActivityOpts {
|
|
|
1595
1588
|
* `vars.response.Output["OutputString"]`). The local engine does not bind `result`
|
|
1596
1589
|
* yet and flattens `Output` into the item, so on a local run this row reads
|
|
1597
1590
|
* `undefined`; the platform reads it.
|
|
1598
|
-
*
|
|
1599
|
-
* Needed for the same reason `.humanTask()` has it: this family declares a TYPED output
|
|
1600
|
-
* (`type="Orchestrator.RunJob"` and friends) with no `source`, which the designer resolves
|
|
1601
|
-
* into sub-fields but the local engine cannot — so the variable stays `undefined` on a local
|
|
1602
|
-
* run and nothing downstream can read or branch on it. An explicit row maps one field the
|
|
1603
|
-
* way every other output row works. The spec's own row is still emitted, so the artifact
|
|
1604
|
-
* stays what the platform expects.
|
|
1605
1591
|
*/
|
|
1606
1592
|
outputs?: Record<string, string>;
|
|
1607
|
-
/** Variable the
|
|
1593
|
+
/** Variable the whole result lands in (`=result`). Defaults to `<id>_response`. */
|
|
1608
1594
|
outputVar?: string;
|
|
1609
1595
|
/** `=`-expression that skips the enqueue when truthy. */
|
|
1610
1596
|
skipCondition?: string;
|
|
@@ -1620,8 +1606,8 @@ export interface HumanTaskCommonOpts extends ActivityOpts {
|
|
|
1620
1606
|
* `{ decision: '=Action' }`.
|
|
1621
1607
|
*
|
|
1622
1608
|
* Worth setting whenever a gateway branches on the outcome. The type's own
|
|
1623
|
-
* output row is typed (`type="Actions.HITL"`,
|
|
1624
|
-
*
|
|
1609
|
+
* output row is typed (`type="Actions.HITL"`, `source="=result"`), which the platform
|
|
1610
|
+
* fills but the local runtime leaves `undefined` — so without a mapped field
|
|
1625
1611
|
* here, a local run cannot branch on the decision at all. `=Action` is the field
|
|
1626
1612
|
* the runtime's own outcome routing reads.
|
|
1627
1613
|
*/
|
|
@@ -1666,7 +1652,7 @@ export interface HumanTaskAppOpts extends HumanTaskCommonOpts {
|
|
|
1666
1652
|
form?: never;
|
|
1667
1653
|
/** Data the task shows the human — the node's `HitlTaskArguments`. */
|
|
1668
1654
|
input?: Record<string, unknown>;
|
|
1669
|
-
/** Variable the whole
|
|
1655
|
+
/** Variable the task's whole result lands in (`=result`). Defaults to `<id>_processResponse`. */
|
|
1670
1656
|
outputVar?: string;
|
|
1671
1657
|
/**
|
|
1672
1658
|
* Removed (#2144): a v1 `appId`-task field the V2 engine never reads. The app defines
|
|
@@ -1754,7 +1740,7 @@ export interface ReceiveMessageOpts extends ActivityOpts {
|
|
|
1754
1740
|
* [error] Maestro.ReceiveMessageEvent output type must be "Maestro.ReceiveMessageEvent".
|
|
1755
1741
|
*
|
|
1756
1742
|
* Which is not derivable from the registry — `Actions.HITL` declares a
|
|
1757
|
-
* structurally IDENTICAL output (a typed row,
|
|
1743
|
+
* structurally IDENTICAL output (a typed row, `source="=result"`) and accepts a mapped
|
|
1758
1744
|
* second row happily, which is the whole basis of offline approval routing. So
|
|
1759
1745
|
* the constraint is recorded in `REGISTRY_GAPS` rather than inferred, and this
|
|
1760
1746
|
* option simply does not exist. Read the message with `outputVar` and an
|
package/dist/bpmn/bpmn-sdk.js
CHANGED
|
@@ -1826,8 +1826,7 @@ class ScopeBuilder {
|
|
|
1826
1826
|
const o = opts;
|
|
1827
1827
|
// The app variant's fields have no meaning on an inline form: the form IS what the
|
|
1828
1828
|
// human sees (`input`), and there is no app to look up (`folder`).
|
|
1829
|
-
// Nor does `outputVar`: the app task's whole-response row
|
|
1830
|
-
// quick form never fills, so there is nothing to name.
|
|
1829
|
+
// Nor does `outputVar`: a quick form never fills the app task's whole-response row.
|
|
1831
1830
|
const appOnly = ['folder', 'input', 'outputVar'].filter((k) => given[k] !== undefined);
|
|
1832
1831
|
if (appOnly.length) {
|
|
1833
1832
|
throw new CompileRefusal('BPMN_HUMAN_TASK_APP_FIELDS_ON_FORM', `humanTask "${id}": ${appOnly.join(', ')} belong to an app-backed task. On an inline form, put what the human sees in form.fields` +
|
|
@@ -9,7 +9,19 @@
|
|
|
9
9
|
"typeCount": 51,
|
|
10
10
|
"uipVersion": "1.205.0-preview.256",
|
|
11
11
|
"refreshed": {
|
|
12
|
-
"Actions.HITL": "uipath-cli@
|
|
12
|
+
"Actions.HITL": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
13
|
+
"A2A.AgentExecution": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
14
|
+
"Maestro.ReceiveMessageEvent": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
15
|
+
"Maestro.SendMessageEvent": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
16
|
+
"Orchestrator.CreateAndWaitForQueueItem": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
17
|
+
"Orchestrator.CreateQueueItem": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
18
|
+
"Orchestrator.ExecuteApiWorkflowAsync": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
19
|
+
"Orchestrator.ExecuteFunctionAsync": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
20
|
+
"Orchestrator.StartAgentJob": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
21
|
+
"Orchestrator.StartAgenticProcess": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
22
|
+
"Orchestrator.StartCaseMgmtProcess": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
23
|
+
"Orchestrator.StartFlowProcess": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0",
|
|
24
|
+
"Orchestrator.StartJob": "uipath-cli@d098f3393 bpmn-spec.json 1.1.0"
|
|
13
25
|
}
|
|
14
26
|
},
|
|
15
27
|
"types": {
|
|
@@ -70,7 +82,7 @@
|
|
|
70
82
|
"output": {
|
|
71
83
|
"name": "a2aResponse",
|
|
72
84
|
"type": "A2A.AgentExecution",
|
|
73
|
-
"source":
|
|
85
|
+
"source": "=result",
|
|
74
86
|
"relative": true
|
|
75
87
|
},
|
|
76
88
|
"eventDefinition": null,
|
|
@@ -134,7 +146,7 @@
|
|
|
134
146
|
"output": {
|
|
135
147
|
"name": "Process response",
|
|
136
148
|
"type": "Actions.HITL",
|
|
137
|
-
"source":
|
|
149
|
+
"source": "=result",
|
|
138
150
|
"relative": true
|
|
139
151
|
},
|
|
140
152
|
"eventDefinition": null,
|
|
@@ -1679,7 +1691,7 @@
|
|
|
1679
1691
|
"output": {
|
|
1680
1692
|
"name": "response",
|
|
1681
1693
|
"type": "Maestro.ReceiveMessageEvent",
|
|
1682
|
-
"source":
|
|
1694
|
+
"source": "=result",
|
|
1683
1695
|
"relative": true
|
|
1684
1696
|
},
|
|
1685
1697
|
"eventDefinition": "bpmn:messageEventDefinition",
|
|
@@ -1816,7 +1828,7 @@
|
|
|
1816
1828
|
"output": {
|
|
1817
1829
|
"name": "response",
|
|
1818
1830
|
"type": "Maestro.SendMessageEvent",
|
|
1819
|
-
"source":
|
|
1831
|
+
"source": "=result",
|
|
1820
1832
|
"relative": true
|
|
1821
1833
|
},
|
|
1822
1834
|
"eventDefinition": "bpmn:messageEventDefinition",
|
|
@@ -2074,7 +2086,7 @@
|
|
|
2074
2086
|
"output": {
|
|
2075
2087
|
"name": "response",
|
|
2076
2088
|
"type": "Orchestrator.CreateQueueItem",
|
|
2077
|
-
"source":
|
|
2089
|
+
"source": "=result",
|
|
2078
2090
|
"relative": true
|
|
2079
2091
|
},
|
|
2080
2092
|
"eventDefinition": null,
|
|
@@ -2134,7 +2146,7 @@
|
|
|
2134
2146
|
"output": {
|
|
2135
2147
|
"name": "response",
|
|
2136
2148
|
"type": "Orchestrator.CreateQueueItem",
|
|
2137
|
-
"source":
|
|
2149
|
+
"source": "=result",
|
|
2138
2150
|
"relative": true
|
|
2139
2151
|
},
|
|
2140
2152
|
"eventDefinition": null,
|
|
@@ -2250,7 +2262,7 @@
|
|
|
2250
2262
|
"output": {
|
|
2251
2263
|
"name": "Process response",
|
|
2252
2264
|
"type": "Orchestrator.RunJob",
|
|
2253
|
-
"source":
|
|
2265
|
+
"source": "=result",
|
|
2254
2266
|
"relative": true
|
|
2255
2267
|
},
|
|
2256
2268
|
"eventDefinition": null,
|
|
@@ -2320,7 +2332,7 @@
|
|
|
2320
2332
|
"output": {
|
|
2321
2333
|
"name": "Process response",
|
|
2322
2334
|
"type": "Orchestrator.RunJob",
|
|
2323
|
-
"source":
|
|
2335
|
+
"source": "=result",
|
|
2324
2336
|
"relative": true
|
|
2325
2337
|
},
|
|
2326
2338
|
"eventDefinition": null,
|
|
@@ -2763,7 +2775,7 @@
|
|
|
2763
2775
|
"output": {
|
|
2764
2776
|
"name": "Process response",
|
|
2765
2777
|
"type": "Orchestrator.RunJob",
|
|
2766
|
-
"source":
|
|
2778
|
+
"source": "=result",
|
|
2767
2779
|
"relative": true
|
|
2768
2780
|
},
|
|
2769
2781
|
"eventDefinition": null,
|
|
@@ -2833,7 +2845,7 @@
|
|
|
2833
2845
|
"output": {
|
|
2834
2846
|
"name": "Process response",
|
|
2835
2847
|
"type": "Orchestrator.RunJob",
|
|
2836
|
-
"source":
|
|
2848
|
+
"source": "=result",
|
|
2837
2849
|
"relative": true
|
|
2838
2850
|
},
|
|
2839
2851
|
"eventDefinition": null,
|
|
@@ -2968,7 +2980,7 @@
|
|
|
2968
2980
|
"output": {
|
|
2969
2981
|
"name": "Process response",
|
|
2970
2982
|
"type": "Orchestrator.RunJob",
|
|
2971
|
-
"source":
|
|
2983
|
+
"source": "=result",
|
|
2972
2984
|
"relative": true
|
|
2973
2985
|
},
|
|
2974
2986
|
"eventDefinition": null,
|
|
@@ -3103,7 +3115,7 @@
|
|
|
3103
3115
|
"output": {
|
|
3104
3116
|
"name": "Process response",
|
|
3105
3117
|
"type": "Orchestrator.RunJob",
|
|
3106
|
-
"source":
|
|
3118
|
+
"source": "=result",
|
|
3107
3119
|
"relative": true
|
|
3108
3120
|
},
|
|
3109
3121
|
"eventDefinition": null,
|
|
@@ -3238,7 +3250,7 @@
|
|
|
3238
3250
|
"output": {
|
|
3239
3251
|
"name": "Process response",
|
|
3240
3252
|
"type": "Orchestrator.RunJob",
|
|
3241
|
-
"source":
|
|
3253
|
+
"source": "=result",
|
|
3242
3254
|
"relative": true
|
|
3243
3255
|
},
|
|
3244
3256
|
"eventDefinition": null,
|
|
@@ -363,14 +363,6 @@ export interface TypedNodeInput {
|
|
|
363
363
|
/**
|
|
364
364
|
* EXTRA output rows: variable id → `=`-expression read against the node's own
|
|
365
365
|
* result, e.g. `{ decision: '=Action' }`.
|
|
366
|
-
*
|
|
367
|
-
* Why this exists: several types declare a TYPED output — `Actions.HITL` writes
|
|
368
|
-
* `type="Actions.HITL"` with no `source` — which the designer resolves into
|
|
369
|
-
* sub-fields but the local engine cannot, so the variable stays `undefined` on a
|
|
370
|
-
* local run and nothing can branch on it. An explicit row alongside it maps one
|
|
371
|
-
* field the way every other output row works, which the runtime does resolve.
|
|
372
|
-
* The spec's own row is still emitted, so the artifact stays what the platform
|
|
373
|
-
* expects.
|
|
374
366
|
*/
|
|
375
367
|
outputs?: Record<string, string>;
|
|
376
368
|
/**
|
package/dist/bpmn-api.md
CHANGED
|
@@ -311,7 +311,7 @@ Extends `ActivityOpts` — its fields and methods apply here too.
|
|
|
311
311
|
- `OrchestratorOpts.releaseKey?: string` — Address the release by KEY instead of by name — the deployed resource's `Key` from `uip or processes list --folder-path…
|
|
312
312
|
- `OrchestratorOpts.folderKey?: string` — The folder's `FolderKey` GUID (the same `uip or processes list` row carries it), for a node addressed by…
|
|
313
313
|
- `OrchestratorOpts.outputs?: Record<string, string>` — EXTRA output rows: variable id → `=`-expression read against the node's own result, e.g. `{ message: '=result.message'…
|
|
314
|
-
- `OrchestratorOpts.outputVar?: string` — Variable
|
|
314
|
+
- `OrchestratorOpts.outputVar?: string` — Variable every output argument lands in (`=result`).
|
|
315
315
|
- `OrchestratorOpts.skipCondition?: string` — `=`-expression that skips the invocation when truthy.
|
|
316
316
|
|
|
317
317
|
### `OrchestratorAsyncOpts`
|
|
@@ -334,7 +334,7 @@ Extends `ActivityOpts` — its fields and methods apply here too.
|
|
|
334
334
|
- `QueueItemOpts.item?: Record<string, unknown>` — The item's content — serialized as the node's `ItemData` body.
|
|
335
335
|
- `QueueItemOpts.wait?: boolean` — `true` waits for the item to be processed and maps its outcome back (`Orchestrator.CreateAndWaitForQueueItem`); default…
|
|
336
336
|
- `QueueItemOpts.outputs?: Record<string, string>` — EXTRA output rows: variable id → `=`-expression read against the node's own result, e.g. `{ outputString:…
|
|
337
|
-
- `QueueItemOpts.outputVar?: string` — Variable the
|
|
337
|
+
- `QueueItemOpts.outputVar?: string` — Variable the whole result lands in (`=result`).
|
|
338
338
|
- `QueueItemOpts.skipCondition?: string` — `=`-expression that skips the enqueue when truthy.
|
|
339
339
|
|
|
340
340
|
### `HumanTaskOpts`
|
|
@@ -513,7 +513,7 @@ Extends `HumanTaskCommonOpts` — its fields and methods apply here too.
|
|
|
513
513
|
- `HumanTaskAppOpts.folder: string` — The Orchestrator folder path the app is deployed to, e.g. `'Shared'` or `'Finance/Invoices'` — the context's…
|
|
514
514
|
- `HumanTaskAppOpts.form?: never` — Not on this variant — see HumanTaskFormOpts.
|
|
515
515
|
- `HumanTaskAppOpts.input?: Record<string, unknown>` — Data the task shows the human — the node's `HitlTaskArguments`.
|
|
516
|
-
- `HumanTaskAppOpts.outputVar?: string` — Variable the whole
|
|
516
|
+
- `HumanTaskAppOpts.outputVar?: string` — Variable the task's whole result lands in (`=result`).
|
|
517
517
|
- `HumanTaskAppOpts.actions?: never` — Removed (#2144): a v1 `appId`-task field the V2 engine never reads.
|
|
518
518
|
- `HumanTaskAppOpts.appVersion?: never` — Removed (#2144): a v1 `appId`-task field the V2 engine never reads.
|
|
519
519
|
- `HumanTaskAppOpts.key?: never` — Removed (#2144): a v1 `appId`-task field the V2 engine never reads.
|
|
@@ -294,6 +294,24 @@ export declare function jmesString(value: string): string;
|
|
|
294
294
|
* `undefined` when it has one. See `jmesString`.
|
|
295
295
|
*/
|
|
296
296
|
export declare function jmesStringProblem(value: string): string | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* `test` applied to a field. On a plain field that is `test(field)`. On an
|
|
299
|
+
* array field it is a filter projection, which keeps the elements that pass
|
|
300
|
+
* and is truthy when any does; a plain comparison against `f[*].sub` would
|
|
301
|
+
* compare the projected LIST with a scalar, which is never equal.
|
|
302
|
+
*
|
|
303
|
+
* One `[*]` gives the designer's form (`JmesHelper.composeArrayJmesPathExpression`).
|
|
304
|
+
* Each further `[*]` nests one more filter, so the outer filter keeps an element
|
|
305
|
+
* only when its inner list has a match. The designer splits a nested path at its
|
|
306
|
+
* last `[*]` only (`a[*].b[?c=='x']`), which evaluates to `[[]]` for an element
|
|
307
|
+
* with no match: a non-empty, truthy list.
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* onField('ParentFolders[*].ID', (f) => `${f}=='INBOX'`) // ParentFolders[?ID=='INBOX']
|
|
311
|
+
* onField('tags[*]', (f) => `${f}=='urgent'`) // tags[?@=='urgent']
|
|
312
|
+
* onField('a[*].b[*].c', (f) => `${f}=='x'`) // a[?b[?c=='x']]
|
|
313
|
+
*/
|
|
314
|
+
export declare function onField(field: string, test: (lhs: string) => string): string;
|
|
297
315
|
/**
|
|
298
316
|
* The JMESPath condition for one filter — the grammar the designer emits,
|
|
299
317
|
* without the outer parentheses (the caller groups conditions).
|
|
@@ -376,11 +376,34 @@ function jmesLiteral(value) {
|
|
|
376
376
|
*/
|
|
377
377
|
function isOneOfJmes(field, values) {
|
|
378
378
|
const list = `\`[${values.map((v) => (typeof v === 'number' ? String(v) : `"${v}"`)).join(',')}]\``;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
379
|
+
return onField(field, (f) => `contains(${list}, ${f})`);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* `test` applied to a field. On a plain field that is `test(field)`. On an
|
|
383
|
+
* array field it is a filter projection, which keeps the elements that pass
|
|
384
|
+
* and is truthy when any does; a plain comparison against `f[*].sub` would
|
|
385
|
+
* compare the projected LIST with a scalar, which is never equal.
|
|
386
|
+
*
|
|
387
|
+
* One `[*]` gives the designer's form (`JmesHelper.composeArrayJmesPathExpression`).
|
|
388
|
+
* Each further `[*]` nests one more filter, so the outer filter keeps an element
|
|
389
|
+
* only when its inner list has a match. The designer splits a nested path at its
|
|
390
|
+
* last `[*]` only (`a[*].b[?c=='x']`), which evaluates to `[[]]` for an element
|
|
391
|
+
* with no match: a non-empty, truthy list.
|
|
392
|
+
*
|
|
393
|
+
* @example
|
|
394
|
+
* onField('ParentFolders[*].ID', (f) => `${f}=='INBOX'`) // ParentFolders[?ID=='INBOX']
|
|
395
|
+
* onField('tags[*]', (f) => `${f}=='urgent'`) // tags[?@=='urgent']
|
|
396
|
+
* onField('a[*].b[*].c', (f) => `${f}=='x'`) // a[?b[?c=='x']]
|
|
397
|
+
*/
|
|
398
|
+
export function onField(field, test) {
|
|
399
|
+
const parts = field.split(FIELD_ARRAY_MARKER);
|
|
400
|
+
if (parts.length === 1)
|
|
401
|
+
return test(field);
|
|
402
|
+
const path = (i) => parts[i].replace(/^\.+|\.+$/g, '') || '@';
|
|
403
|
+
let expr = test(path(parts.length - 1));
|
|
404
|
+
for (let i = parts.length - 2; i >= 1; i--)
|
|
405
|
+
expr = `${path(i)}[?${expr}]`;
|
|
406
|
+
return `${parts[0]}[?${expr}]`;
|
|
384
407
|
}
|
|
385
408
|
/**
|
|
386
409
|
* The JMESPath condition for one filter — the grammar the designer emits,
|
|
@@ -390,15 +413,16 @@ export function eventFilterJmes(read) {
|
|
|
390
413
|
const op = eventFilterOperator(read.operator);
|
|
391
414
|
if (op.kind === 'list')
|
|
392
415
|
return isOneOfJmes(read.field, read.value);
|
|
416
|
+
// Presence on an array field is refused (`eventFilterProblem`).
|
|
393
417
|
if (op.kind === 'presence')
|
|
394
418
|
return `not_null(${read.field}, '')${op.jmes}''`;
|
|
395
419
|
if (op.kind === 'boolean')
|
|
396
|
-
return
|
|
420
|
+
return onField(read.field, (f) => `${f}${op.jmes}\`true\``);
|
|
397
421
|
if (op.kind === 'function')
|
|
398
|
-
return `${op.jmes}(${
|
|
422
|
+
return onField(read.field, (f) => `${op.jmes}(${f},${jmesLiteral(read.value)})`);
|
|
399
423
|
if (isIsoDateString(read.value))
|
|
400
|
-
return `to_number(${
|
|
401
|
-
return
|
|
424
|
+
return onField(read.field, (f) => `to_number(${f})${op.jmes}to_number(${jmesString(read.value)})`);
|
|
425
|
+
return onField(read.field, (f) => `${f}${op.jmes}${jmesLiteral(read.value)}`);
|
|
402
426
|
}
|
|
403
427
|
/**
|
|
404
428
|
* The designer's tree leaf for one filter — `uiId` is the caller's (it is what keeps a rebuild byte-identical).
|
|
@@ -115,6 +115,9 @@ export declare function eventFilterReads(filters: unknown, nodeId: string): Arra
|
|
|
115
115
|
* apart is EVENT_FILTER_BACKSLASH. An absent or empty value (`''` or `[]`, so a
|
|
116
116
|
* `where` built from a possibly-empty list) writes no clause.
|
|
117
117
|
*
|
|
118
|
+
* An array parameter (`ParentFolders[*].ID`) is the filter projection
|
|
119
|
+
* `ParentFolders[?ID=='INBOX']`, as the designer writes it.
|
|
120
|
+
*
|
|
118
121
|
* Only event parameters fold into the expression; a query or path parameter is
|
|
119
122
|
* sent with the request that registers the subscription and is never read as
|
|
120
123
|
* JMESPath, so neither rule applies to it.
|
|
@@ -2,7 +2,7 @@ import { BindingRefusal, bindingMissingMessage, missingBindingLabels } from './b
|
|
|
2
2
|
import { ByoaRefusal, byoaUnverified } from './byoa.js';
|
|
3
3
|
import { CompileRefusal, LibraryRequiredRefusal } from './compile-refusal.js';
|
|
4
4
|
import { genericEventObjectRefusal } from './event-checks.js';
|
|
5
|
-
import { EVENT_FILTER_OPERATORS, eventFilterExpressionRefusal, eventFilterJmes, eventFilterProblem, eventFiltersNotArray, eventFilterTreeLeaf, jmesString, jmesStringProblem, readEventFilter, } from './event-filters.js';
|
|
5
|
+
import { EVENT_FILTER_OPERATORS, eventFilterExpressionRefusal, eventFilterJmes, eventFilterProblem, eventFiltersNotArray, eventFilterTreeLeaf, jmesString, onField, jmesStringProblem, readEventFilter, } from './event-filters.js';
|
|
6
6
|
import { isLookupToken, resolveEventWhere } from './lookups.js';
|
|
7
7
|
import { stableId } from './stable-id.js';
|
|
8
8
|
/** What `registry prepare` takes for an event subscription: its connector key and curated event name. */
|
|
@@ -180,6 +180,9 @@ export function eventFilterReads(filters, nodeId) {
|
|
|
180
180
|
* apart is EVENT_FILTER_BACKSLASH. An absent or empty value (`''` or `[]`, so a
|
|
181
181
|
* `where` built from a possibly-empty list) writes no clause.
|
|
182
182
|
*
|
|
183
|
+
* An array parameter (`ParentFolders[*].ID`) is the filter projection
|
|
184
|
+
* `ParentFolders[?ID=='INBOX']`, as the designer writes it.
|
|
185
|
+
*
|
|
183
186
|
* Only event parameters fold into the expression; a query or path parameter is
|
|
184
187
|
* sent with the request that registers the subscription and is never read as
|
|
185
188
|
* JMESPath, so neither rule applies to it.
|
|
@@ -197,6 +200,8 @@ export function eventScopeClauses(eventParameters, nodeId) {
|
|
|
197
200
|
const problem = jmesStringProblem(String(v));
|
|
198
201
|
if (problem)
|
|
199
202
|
throw new CompileRefusal('EVENT_FILTER_BACKSLASH', `event node "${nodeId}": \`where.${k}\`: ${problem}`);
|
|
203
|
+
if (k.includes('[*]'))
|
|
204
|
+
return onField(k, (f) => `${f}==${jmesString(String(v))}`);
|
|
200
205
|
return `${k} == ${jmesString(String(v))}`;
|
|
201
206
|
});
|
|
202
207
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.124.
|
|
3
|
+
"version": "6.124.8",
|
|
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",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"@types/node": "^22.7.0",
|
|
128
128
|
"esbuild": "^0.28.1"
|
|
129
129
|
},
|
|
130
|
-
"gitref": "
|
|
130
|
+
"gitref": "cf51d4b7c890c02a980223cc9a8d86c8964b203a"
|
|
131
131
|
}
|