@uipath/maestro-builder-sdk 6.82.6 → 6.82.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 CHANGED
@@ -322,7 +322,7 @@ could hand you spans for a version you do not have.
322
322
  | `CaseAppConfig` | interface | `dist/case/case-sdk.d.ts:1025-1037` | Supporting types | Typed configuration for the generated Case App. |
323
323
  | `CaseAppDetailValue` | type | `dist/case/case-sdk.d.ts:1014-1015` | Supporting types | A value displayed in one Case App section. |
324
324
  | `CaseAppSection` | interface | `dist/case/case-sdk.d.ts:1016-1024` | Supporting types | One summary section in the generated Case App. |
325
- | `CaseBuilder` | class | `dist/case/case-sdk.d.ts:1736-2025` | Builders | 18 member(s) |
325
+ | `CaseBuilder` | class | `dist/case/case-sdk.d.ts:1762-2051` | Builders | 18 member(s) |
326
326
  | `CaseConnectorOpts` | interface | `dist/case/case-sdk.d.ts:490-513` | Option shapes | TaskBuilder.connector's options: the Flow `connector()` options, plus the fields a decompiled task carries. |
327
327
  | `CaseDocumentExtractionSpec` | interface | `dist/case/case-sdk.d.ts:586-631` | Supporting types | A document-extraction task's IXP deployment and inputs (`.documentExtraction()`). |
328
328
  | `CaseEventFilter` | type | `dist/core/actions.d.ts:979-1003` | Supporting types | A Case event filter: an EventFilter, or a text test or equality whose value is computed at runtime from a Case… |
@@ -330,7 +330,7 @@ could hand you spans for a version you do not have.
330
330
  | `CaseHttpRequestSpec` | interface | `dist/case/case-sdk.d.ts:534-576` | Supporting types | An HTTP request task's request (`.httpRequest()`). |
331
331
  | `CaseLayout` | interface | `dist/case/case-sdk.d.ts:1059-1070` | Supporting types | Optional Case designer layout, keyed by author-level stage and trigger names. |
332
332
  | `CaseNodeLayout` | interface | `dist/case/case-sdk.d.ts:1038-1058` | Supporting types | Designer-only fields the shipped Case transformer moves into `layout.nodes[id]`. |
333
- | `casePlan` | function | `dist/case/case-sdk.d.ts:2026-2032` | Case authoring | Start building a case plan with the given id. |
333
+ | `casePlan` | function | `dist/case/case-sdk.d.ts:2052-2058` | Case authoring | Start building a case plan with the given id. |
334
334
  | `CaseRule` | interface | `dist/case/case-sdk.d.ts:82-85` | Supporting types | A single DNF rule. |
335
335
  | `CaseRuleGrid` | type | `dist/case/case-sdk.d.ts:146-147` | Supporting types | One rule, one AND-group, or a complete OR-of-AND condition grid. |
336
336
  | `CaseRuleInput` | type | `dist/case/case-sdk.d.ts:144-145` | Supporting types | A concrete rule or a pure expression gate resolved by its receiving slot. |
@@ -377,9 +377,9 @@ could hand you spans for a version you do not have.
377
377
  | `SelectNextStageSpec` | interface | `dist/case/case-sdk.d.ts:369-387` | Supporting types | Data Fabric entity used by the Case runtime to deliver a person's next-stage selection. |
378
378
  | `SlaOpts` | interface | `dist/case/case-sdk.d.ts:217-236` | Option shapes | 5 field(s) |
379
379
  | `SlaUnit` | type | `dist/case/case-sdk.d.ts:148-149` | Supporting types | SLA deadline unit. |
380
- | `StageBuilder` | class | `dist/case/case-sdk.d.ts:1658-1735` | Builders | 6 member(s) |
380
+ | `StageBuilder` | class | `dist/case/case-sdk.d.ts:1684-1761` | Builders | 6 member(s) |
381
381
  | `StageExitType` | type | `dist/case/case-sdk.d.ts:368` | Supporting types | |
382
- | `TaskBuilder` | class | `dist/case/case-sdk.d.ts:1173-1657` | Builders | 29 member(s) |
382
+ | `TaskBuilder` | class | `dist/case/case-sdk.d.ts:1173-1683` | Builders | 29 member(s) |
383
383
  | `TaskInputBinding` | interface | `dist/case/case-sdk.d.ts:874-885` | Supporting types | A task input binding: a resource input parameter set to a literal or a `=`-expression. |
384
384
  | `TaskKind` | type | `dist/case/case-sdk.d.ts:426` | Supporting types | |
385
385
  | `taskOutput` | function | `dist/case/case-sdk.d.ts:96-124` | Case authoring | Read another task's output in place, in a `=js:` expression or a task input: `=vars.<id>` once compiled, where `<id>` is… |
@@ -64,7 +64,7 @@ not find it either.
64
64
  | `aliases` | property | `LookupSpec` | `dist/core/lookups.d.ts:31-32` |
65
65
  | `allErrors` | property | `RetrySpec` | `dist/bpmn/bpmn-sdk.d.ts:843-844` |
66
66
  | `allowAdhocOptionalStageTasks` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1109-1110` |
67
- | `allowAdhocTasks` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1845-1852` |
67
+ | `allowAdhocTasks` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1871-1878` |
68
68
  | `apiWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:395-398` |
69
69
  | `apiWorkflow` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1255-1264` |
70
70
  | `app` | property | `EscalationRef` | `dist/core/actions.d.ts:731-758` |
