@uipath/maestro-builder-sdk 6.120.24 → 6.120.25
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 +55 -55
- package/dist/api-members.md +255 -254
- package/dist/bpmn/bpmn-sdk.d.ts +9 -0
- package/dist/bpmn/check.js +2 -1
- package/dist/bpmn/decompile.js +9 -0
- package/dist/bpmn/serialize.js +1 -1
- package/dist/bpmn-api.md +1 -0
- package/package.json +2 -2
package/dist/bpmn/bpmn-sdk.d.ts
CHANGED
|
@@ -950,6 +950,15 @@ export interface RetrySpec {
|
|
|
950
950
|
* multiplies it by {@link RetrySpec.exponentialBase} each time.
|
|
951
951
|
*/
|
|
952
952
|
backoffType?: 'static' | 'exponential';
|
|
953
|
+
/**
|
|
954
|
+
* The `retryBackoffType` attribute exactly as an imported file spells it, for a
|
|
955
|
+
* spelling `backoffType` does not write (`'Static'` / `'Exponential'`). Real
|
|
956
|
+
* exports also carry `'exponential'`, `'Linear'` and `'fixed'`; decompile fills
|
|
957
|
+
* this field with such a value so compile writes it back unchanged instead of
|
|
958
|
+
* turning it into `'Static'`. When set, it wins over `backoffType`. Authoring
|
|
959
|
+
* code should use `backoffType`.
|
|
960
|
+
*/
|
|
961
|
+
backoffTypeAsWritten?: string;
|
|
953
962
|
/** Multiplier for `'exponential'` backoff, e.g. `2` for 1s → 2s → 4s. */
|
|
954
963
|
exponentialBase?: number;
|
|
955
964
|
/** Retry every failure, not only the ones the platform marks retryable. */
|
package/dist/bpmn/check.js
CHANGED
|
@@ -1298,7 +1298,8 @@ function checkActivityFields(n, diags) {
|
|
|
1298
1298
|
where: n.id,
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
|
-
|
|
1301
|
+
// A carried product spelling (`backoffTypeAsWritten`) is not judged here: the warning is about `backoffType`.
|
|
1302
|
+
if (retry.exponentialBase !== undefined && retry.backoffType !== 'exponential' && retry.backoffTypeAsWritten === undefined)
|
|
1302
1303
|
diags.push({
|
|
1303
1304
|
level: 'warning',
|
|
1304
1305
|
code: 'RETRY_BASE_WITHOUT_EXPONENTIAL',
|
package/dist/bpmn/decompile.js
CHANGED
|
@@ -637,6 +637,15 @@ function emitRetry(retry) {
|
|
|
637
637
|
['maxRetries', String(count)],
|
|
638
638
|
['backoff', retry.retryBackoff ? tsText(retry.retryBackoff) : undefined],
|
|
639
639
|
['backoffType', retry.retryBackoffType === 'Exponential' ? tsText('exponential') : undefined],
|
|
640
|
+
// Any spelling compile does not write for `backoffType` (`exponential`, `Linear`, `fixed`
|
|
641
|
+
// are all in real exports) is carried as written; reading it as the static default would
|
|
642
|
+
// change the policy on a no-edit round trip.
|
|
643
|
+
[
|
|
644
|
+
'backoffTypeAsWritten',
|
|
645
|
+
retry.retryBackoffType !== undefined && retry.retryBackoffType !== 'Exponential' && retry.retryBackoffType !== 'Static'
|
|
646
|
+
? tsText(String(retry.retryBackoffType))
|
|
647
|
+
: undefined,
|
|
648
|
+
],
|
|
640
649
|
['exponentialBase', retry.exponentialBase !== undefined ? String(Number(retry.exponentialBase)) : undefined],
|
|
641
650
|
['allErrors', retry.retryAllErrors === 'true' || retry.retryAllErrors === true ? 'true' : undefined],
|
|
642
651
|
['maxDuration', retry.maxDuration ? tsText(retry.maxDuration) : undefined],
|
package/dist/bpmn/serialize.js
CHANGED
|
@@ -1324,7 +1324,7 @@ export function folderCompanionKeys(built, sink) {
|
|
|
1324
1324
|
function buildRetryExt(ctx, retry) {
|
|
1325
1325
|
const props = {
|
|
1326
1326
|
maxRetryCount: String(retry.maxRetries),
|
|
1327
|
-
retryBackoffType: retry.backoffType === 'exponential' ? 'Exponential' : 'Static',
|
|
1327
|
+
retryBackoffType: retry.backoffTypeAsWritten ?? (retry.backoffType === 'exponential' ? 'Exponential' : 'Static'),
|
|
1328
1328
|
};
|
|
1329
1329
|
if (retry.backoff !== undefined)
|
|
1330
1330
|
props.retryBackoff = retry.backoff;
|
package/dist/bpmn-api.md
CHANGED
|
@@ -1002,6 +1002,7 @@ Retry an activity that fails (`uipath:retry`).
|
|
|
1002
1002
|
- `RetrySpec.maxRetries: number` — How many times to retry AFTER the first attempt — so `3` means up to four runs in total.
|
|
1003
1003
|
- `RetrySpec.backoff?: string` — Wait this long before retrying, as an ISO-8601 duration (`'PT30S'`, `'PT1M'`, `'P1DT12H'`).
|
|
1004
1004
|
- `RetrySpec.backoffType?: 'static' | 'exponential'` — `'static'` (default) waits `backoff` before every retry; `'exponential'` multiplies it by RetrySpec.exponentialBase each…
|
|
1005
|
+
- `RetrySpec.backoffTypeAsWritten?: string` — The `retryBackoffType` attribute exactly as an imported file spells it, for a spelling `backoffType` does not write…
|
|
1005
1006
|
- `RetrySpec.exponentialBase?: number` — Multiplier for `'exponential'` backoff, e.g. `2` for 1s → 2s → 4s.
|
|
1006
1007
|
- `RetrySpec.allErrors?: boolean` — Retry every failure, not only the ones the platform marks retryable.
|
|
1007
1008
|
- `RetrySpec.maxDuration?: string` — Give up after this much total elapsed time, as an ISO-8601 duration.
|
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.25",
|
|
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": "24ba858ca7c1b24d2f464a901824441668983a52"
|
|
128
128
|
}
|