@uipath/maestro-builder-sdk 6.48.0 → 6.49.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.
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The managed HTTP request's fixed identity — Integration Service's generic HTTP
3
+ * connector, `POST /http-request` — shared by Flow's `core.action.http.v2` and BPMN's
4
+ * V2 `Intsvc.UnifiedHttpRequest`.
5
+ */
6
+ export const MANAGED_HTTP_CONNECTOR_KEY = 'uipath-uipath-http';
7
+ export const MANAGED_HTTP_OBJECT_NAME = 'http-request';
8
+ export const MANAGED_HTTP_ENDPOINT = '/http-request';
9
+ export const MANAGED_HTTP_ENDPOINT_METHOD = 'POST';
10
+ /** Studio's HTTP Request activity type, the same on every tenant. */
11
+ export const MANAGED_HTTP_ACTIVITY_TYPE_ID = '5c4cc855-b42a-37e6-b910-de8588998fce';
12
+ export const MANAGED_HTTP_INSTANCE_PARAMETERS = {
13
+ connectorKey: MANAGED_HTTP_CONNECTOR_KEY,
14
+ objectName: MANAGED_HTTP_OBJECT_NAME,
15
+ httpMethod: MANAGED_HTTP_ENDPOINT_METHOD,
16
+ activityType: 'Curated',
17
+ version: '1.0.0',
18
+ };
19
+ /** The `essentialConfiguration` fields both hosts write, in the order they write them. */
20
+ export const MANAGED_HTTP_ESSENTIAL_CONFIGURATION = {
21
+ instanceParameters: MANAGED_HTTP_INSTANCE_PARAMETERS,
22
+ objectName: MANAGED_HTTP_OBJECT_NAME,
23
+ operation: 'create',
24
+ packageVersion: '1.0.0',
25
+ httpMethod: MANAGED_HTTP_ENDPOINT_METHOD,
26
+ path: MANAGED_HTTP_ENDPOINT,
27
+ unifiedTypesCompatible: true,
28
+ savedJitInputFieldId: `in_${MANAGED_HTTP_OBJECT_NAME}`,
29
+ };
30
+ export const MANAGED_HTTP_TELEMETRY = {
31
+ connectorKey: MANAGED_HTTP_CONNECTOR_KEY,
32
+ connectorName: 'HTTP',
33
+ operationType: 'create',
34
+ objectName: MANAGED_HTTP_OBJECT_NAME,
35
+ objectDisplayName: 'HTTP Request',
36
+ primaryKeyName: '',
37
+ };
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import { Expr } from '../../../core/expr.js';
10
10
  import { jsonClone } from '../../../core/json-clone.js';
11
+ import { MANAGED_HTTP_ACTIVITY_TYPE_ID, MANAGED_HTTP_ESSENTIAL_CONFIGURATION, MANAGED_HTTP_TELEMETRY, } from '../../../core/managed-http.js';
11
12
  import { isRecord } from '../../../core/node-envelope.js';
12
13
  import { wireExprBody } from '../../../core/wire-expr.js';
13
14
  import { checkHttpRead, checkHttpStep, plainHttpOnErrorMessage } from './check.js';
@@ -160,34 +161,10 @@ function managedHttpInputs(i, binding, ctx) {
160
161
  method: 'POST',
161
162
  endpoint: '/http-request',
162
163
  bodyParameters,
163
- configuration: '=jsonString:' + JSON.stringify({
164
- essentialConfiguration: {
165
- instanceParameters: {
166
- connectorKey: 'uipath-uipath-http',
167
- objectName: 'http-request',
168
- httpMethod: 'POST',
169
- activityType: 'Curated',
170
- version: '1.0.0',
171
- },
172
- objectName: 'http-request',
173
- operation: 'create',
174
- packageVersion: '1.0.0',
175
- httpMethod: 'POST',
176
- path: '/http-request',
177
- unifiedTypesCompatible: true,
178
- savedJitInputFieldId: 'in_http-request',
179
- },
180
- }),
181
- uiPathActivityTypeId: '5c4cc855-b42a-37e6-b910-de8588998fce',
164
+ configuration: '=jsonString:' + JSON.stringify({ essentialConfiguration: MANAGED_HTTP_ESSENTIAL_CONFIGURATION }),
165
+ uiPathActivityTypeId: MANAGED_HTTP_ACTIVITY_TYPE_ID,
182
166
  errorState: { issues: [] },
183
- telemetryData: {
184
- connectorKey: 'uipath-uipath-http',
185
- connectorName: 'HTTP',
186
- operationType: 'create',
187
- objectName: 'http-request',
188
- objectDisplayName: 'HTTP Request',
189
- primaryKeyName: '',
190
- },
167
+ telemetryData: { ...MANAGED_HTTP_TELEMETRY },
191
168
  },