@@ -115,9 +115,9 @@ not find it either.
115
115
  | `breakEnabled` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:416-417` |
116
116
  | `breakEnabled` | property | `LoopOptions` | `dist/flow-sdk.d.ts:403-407` |
117
117
  | `build` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3713-3718` |
118
- | `build` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2019-2024` |
118
+ | `build` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2045-2050` |
119
119
  | `build` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1623-1629` |
120
- | `businessEvent` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2008-2018` |
120
+ | `businessEvent` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2034-2044` |
121
121
  | `businessEvent` | property | `RuleOpts` | `dist/case/case-sdk.d.ts:71-78` |
122
122
  | `businessEvents` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1115-1116` |
123
123
  | `businessRule` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:910-911` |
@@ -130,7 +130,7 @@ not find it either.
130
130
  | `callContext` | property | `VoiceAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:142-147` |
131
131
  | `cancelActivity` | property | `BoundaryOpts` | `dist/bpmn/bpmn-sdk.d.ts:784-785` |
132
132
  | `carriedFields` | property | `CaseConnectorOpts` | `dist/case/case-sdk.d.ts:495-512` |
133
- | `caseApp` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1818-1844` |
133
+ | `caseApp` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1844-1870` |
134
134
  | `caseAppConfig` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1108` |
135
135
  | `caseAppEnabled` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1107` |
136
136
  | `caseExit` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1113` |
@@ -149,7 +149,7 @@ not find it either.
149
149
  | `collection` | property | `TransformInputs` | `dist/nodes/transform/flow/spec.d.ts:85-95` |
150
150
  | `color` | property | `StickyNote` | `dist/flow-sdk.d.ts:658-659` |
151
151
  | `colSpan` | property | `FormFieldSettings` | `dist/core/actions.d.ts:187-188` |
152
- | `completeWhen` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1988-1998` |
152
+ | `completeWhen` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2014-2024` |
153
153
  | `completion` | property | `LoopSpec` | `dist/bpmn/bpmn-sdk.d.ts:87-88` |
154
154
  | `completionCondition` | property | `LoopOptions` | `dist/flow-sdk.d.ts:398-402` |
155
155
  | `condition` | property | `BpmnFlow` | `dist/bpmn/bpmn-sdk.d.ts:374-375` |
@@ -252,7 +252,7 @@ not find it either.
252
252
  | `description` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:929` |
253
253
  | `description` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:251` |
254
254
  | `description` | property | `BusinessEventOpts` | `dist/case/case-sdk.d.ts:1073-1074` |
255
- | `description` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1803-1809` |
255
+ | `description` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1829-1835` |
256
256
  | `description` | property | `CaseVarDecl` | `dist/case/case-sdk.d.ts:992-997` |
257
257
  | `description` | property | `CaseVarSpec` | `dist/case/case-sdk.d.ts:980-981` |
258
258
  | `description` | property | `ClientSideToolRef` | `dist/core/actions.d.ts:503-504` |
@@ -271,7 +271,7 @@ not find it either.
271
271
  | `description` | property | `ProcessToolRef` | `dist/core/actions.d.ts:657-662` |
272
272
  | `description` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:486` |
273
273
  | `description` | property | `ResolvedEventTriggerOpts` | `dist/case/case-sdk.d.ts:337-338` |
274
- | `description` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1668-1674` |
274
+ | `description` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1694-1700` |
275
275
  | `description` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1538-1544` |
276
276
  | `description` | property | `TimerTriggerOpts` | `dist/case/case-sdk.d.ts:276` |
277
277
  | `description` | property | `TypedOutputRow` | `dist/bpmn/typed-node.d.ts:322-323` |
@@ -344,8 +344,8 @@ not find it either.
344
344
  | `entryPointId` | property | `ProcessMetadata` | `dist/bpmn/bpmn-sdk.d.ts:558-570` |
345
345
  | `entryPointId` | property | `StartOpts` | `dist/bpmn/bpmn-sdk.d.ts:715-723` |
346
346
  | `entryPoints` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:728-729` |
347
- | `entryWhen` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1708-1715` |
348
- | `entryWhen` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1645-1654` |
347
+ | `entryWhen` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1734-1741` |
348
+ | `entryWhen` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1671-1680` |
349
349
  | `err` | method | `StepList` | `dist/flow-sdk.d.ts:752-777` |
350
350
  | `error` | property | `BoundaryOpts` | `dist/bpmn/bpmn-sdk.d.ts:790-794` |
351
351
  | `error` | property | `EndOpts` | `dist/bpmn/bpmn-sdk.d.ts:736-746` |
@@ -377,7 +377,7 @@ not find it either.
377
377
  | `every` | property | `ScheduledInputs` | `dist/nodes/trigger/flow/spec.d.ts:30-41` |
378
378
  | `every` | property | `TimerTriggerOpts` | `dist/case/case-sdk.d.ts:266-274` |
379
379
  | `exception` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:939` |
380
- | `exceptionStage` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1980-1987` |
380
+ | `exceptionStage` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2006-2013` |
381
381
  | `exchangeId` | property | `ConversationalAgentSettings` | `dist/nodes/agent/flow/spec.d.ts:31-32` |
382
382
  | `exchangeId` | property | `SendMessageInputs` | `dist/nodes/conversation/flow/spec.d.ts:14-19` |
383
383
  | `exchangeLimit` | property | `ConversationContextInputs` | `dist/nodes/conversation/flow/spec.d.ts:40-43` |
