@uipath/maestro-builder-sdk 6.122.1 → 6.122.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.
|
@@ -86,9 +86,9 @@ const EVENT_SERVICE_TYPES = new Set(['Intsvc.EventTrigger', 'Intsvc.WaitForEvent
|
|
|
86
86
|
* task that compile never writes there (`connectorTaskData` in serialize.ts):
|
|
87
87
|
* `operation` (`list`, `create`, `replace`, `SendEmailV2`, ...), the name of
|
|
88
88
|
* the action the task calls. On an activity it repeats what `objectName`,
|
|
89
|
-
* `method
|
|
90
|
-
*
|
|
91
|
-
*
|
|
89
|
+
* `method` and `path` already say, and no source edit can set it, so a saved
|
|
90
|
+
* row that compile's side lacks is no sign of an edit. The saved copy is then
|
|
91
|
+
* the only thing that keeps it.
|
|
92
92
|
*
|
|
93
93
|
* An event element's `operation` is different: compile writes it from the
|
|
94
94
|
* event the source names, so it is compared there as any other row.
|
|
@@ -189,34 +189,34 @@ export function savedConnectorContext(owner, bag) {
|
|
|
189
189
|
/** Whether a wire `activityType` is a generic CRUD one (`Generic`, `GenericExpanded`, `GenericTrigger`). */
|
|
190
190
|
const isGenericKind = (activityType) => activityType.startsWith('Generic');
|
|
191
191
|
/**
|
|
192
|
-
*
|
|
193
|
-
* `
|
|
194
|
-
* `
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
192
|
+
* The wire activity type a context was built for: the essential
|
|
193
|
+
* configuration's `instanceParameters.activityType` (`Curated`, `Generic`,
|
|
194
|
+
* `CuratedTrigger`, ...), or `undefined` when the context does not say.
|
|
195
|
+
*
|
|
196
|
+
* With the connector rows, this is all that names an action: it is what
|
|
197
|
+
* decompile reads to find the action the source names
|
|
198
|
+
* (`Library.identifyAction` and `identifyEvent` take the rows and this kind,
|
|
199
|
+
* nothing else). A curated activity and its generic twin share `method`,
|
|
200
|
+
* `path` and `objectName` (Outlook `send-email` and
|
|
201
|
+
* `insert-record-deprecated-`), so the kind is what tells them apart.
|
|
202
|
+
*
|
|
203
|
+
* The `uiPathActivityTypeId` is not compared: catalog and library ids may
|
|
204
|
+
* differ for the same action, so the wire identity is compared instead.
|
|
199
205
|
*/
|
|
200
|
-
function
|
|
206
|
+
function wireActivityType(context) {
|
|
201
207
|
const raw = context.find((row) => row.name === 'metadata')?.body;
|
|
202
208
|
if (!isObject(raw))
|
|
203
|
-
return
|
|
204
|
-
const
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
activityType = undefined;
|
|
214
|
-
}
|
|
209
|
+
return undefined;
|
|
210
|
+
const encoded = raw.activityPropertyConfiguration?.configuration;
|
|
211
|
+
if (typeof encoded !== 'string' || !encoded.startsWith(JSON_STRING))
|
|
212
|
+
return undefined;
|
|
213
|
+
try {
|
|
214
|
+
const activityType = JSON.parse(encoded.slice(JSON_STRING.length))?.essentialConfiguration?.instanceParameters?.activityType;
|
|
215
|
+
return typeof activityType === 'string' && activityType ? activityType : undefined;
|
|
216
|
+
}
|
|
217
|
+
catch {
|
|
218
|
+
return undefined;
|
|
215
219
|
}
|
|
216
|
-
return {
|
|
217
|
-
typeId: typeof id === 'string' && id ? id : undefined,
|
|
218
|
-
activityType: typeof activityType === 'string' && activityType ? activityType : undefined,
|
|
219
|
-
};
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
222
|
* Whether the element compile built is the one the context was saved for:
|
|
@@ -228,10 +228,11 @@ function actionIdentity(context) {
|
|
|
228
228
|
* `method`) still compares equal, and so does an activity's saved
|
|
229
229
|
* `operation` row, which compile never writes there
|
|
230
230
|
* ({@link comparesContextRow}). `connectorKey` must be on both sides;
|
|
231
|
-
* - the action is the same: the activity type
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
231
|
+
* - the action is the same: the wire activity type is curated on both
|
|
232
|
+
* sides or generic on both, wherever both sides carry it
|
|
233
|
+
* ({@link wireActivityType}), so switching to an action's curated or
|
|
234
|
+
* generic twin gets compile's context. The activity type id is not
|
|
235
|
+
* compared: it is the saving catalog's, not the action's;
|
|
235
236
|
* - every input holds the same value (an input only one side has must be
|
|
236
237
|
* empty, as compile writes `body: {}` for an unused container).
|
|
237
238
|
*/
|
|
@@ -254,13 +255,11 @@ function unchanged(bag, entry, v2) {
|
|
|
254
255
|
if (stable(builtRows.get(name)?.value) !== stable(saved.get(name)?.value))
|
|
255
256
|
return false;
|
|
256
257
|
}
|
|
257
|
-
const [now, then] = [
|
|
258
|
-
if (now.typeId && then.typeId && now.typeId !== then.typeId)
|
|
259
|
-
return false;
|
|
258
|
+
const [now, then] = [wireActivityType(built), wireActivityType(entry.context)];
|
|
260
259
|
// Only the curated / generic split names a twin: an event's saved kind
|
|
261
260
|
// varies with no change of action (a trigger saved as `CuratedWaitFor` that
|
|
262
|
-
// compile writes as `CuratedTrigger
|
|
263
|
-
if (now
|
|
261
|
+
// compile writes as `CuratedTrigger`).
|
|
262
|
+
if (now && then && isGenericKind(now) !== isGenericKind(then))
|
|
264
263
|
return false;
|
|
265
264
|
const values = inputValues(bag);
|
|
266
265
|
for (const name of new Set([...Object.keys(values), ...Object.keys(entry.inputs)])) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.122.
|
|
3
|
+
"version": "6.122.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",
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"@types/node": "^22.7.0",
|
|
127
127
|
"esbuild": "^0.28.1"
|
|
128
128
|
},
|
|
129
|
-
"gitref": "
|
|
129
|
+
"gitref": "9dc07468c4ac6ba476bb237a0bbc206e3c3f22ab"
|
|
130
130
|
}
|