@uipath/maestro-builder-sdk 6.89.0 → 6.89.1

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.
@@ -115,20 +115,17 @@ function sentenceCase(id) {
115
115
  * interval is a preset. Doing it here means the author states the interval once.
116
116
  *
117
117
  * `entryPointId` names the flow's entry point (the def's `model.entryPointId`).
118
- * flow-v1 falls back to the node id when it is absent, so we emit exactly that
119
- * — deterministic, and it satisfies the platform's scheduled-trigger validator,
120
- * which requires the field. The manual trigger keeps emitting no inputs at all,
121
- * so every existing flow serializes byte-identically.
118
+ * It is a minted GUID: publish rejects any other value (errorCode 1205).
122
119
  */
123
- function scheduleInputs(inputs, nodeId, version) {
120
+ function scheduleInputs(inputs, entryPointId, version) {
124
121
  const every = String(inputs?.every ?? '');
125
122
  if (!hasTimerPreset(version)) {
126
123
  // 1.2 dropped timerPreset: every value, preset or not, rides timerValue alone.
127
- return { entryPointId: nodeId, timerType: 'timeCycle', timerValue: every };
124
+ return { entryPointId, timerType: 'timeCycle', timerValue: every };
128
125
  }
129
126
  const isPreset = SCHEDULE_PRESETS.includes(every);
130
127
  return {
131
- entryPointId: nodeId,
128
+ entryPointId,
132
129
  timerType: 'timeCycle',
133
130
  timerPreset: isPreset ? every : 'custom',
134
131
  ...(isPreset ? {} : { timerValue: every }),
@@ -176,12 +173,8 @@ export const scheduledTriggerType = {
176
173
  noun: 'schedule',
177
174
  serialize: (spec, ctx) => {
178
175
  const version = scheduledVersion(spec.inputs, ctx.version);
179
- // An entry point's identity is written first and then overwritten by the
180
- // schedule's own `entryPointId` (its node id), as before the port.
181
- const inputs = ctx.root.isDefault
182
- ? scheduleInputs(spec.inputs, ctx.root.id, version)
183
- : { entryPointId: ctx.entryPointId(), ...scheduleInputs(spec.inputs, ctx.root.id, version) };
184
- return { version, inputs };
176
+ const entryPointId = ctx.root.isDefault ? ctx.entryPointId('start') : ctx.entryPointId();
177
+ return { version, inputs: scheduleInputs(spec.inputs, entryPointId, version) };
185
178
  },
186
179
  deserialize: (node) => ({ kind: 'scheduled', inputs: { every: scheduleEvery(node) } }),
187
180
  print: (spec, ctx) => ({ factory: 'scheduled', options: [['every', ctx.string(spec.inputs.every)]] }),
@@ -219,10 +212,10 @@ export const formTriggerType = {
219
212
  * Both are entry points (`model.entryPointId: true`) with nothing else
220
213
  * authored: what the platform started — the conversation, or the live call's
221
214
  * `callContext` — is the trigger's own declared output. The default root's
222
- * identity is its node id; an entry point's is minted, as for every other root.
215
+ * identity is minted too: pack copies it into entry-points.json `uniqueId`, which is a GUID.
223
216
  */
224
217
  function platformStartedInputs(ctx) {
225
- return { inputs: { entryPointId: ctx.root.isDefault ? ctx.root.id : ctx.entryPointId() } };
218
+ return { inputs: { entryPointId: ctx.root.isDefault ? ctx.entryPointId('start') : ctx.entryPointId() } };
226
219
  }
227
220
  /** The conversation-trigger version an unpinned `conversationTrigger()` writes: the platform's current one, which has an appearance. */
228
221
  const CONVERSATION_DEFAULT_VERSION = '1.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.89.0",
3
+ "version": "6.89.1",
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",
@@ -110,5 +110,5 @@
110
110
  "@types/node": "^22.7.0",
111
111
  "esbuild": "^0.28.1"
112
112
  },
113
- "gitref": "92148768a736f13772277dc6523c3145115c4087"
113
+ "gitref": "84d87f63b6f8b64c55eb483c87e818b2efa1b4da"
114
114
  }