@@ -387,7 +387,7 @@ not find it either.
387
387
  | `exit` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:944` |
388
388
  | `exitToStage` | property | `BuiltExitCondition` | `dist/case/case-sdk.d.ts:398-412` |
389
389
  | `exitToStage` | property | `ExitOpts` | `dist/case/case-sdk.d.ts:1152-1166` |
390
- | `exitWhen` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1716-1723` |
390
+ | `exitWhen` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1742-1749` |
391
391
  | `exponentialBase` | property | `RetrySpec` | `dist/bpmn/bpmn-sdk.d.ts:841-842` |
392
392
  | `exposeError` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:379-385` |
393
393
  | `expression` | property | `BuiltSla` | `dist/case/case-sdk.d.ts:242-243` |
@@ -534,7 +534,7 @@ not find it either.
534
534
  | `id` | property | `SwitchArm` | `dist/flow-sdk.d.ts:212-218` |
535
535
  | `id` | property | `VarEntry` | `dist/bpmn/bpmn-sdk.d.ts:1032-1033` |
536
536
  | `identifier` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1105` |
537
- | `identifier` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1810-1817` |
537
+ | `identifier` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1836-1843` |
538
538
  | `identifierType` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1106` |
539
539
  | `implied` | property | `BpmnFlow` | `dist/bpmn/bpmn-sdk.d.ts:376-383` |
540
540
  | `impliedFlowIds` | property | `SugarRegistry` | `dist/bpmn/bpmn-sdk.d.ts:2053-2054` |
@@ -544,7 +544,7 @@ not find it either.
544
544
  | `inlineAgent` | property | `FlowActionSpecs` | `dist/nodes/agent/flow/spec.d.ts:443-446` |
545
545
  | `inOuts` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:287-288` |
546
546
  | `inOuts` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:311-312` |
547
- | `input` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1874-1920` |
547
+ | `input` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1900-1946` |
548
548
  | `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1564-1576` |
549
549
  | `input` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1431-1432` |
550
550
  | `input` | property | `OrchestratorOpts` | `dist/bpmn/bpmn-sdk.d.ts:1297-1298` |
@@ -573,7 +573,7 @@ not find it either.
573
573
  | `inputs` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:47-52` |
574
574
  | `inputs` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:919-933` |
575
575
  | `inputs` | property | `SubflowSpec` | `dist/flow-sdk.d.ts:57-58` |
576
- | `inputs` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1552-1568` |
576
+ | `inputs` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1552-1587` |
577
577
  | `inputs` | property | `VoiceAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:136-141` |
578
578
  | `inputSchema` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1685-1693` |
579
579
  | `inputSchema` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:245-253` |
@@ -648,7 +648,7 @@ not find it either.
648
648
  | `lanes` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:942` |
649
649
  | `layout` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1119-1120` |
650
650
  | `layout` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:718-719` |
651
- | `layout` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1853-1873` |
651
+ | `layout` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1879-1899` |
652
652
  | `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1284-1310` |
653
653
  | `legacyCompleted` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:386-418` |
654
654
  | `limit` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:101-106` |
@@ -744,7 +744,7 @@ not find it either.
744
744
  | `name` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:905-906` |
745
745
  | `name` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:249-250` |
746
746
  | `name` | property | `CarriedConnectorField` | `dist/core/carried-connector-fields.d.ts:41-42` |
747
- | `name` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1755-1761` |
747
+ | `name` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1781-1787` |
748
748
  | `name` | property | `CaseVarDecl` | `dist/case/case-sdk.d.ts:986` |
749
749
  | `name` | property | `CatchOpts` | `dist/bpmn/bpmn-sdk.d.ts:755-756` |
750
750
  | `name` | property | `ChooseOpts` | `dist/bpmn/bpmn-sdk.d.ts:1920-1921` |
@@ -856,7 +856,7 @@ not find it either.
856
856
  | `outcomes` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:345-359` |
857
857
  | `outcomes` | property | `HumanTaskForm` | `dist/bpmn/human-task-form.d.ts:87-91` |
858
858
  | `outcomes` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:313-314` |
859
- | `output` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1921-1929` |
859
+ | `output` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1947-1955` |
860
860
  | `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1577-1612` |
861
861
  | `output` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:97` |
862
862
  | `output` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3278-3286` |
@@ -881,7 +881,7 @@ not find it either.
881
881
  | `outputs` | property | `ReceiveMessageOpts` | `dist/bpmn/bpmn-sdk.d.ts:1491-1506` |
882
882
  | `outputs` | property | `ResolvedEventTriggerOpts` | `dist/case/case-sdk.d.ts:339-343` |
883
883
  | `outputs` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:934-948` |
884
- | `outputs` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1569-1644` |
884
+ | `outputs` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1588-1670` |
885
885
  | `outputVar` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1658-1659` |
886
886
  | `outputVar` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1572-1573` |
887
887
  | `outputVar` | property | `DataServiceOpts` | `dist/bpmn/bpmn-sdk.d.ts:1162-1163` |
@@ -984,7 +984,7 @@ not find it either.
984
984
  | `required` | property | `PlatformActionSchemaArg` | `dist/nodes/hitl/flow/spec.d.ts:298-299` |
985
985
  | `required` | property | `RegistryContextField` | `dist/bpmn/typed-node.d.ts:26` |
986
986
  | `required` | property | `RegistryInputField` | `dist/bpmn/typed-node.d.ts:67` |
987
- | `required` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1675-1681` |
987
+ | `required` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1701-1707` |
988
988
  | `required` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1516-1522` |
989
989
  | `required` | property | `TaskInputBinding` | `dist/case/case-sdk.d.ts:881-882` |