192
169
  };
193
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.48.0",
3
+ "version": "6.49.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",
@@ -84,7 +84,6 @@
84
84
  "check:definitions": "node scripts/sync-core-definitions.mjs --check"
85
85
  },
86
86
  "dependencies": {
87
- "bpmn-auto-layout": "^1.3.0",
88
87
  "bpmn-moddle": "^9.0.4",
89
88
  "commander": "^14.0.0",
90
89
  "typescript": "^5.9.3"
@@ -93,5 +92,5 @@
93
92
  "@types/node": "^22.7.0",
94
93
  "esbuild": "^0.28.1"
95
94
  },
96
- "gitref": "b5eb4fa503b9753a5f3aa2c851c3f00befb13bd1"
95
+ "gitref": "784ae01c8e59d695dc0c711a7ff1be52dda3c98f"
97
96
  }
@@ -1,2 +0,0 @@
1
- import { type CliExitCode } from '../cli-run.js';
2
- export declare function run(argv: string[]): Promise<CliExitCode>;
@@ -1,38 +0,0 @@
1
- /**
2
- * tidy-cli — lay out a semantic-only `.bpmn` (add the `bpmndi` diagram).
3
- *
4
- * Usage:
5
- * node --experimental-strip-types tidy-cli.js <file.bpmn> [-o out.bpmn]
6
- *
7
- * The SDK's serializer emits semantic-only BPMN (no diagram) because validation
8
- * is layout-independent. This step runs `bpmn-auto-layout` to synthesize a full
9
- * `bpmndi:BPMNDiagram` — a `BPMNShape` per node and a `BPMNEdge` per flow — so
10
- * the file imports into a visual canvas. The `uipath:*` extension payloads are
11
- * preserved. Overwrites the input unless `-o` is given.
12
- */
13
- import { resolve } from 'node:path';
14
- import { reportResult } from '../cli-result.js';
15
- import { readFileSync, writeFileSync } from 'node:fs';
16
- import { layoutProcess } from 'bpmn-auto-layout';
17
- import { finalizeBpmnXml } from './serialize.js';
18
- import { flagValue, runWhenInvokedDirectly } from '../cli-run.js';
19
- export async function run(argv) {
20
- if (argv.length === 0 || argv[0] === '-h' || argv[0] === '--help') {
21
- console.error('usage: tidy <file.bpmn> [-o out.bpmn]');
22
- return 2;
23
- }
24
- const flags = new Set(['-o']);
25
- const input = argv.find((a, i) => !flags.has(a) && !flags.has(argv[i - 1]));
26
- if (!input) {
27
- console.error('tidy: missing <file.bpmn>');
28
- return 2;
29
- }
30
- const laidOut = finalizeBpmnXml(await layoutProcess(readFileSync(input, 'utf8')));
31
- const out = flagValue(argv, '-o') ?? input;
32
- writeFileSync(out, laidOut.endsWith('\n') ? laidOut : laidOut + '\n');
33
- const shapes = (laidOut.match(/BPMNShape/g) ?? []).length;
34
- console.log(`tidy: laid out ${out} (${shapes} shape(s))`);
35
- reportResult({ path: resolve(out), shapes });
36
- return 0;
37
- }
38
- runWhenInvokedDirectly(import.meta.url, 'tidy', run);