@uipath/maestro-builder-sdk 6.50.2 → 6.50.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.
@@ -344,7 +344,9 @@ function emitExitWhen(out, depth, condition, refs, selectNextStage) {
344
344
  const options = opts([
345
345
  ['displayName', displayName],
346
346
  ['marksStageComplete', condition.marksStageComplete !== undefined ? boolLit(condition.marksStageComplete) : undefined],
347
- ['type', condition.type !== undefined ? tsLiteral(condition.type) : undefined],
347
+ // `exit-only` is the serializer's default type, so it is left out of the
348
+ // source; a plan with no `type` (an older SDK wrote none) reads the same way.
349
+ ['type', condition.type !== undefined && condition.type !== 'exit-only' ? tsLiteral(condition.type) : undefined],
348
350
  ['exitToStage', exitToStage],
349
351
  ['selectNextStage', selectNextStage],
350
352
  ]);
@@ -1867,8 +1867,11 @@ function emitExit(c, seed, ownerId, label, ids, resolver) {
1867
1867
  };
1868
1868
  if (c.marksStageComplete !== undefined)
1869
1869
  out.marksStageComplete = c.marksStageComplete;
1870
- if (c.type)
1871
- out.type = c.type;
1870
+ // The Designer writes a type on EVERY stage exit, `exit-only` when nothing
1871
+ // else was chosen (8 of the Designer-saved CMGoldenExpense plan's 10 exits;
1872
+ // the case-schema's in-memory `CaseManagementNodeExitRuleCondition.type` is
1873
+ // required and the platform fills it with `conditionType ?? "exit-only"`).
1874
+ out.type = c.type ?? 'exit-only';
1872
1875
  if (c.exitToStage) {
1873
1876
  const sid = resolver.stageIdByLabel.get(c.exitToStage);
1874
1877
  if (!sid)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.50.2",
3
+ "version": "6.50.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",
@@ -92,5 +92,5 @@
92
92
  "@types/node": "^22.7.0",
93
93
  "esbuild": "^0.28.1"
94
94
  },
95
- "gitref": "a0ed06f0dddc98064867948988de27e22e280501"
95
+ "gitref": "0032ab42cb514937398fedb0349f2a550d483a83"
96
96
  }