990
990
  | `required` | property | `TypedContextRow` | `dist/bpmn/typed-node.d.ts:229-230` |
@@ -1061,7 +1061,7 @@ not find it either.
1061
1061
  | `schemas` | property | `BuiltBpmn` | `dist/bpmn/bpmn-sdk.d.ts:533-534` |
1062
1062
  | `schemaVersion` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3605-3634` |
1063
1063
  | `schemaVersion` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:702-708` |
1064
- | `schemaVersion` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1773-1802` |
1064
+ | `schemaVersion` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1799-1828` |
1065
1065
  | `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1443-1482` |
1066
1066
  | `scope` | property | `EscalationRecipient` | `dist/case/case-sdk.d.ts:154` |
1067
1067
  | `scopes` | property | `GuardrailSelector` | `dist/core/actions.d.ts:292` |
@@ -1103,9 +1103,9 @@ not find it either.
1103
1103
  | `skipCondition` | property | `QueueItemOpts` | `dist/bpmn/bpmn-sdk.d.ts:1379-1380` |
1104
1104
  | `skipCondition` | property | `ReceiveMessageOpts` | `dist/bpmn/bpmn-sdk.d.ts:1489-1490` |
1105
1105
  | `skipWhen` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1545-1551` |
1106
- | `sla` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1999-2007` |
1106
+ | `sla` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2025-2033` |
1107
1107
  | `sla` | property | `RuleOpts` | `dist/case/case-sdk.d.ts:59-64` |
1108
- | `sla` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1724-1732` |
1108
+ | `sla` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1750-1758` |
1109
1109
  | `slaRules` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1114` |
1110
1110
  | `slaRules` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:945` |
1111
1111
  | `slug` | property | `McpToolRef` | `dist/core/actions.d.ts:464-465` |
@@ -1127,7 +1127,7 @@ not find it either.
1127
1127
  | `sourceTrigger` | property | `CaseVarDecl` | `dist/case/case-sdk.d.ts:1005-1012` |
1128
1128
  | `spec` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1643-1657` |
1129
1129
  | `splitPages` | property | `DocumentClassifyInputs` | `dist/nodes/document/flow/spec.d.ts:16-17` |
1130
- | `stage` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1972-1979` |
1130
+ | `stage` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1998-2005` |
1131
1131
  | `stage` | property | `RuleOpts` | `dist/case/case-sdk.d.ts:13-24` |
1132
1132
  | `stages` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1112` |
1133
1133
  | `stages` | property | `CaseLayout` | `dist/case/case-sdk.d.ts:1066-1067` |
@@ -1181,7 +1181,7 @@ not find it either.
1181
1181
  | `target` | property | `TypedInputRow` | `dist/bpmn/typed-node.d.ts:248-249` |
1182
1182
  | `target` | property | `TypedOutputRow` | `dist/bpmn/typed-node.d.ts:324-329` |
1183
1183
  | `task` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2405-2413` |
1184
- | `task` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1682-1707` |
1184
+ | `task` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1708-1733` |
1185
1185
  | `tasks` | property | `RuleOpts` | `dist/case/case-sdk.d.ts:36-51` |
1186
1186
  | `taskTitle` | property | `EscalationRef` | `dist/core/actions.d.ts:767-768` |
1187
1187
  | `taxonomy` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:97-98` |
@@ -1212,7 +1212,7 @@ not find it either.
1212
1212
  | `transformation` | property | `FieldMapping` | `dist/nodes/transform/flow/spec.d.ts:30-31` |
1213
1213
  | `trigger` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:687-688` |
1214
1214
  | `trigger` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:713-715` |
1215
- | `trigger` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1963-1971` |
1215
+ | `trigger` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1989-1997` |
1216
1216
  | `trigger` | property | `EscalationOpts` | `dist/case/case-sdk.d.ts:161-162` |
1217
1217
  | `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1337-1357` |
1218
1218
  | `trigger` | property | `StartOpts` | `dist/bpmn/bpmn-sdk.d.ts:655-702` |
@@ -1286,7 +1286,7 @@ not find it either.
1286
1286
  | `value` | property | `TypedContextRow` | `dist/bpmn/typed-node.d.ts:219-220` |
1287
1287
  | `value` | property | `TypedInputRow` | `dist/bpmn/typed-node.d.ts:250-251` |
1288
1288
  | `values` | property | `DataFabricCreateInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:143-148` |
1289
- | `var` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1930-1962` |
1289
+ | `var` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1956-1988` |
1290
1290
  | `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1613-1622` |
1291
1291
  | `var` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3260-3268` |
1292
1292
  | `var` | property | `TaskOutputBinding` | `dist/case/case-sdk.d.ts:891-892` |
@@ -1306,7 +1306,7 @@ not find it either.
1306
1306
  | `varSchema` | property | `TypedOutputRow` | `dist/bpmn/typed-node.d.ts:302-316` |
1307
1307
  | `version` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1097-1103` |
1308
1308
  | `version` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:701` |
1309
- | `version` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1762-1772` |
1309
+ | `version` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1788-1798` |
1310
1310
  | `version` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1526-1527` |
1311
1311
  | `version` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:76` |
1312
1312
  | `version` | property | `ConnectorOpts` | `dist/core/actions.d.ts:16-17` |
