@uipath/maestro-builder-sdk 6.97.1 → 6.97.2
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 +72 -71
- package/dist/api-members.md +330 -330
- package/dist/bpmn/bpmn-sdk.d.ts +43 -10
- package/dist/bpmn/bpmn-sdk.js +3 -3
- package/dist/bpmn/serialize.js +1 -1
- package/dist/bpmn-api.md +13 -7
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/bpmn/bpmn-sdk.d.ts
CHANGED
|
@@ -393,14 +393,47 @@ export interface BpmnFlow {
|
|
|
393
393
|
* return value), or `'inputOutput'` (a mutable flow variable).
|
|
394
394
|
*/
|
|
395
395
|
export type VarDirection = 'input' | 'inputOutput' | 'output';
|
|
396
|
+
/**
|
|
397
|
+
* A BPMN variable's `type` — the core {@link TypeDesc} spellings, plus the ones
|
|
398
|
+
* the product writes that are not core types.
|
|
399
|
+
*
|
|
400
|
+
* Studio Web stores a variable's `type` as free text, and the engine coerces a
|
|
401
|
+
* value only for the primitives it knows (`string`, `number`, `integer`,
|
|
402
|
+
* `boolean`, `null`); any other name is parsed generically. The designer fills it
|
|
403
|
+
* from the activity's manifest `outputType` when a task's output lands in a
|
|
404
|
+
* variable, so a real export carries names no core type covers:
|
|
405
|
+
*
|
|
406
|
+
* - `'null'` — the JSON-schema `null` type. Studio Web gives it to an output
|
|
407
|
+
* whose inferred schema is empty, such as a script task's `response`; the
|
|
408
|
+
* engine reads a value of this type as null.
|
|
409
|
+
* - `'custom'` — the manifest `outputType` of an activity whose output shape is
|
|
410
|
+
* per instance (timer and connector triggers, for example).
|
|
411
|
+
* - `` `${Namespace}.${Name}` `` — the manifest `outputType` of an activity with a
|
|
412
|
+
* named output shape: `'Orchestrator.RunJob'` for a start-job task,
|
|
413
|
+
* `'Actions.HITL'`, `'Maestro.ReceiveMessageEvent'`. The namespace is one the
|
|
414
|
+
* manifest's `outputType` values use (`A2A`, `Actions`, `Maestro`,
|
|
415
|
+
* `Orchestrator`), so a quoted descriptor such as `'types.string'` is still
|
|
416
|
+
* a type error.
|
|
417
|
+
* - `` `Collection{${T}}` `` — the output of a multi-instance (looped) task or
|
|
418
|
+
* sub-process: Studio Web wraps the per-iteration type `T`, so a looped string
|
|
419
|
+
* output is `'Collection{string}'`.
|
|
420
|
+
*
|
|
421
|
+
* `compile` writes each one back exactly as spelled; only the core types are
|
|
422
|
+
* mapped (`object`/`array`/`any` to `json`).
|
|
423
|
+
*
|
|
424
|
+
* ```ts
|
|
425
|
+
* .vars([{ id: 'job', type: 'Orchestrator.RunJob', elementId: 'startJob' }])
|
|
426
|
+
* ```
|
|
427
|
+
*/
|
|
428
|
+
export type BpmnVarType = TypeDesc | 'null' | 'custom' | `${'A2A' | 'Actions' | 'Maestro' | 'Orchestrator'}.${string}` | `Collection{${string}}`;
|
|
396
429
|
/** A declared variable in the built graph (`uipath:input` / `uipath:inputOutput` / `uipath:output`, by `direction`). */
|
|
397
430
|
export interface BpmnVarDecl {
|
|
398
431
|
/** The variable's id — what expressions read as `vars.<id>`. */
|
|
399
432
|
id: string;
|
|
400
433
|
/** Display name; `.var()`/`.input()`/`.output()` default it to the id. */
|
|
401
434
|
name: string;
|
|
402
|
-
/** The variable's `types.*` descriptor. */
|
|
403
|
-
type:
|
|
435
|
+
/** The variable's type — a `types.*` descriptor or another product spelling; see {@link BpmnVarType}. */
|
|
436
|
+
type: BpmnVarType;
|
|
404
437
|
/** How the variable crosses the process boundary — see {@link VarDirection}. */
|
|
405
438
|
direction: VarDirection;
|
|
406
439
|
/** Optional initial value. */
|
|
@@ -1125,8 +1158,8 @@ export interface SubProcessOpts extends ActivityOpts {
|
|
|
1125
1158
|
export interface VarEntry extends VarOpts {
|
|
1126
1159
|
/** The variable's id — what expressions read as `vars.<id>`. */
|
|
1127
1160
|
id: string;
|
|
1128
|
-
/** A `types.*` descriptor. */
|
|
1129
|
-
type:
|
|
1161
|
+
/** A `types.*` descriptor, or another product spelling — see {@link BpmnVarType}. */
|
|
1162
|
+
type: BpmnVarType;
|
|
1130
1163
|
/** Which declaration this is. Defaults to `'inputOutput'`, the `.var()` kind. */
|
|
1131
1164
|
direction?: VarDirection;
|
|
1132
1165
|
}
|
|
@@ -3428,29 +3461,29 @@ declare abstract class ScopeBuilder {
|
|
|
3428
3461
|
* A mutable flow variable (`uipath:inputOutput`). Root unless `elementId` scopes it.
|
|
3429
3462
|
*
|
|
3430
3463
|
* @param id - The variable's name.
|
|
3431
|
-
* @param type - A `types.*` descriptor.
|
|
3464
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
3432
3465
|
* @param opts - `direction`, a `default`, and `elementId` to scope it to one element.
|
|
3433
3466
|
* @returns This builder, so calls chain.
|
|
3434
3467
|
*/
|
|
3435
|
-
var(id: string, type:
|
|
3468
|
+
var(id: string, type: BpmnVarType, opts?: VarOpts): this;
|
|
3436
3469
|
/**
|
|
3437
3470
|
* A read-only entry input (`uipath:input`).
|
|
3438
3471
|
*
|
|
3439
3472
|
* @param id - The input's name.
|
|
3440
|
-
* @param type - A `types.*` descriptor.
|
|
3473
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
3441
3474
|
* @param opts - A `default`, and `elementId` to scope it to one element.
|
|
3442
3475
|
* @returns This builder, so calls chain.
|
|
3443
3476
|
*/
|
|
3444
|
-
input(id: string, type:
|
|
3477
|
+
input(id: string, type: BpmnVarType, opts?: VarOpts): this;
|
|
3445
3478
|
/**
|
|
3446
3479
|
* A return value (`uipath:output`).
|
|
3447
3480
|
*
|
|
3448
3481
|
* @param id - The output's name.
|
|
3449
|
-
* @param type - A `types.*` descriptor.
|
|
3482
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
3450
3483
|
* @param opts - A `default`, and `elementId` to scope it to one element.
|
|
3451
3484
|
* @returns This builder, so calls chain.
|
|
3452
3485
|
*/
|
|
3453
|
-
output(id: string, type:
|
|
3486
|
+
output(id: string, type: BpmnVarType, opts?: VarOpts): this;
|
|
3454
3487
|
/**
|
|
3455
3488
|
* Several declarations as one call — the array form of `.var()` / `.input()` /
|
|
3456
3489
|
* `.output()`.
|
package/dist/bpmn/bpmn-sdk.js
CHANGED
|
@@ -2420,7 +2420,7 @@ class ScopeBuilder {
|
|
|
2420
2420
|
* A mutable flow variable (`uipath:inputOutput`). Root unless `elementId` scopes it.
|
|
2421
2421
|
*
|
|
2422
2422
|
* @param id - The variable's name.
|
|
2423
|
-
* @param type - A `types.*` descriptor.
|
|
2423
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
2424
2424
|
* @param opts - `direction`, a `default`, and `elementId` to scope it to one element.
|
|
2425
2425
|
* @returns This builder, so calls chain.
|
|
2426
2426
|
*/
|
|
@@ -2431,7 +2431,7 @@ class ScopeBuilder {
|
|
|
2431
2431
|
* A read-only entry input (`uipath:input`).
|
|
2432
2432
|
*
|
|
2433
2433
|
* @param id - The input's name.
|
|
2434
|
-
* @param type - A `types.*` descriptor.
|
|
2434
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
2435
2435
|
* @param opts - A `default`, and `elementId` to scope it to one element.
|
|
2436
2436
|
* @returns This builder, so calls chain.
|
|
2437
2437
|
*/
|
|
@@ -2442,7 +2442,7 @@ class ScopeBuilder {
|
|
|
2442
2442
|
* A return value (`uipath:output`).
|
|
2443
2443
|
*
|
|
2444
2444
|
* @param id - The output's name.
|
|
2445
|
-
* @param type - A `types.*` descriptor.
|
|
2445
|
+
* @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
|
|
2446
2446
|
* @param opts - A `default`, and `elementId` to scope it to one element.
|
|
2447
2447
|
* @returns This builder, so calls chain.
|
|
2448
2448
|
*/
|
package/dist/bpmn/serialize.js
CHANGED
|
@@ -53,7 +53,7 @@ function mapType(t) {
|
|
|
53
53
|
case 'any':
|
|
54
54
|
return 'json';
|
|
55
55
|
default:
|
|
56
|
-
return t; //
|
|
56
|
+
return t; // a core primitive, or a product spelling (`null`, `Orchestrator.RunJob`, …) written back as-is
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
export async function serialize(built, opts = {}) {
|
package/dist/bpmn-api.md
CHANGED
|
@@ -94,9 +94,9 @@ The set of node/flow/variable methods common to the process root and every sub-p
|
|
|
94
94
|
- `ScopeBuilder.race(id: string, arms: ArmBodyFn[], opts?: SplitOpts): this` — An event-based gateway whose arms are written in place: each arm begins with something to wait for, the first to happen…
|
|
95
95
|
- `ScopeBuilder.flowIds(entries: PinnedFlowId[]): this` — Give the edges the nesting constructs IMPLY the ids you choose.
|
|
96
96
|
- `ScopeBuilder.sequenceFlow(source: string, target: string, opts?: FlowOpts): this` — A sequence flow from `source` to `target` (1-1 with `bpmn:sequenceFlow`).
|
|
97
|
-
- `ScopeBuilder.var(id: string, type:
|
|
98
|
-
- `ScopeBuilder.input(id: string, type:
|
|
99
|
-
- `ScopeBuilder.output(id: string, type:
|
|
97
|
+
- `ScopeBuilder.var(id: string, type: BpmnVarType, opts?: VarOpts): this` — A mutable flow variable (`uipath:inputOutput`).
|
|
98
|
+
- `ScopeBuilder.input(id: string, type: BpmnVarType, opts?: VarOpts): this` — A read-only entry input (`uipath:input`).
|
|
99
|
+
- `ScopeBuilder.output(id: string, type: BpmnVarType, opts?: VarOpts): this` — A return value (`uipath:output`).
|
|
100
100
|
- `ScopeBuilder.vars(entries: VarEntry[]): this` — Several declarations as one call — the array form of `.var()` / `.input()` / `.output()`.
|
|
101
101
|
|
|
102
102
|
### `SubProcessBuilder`
|
|
@@ -621,7 +621,7 @@ A declared variable in the built graph (`uipath:input` / `uipath:inputOutput` /
|
|
|
621
621
|
|
|
622
622
|
- `BpmnVarDecl.id: string` — The variable's id — what expressions read as `vars.<id>`.
|
|
623
623
|
- `BpmnVarDecl.name: string` — Display name; `.var()`/`.input()`/`.output()` default it to the id.
|
|
624
|
-
- `BpmnVarDecl.type:
|
|
624
|
+
- `BpmnVarDecl.type: BpmnVarType` — The variable's type — a `types.*` descriptor or another product spelling; see BpmnVarType.
|
|
625
625
|
- `BpmnVarDecl.direction: VarDirection` — How the variable crosses the process boundary — see VarDirection.
|
|
626
626
|
- `BpmnVarDecl.default?: unknown` — Optional initial value.
|
|
627
627
|
- `BpmnVarDecl.elementId?: string | null` — The element the declaration belongs to — see VarOpts.elementId.
|
|
@@ -781,9 +781,11 @@ One implied edge whose id is pinned — see ScopeBuilder.flowIds.
|
|
|
781
781
|
- `PinnedFlowId.target: string` — The element it flows into.
|
|
782
782
|
- `PinnedFlowId.id: string` — The id to give it instead of the derived `Flow_<source>_<target>`.
|
|
783
783
|
|
|
784
|
-
### `
|
|
784
|
+
### `BpmnVarType`
|
|
785
785
|
|
|
786
|
-
|
|
786
|
+
A BPMN variable's `type` — the core TypeDesc spellings, plus the ones the product writes that are not core types.
|
|
787
|
+
|
|
788
|
+
- `` type BpmnVarType = TypeDesc | 'null' | 'custom' | `${'A2A' | 'Actions' | 'Maestro' | 'Orchestrator'}.${string}` | `Collection{${string}}` ``
|
|
787
789
|
|
|
788
790
|
### `VarEntry`
|
|
789
791
|
|
|
@@ -792,7 +794,7 @@ One entry of ScopeBuilder.vars — a `.var()` / `.input()` / `.output()` call wr
|
|
|
792
794
|
Extends `VarOpts` — its fields and methods apply here too.
|
|
793
795
|
|
|
794
796
|
- `VarEntry.id: string` — The variable's id — what expressions read as `vars.<id>`.
|
|
795
|
-
- `VarEntry.type:
|
|
797
|
+
- `VarEntry.type: BpmnVarType` — A `types.*` descriptor, or another product spelling — see BpmnVarType.
|
|
796
798
|
- `VarEntry.direction?: VarDirection` — Which declaration this is.
|
|
797
799
|
|
|
798
800
|
### `MessageDecl`
|
|
@@ -986,6 +988,10 @@ The entity a `.dataService()` addresses: a tenant-level entity by name; a folder
|
|
|
986
988
|
|
|
987
989
|
- `type DataServiceEntity = string | EntityRef | DataServiceFolderEntity`
|
|
988
990
|
|
|
991
|
+
### `TypeDesc`
|
|
992
|
+
|
|
993
|
+
- `type TypeDesc = (typeof types)[keyof typeof types]`
|
|
994
|
+
|
|
989
995
|
### `RetrySpec`
|
|
990
996
|
|
|
991
997
|
Retry an activity that fails (`uipath:retry`).
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export type { CaseRule, CaseRuleInput, CaseRuleGrid, WhenExpression, CaseJsonPre
|
|
|
25
25
|
export { serialize as serializeCase } from './case/serialize.js';
|
|
26
26
|
export { decompile as decompileCase, decompileWithDiagnostics as decompileCaseWithDiagnostics } from './case/decompile.js';
|
|
27
27
|
export { bpmn } from './bpmn/bpmn-sdk.js';
|
|
28
|
-
export type { BuiltBpmn, BpmnNode, BpmnFlow, BpmnVarDecl, EventDef, GatewayKind, EventKind, LoopSpec, RetrySpec, ActivityOpts, HttpOpts, ActivityBodyFn, ArmBodyFn, HandlerOpts, ErrorHandlerOpts, TimerHandlerOpts, MessageHandlerOpts, ChooseArm, ChooseOpts, SplitOpts, JoinOpts, EventSubProcessOpts, FlowMode, } from './bpmn/bpmn-sdk.js';
|
|
28
|
+
export type { BuiltBpmn, BpmnNode, BpmnFlow, BpmnVarDecl, BpmnVarType, EventDef, GatewayKind, EventKind, LoopSpec, RetrySpec, ActivityOpts, HttpOpts, ActivityBodyFn, ArmBodyFn, HandlerOpts, ErrorHandlerOpts, TimerHandlerOpts, MessageHandlerOpts, ChooseArm, ChooseOpts, SplitOpts, JoinOpts, EventSubProcessOpts, FlowMode, } from './bpmn/bpmn-sdk.js';
|
|
29
29
|
export { PathBuilder, ActivityBuilder } from './bpmn/bpmn-sdk.js';
|
|
30
30
|
export { renderGraph as renderBpmnGraph, graphModel as bpmnGraphModel } from './bpmn/graph.js';
|
|
31
31
|
export type { GraphScope as BpmnGraphScope, GraphNode as BpmnGraphNode, GraphEdge as BpmnGraphEdge } from './bpmn/graph.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.97.
|
|
3
|
+
"version": "6.97.2",
|
|
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",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"@types/node": "^22.7.0",
|
|
115
115
|
"esbuild": "^0.28.1"
|
|
116
116
|
},
|
|
117
|
-
"gitref": "
|
|
117
|
+
"gitref": "9ad73714ac7ceb1c2b19bf4053ddd91cc122a5ed"
|
|
118
118
|
}
|