@uipath/maestro-builder-sdk 6.86.5 → 6.86.6
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/case/decompile.js +2 -1
- package/dist/case/preserve.d.ts +12 -4
- package/dist/case/preserve.js +10 -4
- package/dist/case/serialize.js +2 -1
- package/package.json +2 -2
package/dist/case/decompile.js
CHANGED
|
@@ -17,7 +17,7 @@ import { preserveSchemaVersion } from '../schema-version.js';
|
|
|
17
17
|
import { ownEntry } from '../core/own-entry.js';
|
|
18
18
|
import { EVENT_FILTER_OPERATORS, eventFilterExpressionOf, eventFilterFromTreeLeaf, eventFilterProblem, EXPRESSION_FILTER_OPERATORS, filterExprFromLeaf } from '../core/event-filters.js';
|
|
19
19
|
import { CASE_FILTER_SPELLING, caseSubscriptionBody, caseSubscriptionOwners } from './subscription.js';
|
|
20
|
-
import { CASE_NODE_CANVAS_FIELDS, CASE_NODE_LAYOUT_FIELDS, isTypedInputField, isUnrestorableSlotId, PRESERVED_STAGE_DATA_KEYS, PRESERVED_TRIGGER_DATA_KEYS, RESOURCE_INPUT_WRITTEN, RESOURCE_OUTPUT_WRITTEN, STAGE_EMPTY_LISTS, TASK_EMPTY_LISTS, taskFingerprint, PRESERVED_ACTION_DATA_KEYS, } from './preserve.js';
|
|
20
|
+
import { CASE_NODE_CANVAS_FIELDS, CASE_NODE_LAYOUT_FIELDS, isTypedInputField, isUnrestorableSlotId, PRESERVED_STAGE_DATA_KEYS, PRESERVED_TRIGGER_DATA_KEYS, RESOURCE_INPUT_WRITTEN, RESOURCE_OUTPUT_WRITTEN, CASE_EMPTY_LISTS, STAGE_EMPTY_LISTS, TASK_EMPTY_LISTS, taskFingerprint, PRESERVED_ACTION_DATA_KEYS, } from './preserve.js';
|
|
21
21
|
import { stableId } from '../core/stable-id.js';
|
|
22
22
|
import { ACTION_CONTEXT_COPIES, ACTION_PASSTHROUGH_SETTINGS } from './action-settings.js';
|
|
23
23
|
import { resourceIdentity, SOLUTION_FOLDER } from './resource-identity.js';
|
|
@@ -2105,6 +2105,7 @@ function identityPreservation(plan) {
|
|
|
2105
2105
|
}),
|
|
2106
2106
|
caseExitRules: (plan.metadata?.caseExitRules ?? []).map(conditionIdentity),
|
|
2107
2107
|
slaRules: (plan.metadata?.slaRules ?? []).map(slaIdentity),
|
|
2108
|
+
...emptyLists(plan.metadata ?? {}, CASE_EMPTY_LISTS),
|
|
2108
2109
|
variables: Object.fromEntries(['inputs', 'outputs', 'inputOutputs'].map((lane) => [
|
|
2109
2110
|
lane,
|
|
2110
2111
|
(plan.variables?.[lane] ?? []).map((row) => ({ name: row.name, ...(row.id ? { id: row.id } : {}), ...variableShape(row) })),
|
package/dist/case/preserve.d.ts
CHANGED
|
@@ -211,12 +211,18 @@ interface StageIdentity {
|
|
|
211
211
|
emptyLists?: string[];
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
|
-
* The
|
|
215
|
-
*
|
|
216
|
-
*
|
|
214
|
+
* The lists the serializer omits when empty, which the Designer writes both as
|
|
215
|
+
* `[]` and as no field. The payload records which were `[]`; compile writes
|
|
216
|
+
* `[]` back on a list that is still empty and absent.
|
|
217
|
+
*
|
|
218
|
+
* `slaRules` (a stage's `data.slaRules`, the case's `metadata.slaRules`): the
|
|
219
|
+
* platform reads `[]` and no field alike (every `@uipath/case-schema` read is
|
|
220
|
+
* `slaRules ?? []` or `slaRules?.length`), so this is the Designer's spelling
|
|
221
|
+
* only, carried like the condition lists.
|
|
217
222
|
*/
|
|
218
223
|
export declare const TASK_EMPTY_LISTS: readonly ["entryConditions"];
|
|
219
|
-
export declare const STAGE_EMPTY_LISTS: readonly ["entryConditions", "exitConditions"];
|
|
224
|
+
export declare const STAGE_EMPTY_LISTS: readonly ["entryConditions", "exitConditions", "slaRules"];
|
|
225
|
+
export declare const CASE_EMPTY_LISTS: readonly ["slaRules"];
|
|
220
226
|
/**
|
|
221
227
|
* A task less its rows, its ids and every display name (a condition's defaults
|
|
222
228
|
* to its task's): what renaming it leaves alone, so a rename beside a deleted
|
|
@@ -231,6 +237,8 @@ interface CaseIdentityPreservation {
|
|
|
231
237
|
stages?: StageIdentity[];
|
|
232
238
|
caseExitRules?: ConditionIdentity[];
|
|
233
239
|
slaRules?: SlaIdentity[];
|
|
240
|
+
/** Fields of `CASE_EMPTY_LISTS` the read plan's `metadata` spelled `[]`. */
|
|
241
|
+
emptyLists?: string[];
|
|
234
242
|
/** `omit: ['_jsonSchema']`: a structured variable saved with its schema in `body` only. */
|
|
235
243
|
variables?: Partial<Record<PreservedVariableLane, Array<{
|
|
236
244
|
name: string;
|
package/dist/case/preserve.js
CHANGED
|
@@ -59,12 +59,18 @@ export const STAGE_DESIGNER_FIELDS = ['parentElement', 'isInvalidDropTarget', 'i
|
|
|
59
59
|
*/
|
|
60
60
|
export const PRESERVED_STAGE_DATA_KEYS = new Set([...STAGE_DESIGNER_FIELDS, 'instanceIdPrefix', 'sla', 'isCaseManagerStage']);
|
|
61
61
|
/**
|
|
62
|
-
* The
|
|
63
|
-
*
|
|
64
|
-
*
|
|
62
|
+
* The lists the serializer omits when empty, which the Designer writes both as
|
|
63
|
+
* `[]` and as no field. The payload records which were `[]`; compile writes
|
|
64
|
+
* `[]` back on a list that is still empty and absent.
|
|
65
|
+
*
|
|
66
|
+
* `slaRules` (a stage's `data.slaRules`, the case's `metadata.slaRules`): the
|
|
67
|
+
* platform reads `[]` and no field alike (every `@uipath/case-schema` read is
|
|
68
|
+
* `slaRules ?? []` or `slaRules?.length`), so this is the Designer's spelling
|
|
69
|
+
* only, carried like the condition lists.
|
|
65
70
|
*/
|
|
66
71
|
export const TASK_EMPTY_LISTS = ['entryConditions'];
|
|
67
|
-
export const STAGE_EMPTY_LISTS = ['entryConditions', 'exitConditions'];
|
|
72
|
+
export const STAGE_EMPTY_LISTS = ['entryConditions', 'exitConditions', 'slaRules'];
|
|
73
|
+
export const CASE_EMPTY_LISTS = ['slaRules'];
|
|
68
74
|
/**
|
|
69
75
|
* A task less its rows, its ids and every display name (a condition's defaults
|
|
70
76
|
* to its task's): what renaming it leaves alone, so a rename beside a deleted
|
package/dist/case/serialize.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* name) are resolved here to the generated ids.
|
|
10
10
|
*/
|
|
11
11
|
import { IdGen, offlineBindingSeed } from './ids.js';
|
|
12
|
-
import { isUnrestorableSlotId, METADATA_ABSENT_READING, STAGE_EMPTY_LISTS, TASK_EMPTY_LISTS, taskFingerprint } from './preserve.js';
|
|
12
|
+
import { CASE_EMPTY_LISTS, isUnrestorableSlotId, METADATA_ABSENT_READING, STAGE_EMPTY_LISTS, TASK_EMPTY_LISTS, taskFingerprint } from './preserve.js';
|
|
13
13
|
import { v31TaskSets } from './task-sets.js';
|
|
14
14
|
import { camelizeName, defaultActionOutputVar } from './action-output-var.js';
|
|
15
15
|
import { ACTION_CONTEXT_COPIES, ACTION_FORM_KIND_CONTEXT, ACTION_PASSTHROUGH_SETTINGS } from './action-settings.js';
|
|
@@ -1464,6 +1464,7 @@ function applyPreservedIdentities(result, preservation) {
|
|
|
1464
1464
|
const metadata = result.metadata;
|
|
1465
1465
|
takeConditions(metadata.caseExitRules, identities.caseExitRules);
|
|
1466
1466
|
takeSlas(metadata.slaRules, identities.slaRules);
|
|
1467
|
+
restoreEmptyLists(metadata, identities.emptyLists, CASE_EMPTY_LISTS);
|
|
1467
1468
|
restoreSlaIds();
|
|
1468
1469
|
const variables = result.variables;
|
|
1469
1470
|
if (carriedCompanions.size) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.86.
|
|
3
|
+
"version": "6.86.6",
|
|
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": "
|
|
106
|
+
"gitref": "6fed189493e2005b3b20ac7b157cd98115465ebb"
|
|
107
107
|
}
|