@@ -1557,6 +1557,25 @@ declare class TaskBuilder {
1557
1557
  * the parameter's flag and default value on the row, as the Case Designer
1558
1558
  * does: `{ value: 'hi', required: false, default: 'Empty' }`.
1559
1559
  *
1560
+ * A literal wholly wrapped in one pair of quotes loses them, the way `uip
1561
+ * maestro case sdd convert` reads an SDD cell and `{ assign }` reads its
1562
+ * value, so an SDD cell can be copied as written:
1563
+ *
1564
+ * `'"literal-seed"'` and `'literal-seed'` both store `literal-seed`. To send
1565
+ * the quotes themselves, wrap the value in one more pair of the other quote;
1566
+ * decompile writes that spelling for a stored value that looks quoted. A `=`
1567
+ * expression is never changed.
1568
+ *
1569
+ * @example
1570
+ * **Copy an SDD literal cell, and keep a literal's quotes**
1571
+ * ```ts
1572
+ * casePlan('echo').stage('Echo', (s) => s.task('Echo', (t) =>
1573
+ * t.apiWorkflow('Echo', { folder: 'Shared' }).inputs({
1574
+ * APIInput1: '"literal-seed"', // stores literal-seed
1575
+ * APIInput2: `'"literal-seed"'`, // stores "literal-seed", quotes kept
1576
+ * })))
1577
+ * ```
1578
+ *
1560
1579
  * @param shape - Input parameter names to literals, case-variable references, or `{ value, type, required, default }`.
1561
1580
  * @returns This builder, so calls chain.
1562
1581
  */
@@ -1600,7 +1619,8 @@ declare class TaskBuilder {
1600
1619
  * written as Studio Web saves one: `custom: true`, `elementId: 'root'`, no
1601
1620
  * `id`. The SDD notation `=metadata.<field>` reads nothing outside `=js:`, so it
1602
1621
  * is written as `=js:metadata.<field>`. An SDD literal copied with its quotes
1603
- * (`{ assign: '"literal-assigned"' }`) loses them, as `sdd convert` reads it.
1622
+ * (`{ assign: '"literal-assigned"' }`) loses them, as `sdd convert` reads it;
1623
+ * wrap it in one more pair of the other quote to keep them (see `.inputs()`).
1604
1624
  * A custom output sees only the outputs listed before it on the same task:
1605
1625
  * outputs are evaluated in order, so it cannot read its own variable or a
1606
1626
  * later output's (`check` reports `OUTPUT_SELF_REFERENCE` /
@@ -1616,6 +1636,12 @@ declare class TaskBuilder {
1616
1636
  * extract (`source`) is refused on a task kind with no result to read
1617
1637
  * (`TASK_OUTPUTS_UNSUPPORTED`).
1618
1638
  *
1639
+ * To write a form field straight into a named case variable, as an SDD row
1640
+ * `Action -> apDecision` declares, do not add a custom output: set the
1641
+ * field's `value`, `.action({ outputs: [{ name: 'Action', value: 'apDecision' }] })`.
1642
+ * A custom output is a second row; the field would still write its default
1643
+ * variable (`action`), and `uip maestro case validate --sdd` reports that.
1644
+ *
1619
1645
  * On a connector or wait-for-connector task, a field is read from the
1620
1646
  * operation's (or event's) `response`: an SDD row `app_id -> postAppId` is
1621
1647
  * `.outputs({ postAppId: '=response.app_id' })`. Each extract is written after
@@ -28,6 +28,7 @@ import { CASE_FORMAT_PROFILE, CASE_SCHEMA_VERSIONS, recordAuthoredCaseVersion }
28
28
  import { schemaVersionRefusal } from '../schema-version.js';
29
29
  import { CompileRefusal } from '../core/compile-refusal.js';
30
30
  import { isConnectorPlaceholder } from './connector-placeholder.js';
31
+ import { unquoteLiteral } from './literal.js';
31
32
  export { preserveCaseJson } from './preserve.js';
32
33
  export { CaseBuildError } from './case-expr-check.js';
33
34
  /**
@@ -675,6 +676,25 @@ class TaskBuilder {
675
676
  * the parameter's flag and default value on the row, as the Case Designer
676
677
  * does: `{ value: 'hi', required: false, default: 'Empty' }`.
677
678
  *
679
+ * A literal wholly wrapped in one pair of quotes loses them, the way `uip
680
+ * maestro case sdd convert` reads an SDD cell and `{ assign }` reads its
681
+ * value, so an SDD cell can be copied as written:
682
+ *
683
+ * `'"literal-seed"'` and `'literal-seed'` both store `literal-seed`. To send
684
+ * the quotes themselves, wrap the value in one more pair of the other quote;
685
+ * decompile writes that spelling for a stored value that looks quoted. A `=`
686
+ * expression is never changed.
687
+ *
688
+ * @example
689
+ * **Copy an SDD literal cell, and keep a literal's quotes**
690
+ * ```ts
691
+ * casePlan('echo').stage('Echo', (s) => s.task('Echo', (t) =>
692
+ * t.apiWorkflow('Echo', { folder: 'Shared' }).inputs({
693
+ * APIInput1: '"literal-seed"', // stores literal-seed
694
+ * APIInput2: `'"literal-seed"'`, // stores "literal-seed", quotes kept
695
+ * })))
696
+ * ```
697
+ *
678
698
  * @param shape - Input parameter names to literals, case-variable references, or `{ value, type, required, default }`.
679
699
  * @returns This builder, so calls chain.
680
700
  */
@@ -682,10 +702,10 @@ class TaskBuilder {
682
702
  this._inputs ??= [];
683
703
  for (const [name, v] of Object.entries(shape)) {
684
704
  if (typeof v === 'string') {
685
- this._inputs.push({ name, value: v, type: 'string' });
705
+ this._inputs.push({ name, value: unquoteLiteral(v), type: 'string' });
686
706
  continue;
687
707
  }
688
- const binding = { name, value: v.value, type: (v.type ?? 'string') };
708
+ const binding = { name, value: typeof v.value === 'string' ? unquoteLiteral(v.value) : v.value, type: (v.type ?? 'string') };
689
709
  if (v.required !== undefined)
690
710
  binding.required = v.required;
691
711
  if (v.default !== undefined)
@@ -728,7 +748,8 @@ class TaskBuilder {
728
748
  * written as Studio Web saves one: `custom: true`, `elementId: 'root'`, no
729
749
  * `id`. The SDD notation `=metadata.<field>` reads nothing outside `=js:`, so it
730
750
  * is written as `=js:metadata.<field>`. An SDD literal copied with its quotes
731
- * (`{ assign: '"literal-assigned"' }`) loses them, as `sdd convert` reads it.
751
+ * (`{ assign: '"literal-assigned"' }`) loses them, as `sdd convert` reads it;
752
+ * wrap it in one more pair of the other quote to keep them (see `.inputs()`).
732
753
  * A custom output sees only the outputs listed before it on the same task:
733
754
  * outputs are evaluated in order, so it cannot read its own variable or a
734
755
  * later output's (`check` reports `OUTPUT_SELF_REFERENCE` /
@@ -744,6 +765,12 @@ class TaskBuilder {
744
765
  * extract (`source`) is refused on a task kind with no result to read
745
766
  * (`TASK_OUTPUTS_UNSUPPORTED`).
746
767
  *
768
+ * To write a form field straight into a named case variable, as an SDD row
769
+ * `Action -> apDecision` declares, do not add a custom output: set the
770
+ * field's `value`, `.action({ outputs: [{ name: 'Action', value: 'apDecision' }] })`.
771
+ * A custom output is a second row; the field would still write its default
772
+ * variable (`action`), and `uip maestro case validate --sdd` reports that.
773
+ *
747
774
  * On a connector or wait-for-connector task, a field is read from the
748
775
  * operation's (or event's) `response`: an SDD row `app_id -> postAppId` is
749
776
  * `.outputs({ postAppId: '=response.app_id' })`. Each extract is written after
@@ -813,6 +840,27 @@ class TaskBuilder {
813
840
  // result, so only a kind with one takes it; a custom `{ assign }` row reads
814
841
  // none, so every kind takes it (#1451).
815
842
  const extract = this._outputs?.find((o) => !o.custom);
843
+ // An action task has no result, but it has form fields, and an SDD row
844
+ // `Action -> apDecision` names one of them. That row is the field's own
845
+ // `value`, not a custom output: a `{ assign }` row is a second row, the
846
+ // field still writes its default variable, and `validate --sdd` reports
847
+ // the field's var. Name the spelling that writes the row the SDD means.
848
+ if (extract && this._kind === 'action') {
849
+ // The field the source names: `=<name>` where `<name>` is a declared form
850
+ // field (spaces allowed, `=Approval Decision`) or an identifier. A
851
+ // `=vars.…` / `=js:…` source, or a name no field has, names none.
852
+ const declared = (this._action?.outputs ?? []).map((f) => f.name);
853
+ const bare = /^=(?!js:)(.+)$/.exec(extract.source)?.[1];
854
+ const field = bare !== undefined && (declared.includes(bare) || /^[A-Za-z_]\w*$/.test(bare)) ? bare : undefined;
855
+ const lead = `task "${this._name}": output "${extract.var}" reads ${JSON.stringify(extract.source)}, but an action task has no result field to extract; its form fields write case variables themselves.`;
856
+ const tail = `\`value\` is the case variable the field writes, the row an SDD's \`<field> -> ${extract.var}\` declares and \`uip maestro case validate --sdd\` checks. A custom output ({ assign }) is a second row that derives a new value; it does not rename the field's variable.`;
857
+ const fix = field !== undefined
858
+ ? `Name the variable on the field: .action({ ..., outputs: [{ name: '${field}', value: '${extract.var}' }] }).`
859
+ : declared.length > 0
860
+ ? `Set \`value: '${extract.var}'\` on the form field the SDD row names, one of: ${declared.join(', ')} (.action({ ..., outputs: [{ name: '${declared[0]}', value: '${extract.var}' }] })).`
861
+ : `Declare the form field in .action({ ..., outputs: [{ name: '<field>', value: '${extract.var}' }] }); this task declares no form outputs yet.`;
862
+ throw new CompileRefusal('TASK_OUTPUTS_UNSUPPORTED', `${lead} ${fix} ${tail.replace('<field>', field ?? '<field>')}`);
863
+ }
816
864
  if (extract && !REF_IO.has(this._kind) && !CONNECTOR_OUTPUTS.has(this._kind))
817
865
  throw new CompileRefusal('TASK_OUTPUTS_UNSUPPORTED', `task "${this._name}": output "${extract.var}" extracts a result field, which only reference-mode tasks (process/agent/rpa/api-workflow/case-management/flow-process/function/business-rule) and connector / wait-for-connector tasks have, not "${this._kind}". A custom output ({ assign }) works on every task kind.`);
818
866
  if (REF_IO.has(this._kind) && !this._ref && (this._inputs || this._outputs))
@@ -864,31 +912,6 @@ function customOutputValue(value) {
864
912
  const unquoted = unquoteLiteral(value);
865
913
  return unquoted.startsWith('=metadata.') ? `=js:${unquoted.slice(1)}` : unquoted;
866
914
  }
867
- /**
868
- * An SDD cell's quoted literal without its quotes, as the CLI's `sdd convert`
869
- * reads it (`unquoteLiteral` in `packages/case-tool/src/services/sdd-convert/io.ts`):
870
- * `"literal-assigned"` → `literal-assigned`, with escaped quotes unescaped.
871
- * A value not wholly wrapped in one pair of `"…"` or `'…'` (an unescaped quote
872
- * inside, or an expression like `'a' + 'b'`) is returned unchanged.
873
- */
874
- function unquoteLiteral(cell) {
875
- const text = cell.trim();
876
- const quote = text[0];
877
- if (quote !== '"' && quote !== "'")
878
- return cell;
879
- if (text.length < 2 || text[text.length - 1] !== quote)
880
- return cell;
881
- const inner = text.slice(1, -1);
882
- for (let at = 0; at < inner.length; at += 1) {
883
- if (inner[at] === '\\') {
884
- at += 1;
885
- continue;
886
- }
887
- if (inner[at] === quote)
888
- return cell;
889
- }
890
- return inner.replaceAll(`\\${quote}`, quote);
891
- }
892
915
  class StageBuilder {
893
916
  _label;
894
917
  _exception;
@@ -9,6 +9,7 @@ import { isScriptOwnOutput, liftScript } from './decompile-script.js';
9
9
  import { isHttpRequestOwnOutput, liftHttpRequest } from './decompile-http-request.js';
10
10
  import { savedHttpRequestMetadata } from './http-request.js';
11
11
  import { builtChainSource, chainStatements } from '../core/builder-chain.js';
12
+ import { literalSource } from './literal.js';
12
13
  import { CASE_FORMAT_PROFILE, CASE_SCHEMA_VERSIONS } from './format-profile.js';
13
14
  import { EXTERNAL_TASK_CONTEXT, EXTERNAL_TASK_EVENT_CONTEXT, externalDescriptorRefusal, externalEventRefusal, externalServiceType, isExternalExecutionMode, libraryExecution } from './external.js';
14
15
  import { preserveSchemaVersion } from '../schema-version.js';
@@ -1294,11 +1295,21 @@ function emptyIoLists(task) {
1294
1295
  const empty = ['inputs', 'outputs'].filter((side) => Array.isArray(task.data?.[side]) && task.data[side].length === 0);
1295
1296
  return empty.length ? { emptyIo: [...empty] } : {};
1296
1297
  }
1297
- function ioArg(rows, kind) {
1298
+ function ioArg(rows, kind, task) {
1298
1299
  const valueField = kind === 'inputs' ? 'value' : 'source';
1299
1300
  const entries = rows.map((row) => {
1300
1301
  const name = kind === 'inputs' ? row.name : row.var;
1301
- const value = tsLiteral(row[valueField] ?? '');
1302
+ // A stored literal that itself looks quoted is written in one more pair, so
1303
+ // `.inputs()` / `{ assign }` (which strip one pair, as `sdd convert` does)
1304
+ // compile it back to the same text.
1305
+ const stored = row[valueField] ?? '';
1306
+ const unquotes = kind === 'inputs' || row.custom === true;
1307
+ const spelled = unquotes ? literalSource(String(stored)) : stored;
1308
+ if (spelled === undefined) {
1309
+ const what = kind === 'inputs' ? `input "${row.name ?? '?'}"` : `custom output "${row.var ?? row.name ?? '?'}"`;
1310
+ throw new Error(`${String(task.type)} task "${task.displayName ?? task.id ?? '?'}" ${what} stores the literal ${JSON.stringify(stored)}, which cannot be written as ${kind === 'inputs' ? '.inputs()' : '{ assign }'} source without losing its quotes: it is wrapped in one quote and contains both \\' and \\", and the SDK reads one wrapping pair of quotes off a literal the way \`uip maestro case sdd convert\` does. Decompile refuses it rather than change the value on recompile. Edit the value in the Case Designer (drop the wrapping quotes, or one of the escaped quotes) and decompile again.`);
1311
+ }
1312
+ const value = tsLiteral(spelled);
1302
1313
  // A custom output (`custom: true`) assigns its value; it reads no result field.
1303
1314
  const custom = kind === 'outputs' && row.custom === true;
1304
1315
  // An input's `required` / `default` are the resource parameter's flag and
@@ -1322,13 +1333,13 @@ function emitTask(out, depth, task, lane, refs, library) {
1322
1333
  if (ownEntry(TASK_KIND_METHOD, task.type) || isAuthorableBusinessRule(task)) {
1323
1334
  const data = task.data ?? {};
1324
1335
  if (Array.isArray(data.inputs) && data.inputs.length)
1325
- out.line(inner, `.inputs(${ioArg(data.inputs, 'inputs')})`);
1336
+ out.line(inner, `.inputs(${ioArg(data.inputs, 'inputs', task)})`);
1326
1337
  }
1327
1338
  const outputs = taskOutputRows(task);
1328
1339
  if (outputs)
1329
1340
  refuseUnwrittenOutputs(task, outputs);
1330
1341
  if (outputs?.lifted.length)
1331
- out.line(inner, `.outputs(${ioArg(outputs.lifted, 'outputs')})`);
1342
+ out.line(inner, `.outputs(${ioArg(outputs.lifted, 'outputs', task)})`);
1332
1343
  if (task.isRequired !== undefined)
1333
1344
  out.line(inner, task.isRequired ? '.required()' : '.required(false)');
1334
1345
  if (task.shouldRunOnlyOnce !== undefined)
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The quoted-literal rule a task io value follows, shared by `.inputs()`, the
3
+ * custom `{ assign }` output, and decompile.
4
+ *
5
+ * An SDD (software design document) cell writes a string literal in quotes:
6
+ * `| APIInput1 | string | "literal-seed" |`. The CLI's `uip maestro case sdd
7
+ * convert` stores the text inside the quotes (`unquoteLiteral` in
8
+ * `packages/case-tool/src/services/sdd-convert/io.ts`), and so does the Case
9
+ * Designer, which has no quoting at all: a literal is its bare text. The SDK
10
+ * reads a value the same way, so the same cell gives the same runtime value
11
+ * whichever toolchain wrote the plan.
12
+ */
13
+ /**
14
+ * An SDD cell's quoted literal without its quotes: `"literal-assigned"` →
15
+ * `literal-assigned`, with escaped quotes unescaped. A value not wholly wrapped
16
+ * in one pair of `"…"` or `'…'` (an unescaped quote inside, or an expression
17
+ * like `'a' + 'b'`) is returned unchanged, and so is any `=` expression.
18
+ */
19
+ export declare function unquoteLiteral(cell: string): string;
20
+ /**
21
+ * The authored spelling of a stored value: one that {@link unquoteLiteral}
22
+ * reads back to exactly `stored`. A value it would leave alone is written as
23
+ * is; a value that itself looks quoted (a Designer literal whose text is
24
+ * `"x"`) is wrapped in one more pair, `'"x"'`, so decompile → compile keeps
25
+ * the quotes instead of stripping them.
26
+ *
27
+ * `undefined` when no spelling exists. `unquoteLiteral` matches the CLI's, so
28
+ * it unescapes only the wrapping quote and treats a backslash before either
29
+ * quote as an escape: a value wrapped in one quote that contains both `\'`
30
+ * and `\"` (Designer literal `"a\"b\'c"`) cannot be wrapped in either
31
+ * quote and read back unchanged. The caller refuses it, naming the row.
32
+ */
33
+ export declare function literalSource(stored: string): string | undefined;
@@ -0,0 +1,59 @@
1
+ /**
2
+ * The quoted-literal rule a task io value follows, shared by `.inputs()`, the
3
+ * custom `{ assign }` output, and decompile.
4
+ *
5
+ * An SDD (software design document) cell writes a string literal in quotes:
6
+ * `| APIInput1 | string | "literal-seed" |`. The CLI's `uip maestro case sdd
7
+ * convert` stores the text inside the quotes (`unquoteLiteral` in
8
+ * `packages/case-tool/src/services/sdd-convert/io.ts`), and so does the Case
9
+ * Designer, which has no quoting at all: a literal is its bare text. The SDK
10
+ * reads a value the same way, so the same cell gives the same runtime value
11
+ * whichever toolchain wrote the plan.
12
+ */
13
+ /**
14
+ * An SDD cell's quoted literal without its quotes: `"literal-assigned"` →
15
+ * `literal-assigned`, with escaped quotes unescaped. A value not wholly wrapped
16
+ * in one pair of `"…"` or `'…'` (an unescaped quote inside, or an expression
17
+ * like `'a' + 'b'`) is returned unchanged, and so is any `=` expression.
18
+ */
19
+ export function unquoteLiteral(cell) {
20
+ const text = cell.trim();
21
+ const quote = text[0];
22
+ if (quote !== '"' && quote !== "'")
23
+ return cell;
24
+ if (text.length < 2 || text[text.length - 1] !== quote)
25
+ return cell;
26
+ const inner = text.slice(1, -1);
27
+ for (let at = 0; at < inner.length; at += 1) {
28
+ if (inner[at] === '\\') {
29
+ at += 1;
30
+ continue;
31
+ }
32
+ if (inner[at] === quote)
33
+ return cell;
34
+ }
35
+ return inner.replaceAll(`\\${quote}`, quote);
36
+ }
37
+ /**
38
+ * The authored spelling of a stored value: one that {@link unquoteLiteral}
39
+ * reads back to exactly `stored`. A value it would leave alone is written as
40
+ * is; a value that itself looks quoted (a Designer literal whose text is
41
+ * `"x"`) is wrapped in one more pair, `'"x"'`, so decompile → compile keeps
42
+ * the quotes instead of stripping them.
43
+ *
44
+ * `undefined` when no spelling exists. `unquoteLiteral` matches the CLI's, so
45
+ * it unescapes only the wrapping quote and treats a backslash before either
46
+ * quote as an escape: a value wrapped in one quote that contains both `\'`
47
+ * and `\"` (Designer literal `"a\"b\'c"`) cannot be wrapped in either
48
+ * quote and read back unchanged. The caller refuses it, naming the row.
49
+ */
50
+ export function literalSource(stored) {
51
+ if (unquoteLiteral(stored) === stored)
52
+ return stored;
53
+ for (const quote of ["'", '"']) {
54
+ const candidate = `${quote}${stored.replaceAll(quote, `\\${quote}`)}${quote}`;
55
+ if (unquoteLiteral(candidate) === stored)
56
+ return candidate;
57
+ }
58
+ return undefined;
59
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.82.6",
3
+ "version": "6.82.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",
@@ -103,5 +103,5 @@
103
103
  "@types/node": "^22.7.0",
104
104
  "esbuild": "^0.28.1"
105
105
  },
106
- "gitref": "3d6248ed3d0e27d5b8a62528bf15d0ba808d06e7"
106
+ "gitref": "cccba9ca773ee96a7b64ca70b7c47dadb88dd05f"
107
107
  }