@uipath/integrationservice-sdk 1.205.0-preview.276 → 1.206.0-preview.279

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.
@@ -5,10 +5,11 @@ compiled into its `dist/` output rather than installed alongside it.
5
5
  Their licences and copyright notices are reproduced here in full, as
6
6
  those licences require.
7
7
 
8
- 26 bundled dependencies:
8
+ 27 bundled dependencies:
9
9
 
10
+ - @microsoft/applicationinsights-web@3.4.3 — MIT
10
11
  - @serverlessworkflow/sdk@1.0.1 — Apache-2.0
11
- - @uipath/integration-service-design-time@2.10.0 — SEE LICENSE IN LICENSE.txt
12
+ - @uipath/integration-service-design-time@3.3.0 — SEE LICENSE IN LICENSE.txt
12
13
  - @uipath/resource-builder-sdk@2025.11.0-alpha6584-4367 — ISC
13
14
  - base64-js@1.5.1 — MIT
14
15
  - bundle-name@4.1.0 — MIT
@@ -36,6 +37,66 @@ those licences require.
36
37
 
37
38
  ---
38
39
 
40
+ ## @microsoft/applicationinsights-web@3.4.3
41
+
42
+ Copyright notices from the source file headers, which the
43
+ bundle does not keep:
44
+
45
+ ```
46
+ Copyright (c) Microsoft and contributors. All rights reserved.
47
+ Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
48
+ ```
49
+
50
+ `NOTICE` shipped with the package:
51
+
52
+ ```
53
+ NOTICES AND INFORMATION
54
+ Do Not Translate or Localize
55
+
56
+ This software incorporates material from third parties. Microsoft makes certain
57
+ open source code available at https://3rdpartysource.microsoft.com, or you may
58
+ send a check or money order for US $5.00, including the product name, the open
59
+ source component name, and version number, to:
60
+
61
+ Source Code Compliance Team
62
+ Microsoft Corporation
63
+ One Microsoft Way
64
+ Redmond, WA 98052
65
+ USA
66
+
67
+ Notwithstanding any other terms, you may reverse engineer this software to the
68
+ extent required to debug changes to any libraries licensed under the GNU Lesser
69
+ General Public License.
70
+ ```
71
+
72
+ SPDX: MIT
73
+
74
+ ```
75
+ The MIT License (MIT)
76
+
77
+ Copyright (c) Microsoft Corporation
78
+
79
+ Permission is hereby granted, free of charge, to any person obtaining a copy
80
+ of this software and associated documentation files (the "Software"), to deal
81
+ in the Software without restriction, including without limitation the rights
82
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
83
+ copies of the Software, and to permit persons to whom the Software is
84
+ furnished to do so, subject to the following conditions:
85
+
86
+ The above copyright notice and this permission notice shall be included in all
87
+ copies or substantial portions of the Software.
88
+
89
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
90
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
91
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
92
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
93
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
94
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
95
+ SOFTWARE.
96
+ ```
97
+
98
+ ---
99
+
39
100
  ## @serverlessworkflow/sdk@1.0.1
40
101
 
41
102
  Licence decision: Its `license` field is a URL to the Apache-2.0 text rather than an SPDX id, so it reads as unknown to every scanner. Normalised to the licence that URL names.
@@ -248,7 +309,7 @@ SPDX: Apache-2.0
248
309
 
249
310
  ---
250
311
 
251
- ## @uipath/integration-service-design-time@2.10.0
312
+ ## @uipath/integration-service-design-time@3.3.0
252
313
 
253
314
  SPDX: SEE LICENSE IN LICENSE.txt
254
315
 
@@ -0,0 +1,317 @@
1
+ // src/dap/activity-bindings.ts
2
+ var DROPPED_RESOURCES = ["connection", "eventtrigger"];
3
+ var isResourceType = (resource, types) => types.includes((resource ?? "").toLowerCase());
4
+ function storedActivityBindings(bindings) {
5
+ return bindings.filter((binding) => !isResourceType(binding.resource, DROPPED_RESOURCES));
6
+ }
7
+ function planResourceBindings(stored, resolved) {
8
+ const plans = [];
9
+ for (const { field, companion, selection } of resolved) {
10
+ const entry = stored.find((binding) => binding.key?.toLowerCase() === selection.key.toLowerCase() && !isResourceType(binding.resource, ["property"]));
11
+ if (entry === undefined)
12
+ continue;
13
+ const displayName = entry.value?.name?.displayName ?? field;
14
+ const rows = [
15
+ {
16
+ field,
17
+ propertyAttribute: "name",
18
+ name: displayName,
19
+ default: selection.name
20
+ }
21
+ ];
22
+ if (entry.value?.folderKey && selection.folderKey) {
23
+ rows.push({
24
+ field: companion,
25
+ propertyAttribute: "folderKey",
26
+ name: `${displayName} folder`,
27
+ default: selection.folderKey
28
+ });
29
+ }
30
+ plans.push({
31
+ resource: entry.resource,
32
+ resourceKey: selection.key,
33
+ rows
34
+ });
35
+ }
36
+ return plans;
37
+ }
38
+ // src/dap/activity-configuration-version.ts
39
+ var ACTIVITY_CONFIGURATION_VERSION = "activityConfigurationVersion";
40
+ var v2ConfigurationVersionEntry = () => ({ name: ACTIVITY_CONFIGURATION_VERSION, type: "string", value: "v2" });
41
+ // src/dap/bindings-v2.ts
42
+ var BINDINGS_VERSION = "2.2";
43
+ var JSON_STRING_PREFIX = "=jsonString:";
44
+ var guardJsonString = (json) => `${JSON_STRING_PREFIX}${json}`;
45
+ var stripJsonStringGuard = (value) => value.startsWith(JSON_STRING_PREFIX) ? value.slice(JSON_STRING_PREFIX.length) : value;
46
+ function mapStringsDeep(value, map) {
47
+ if (typeof value === "string")
48
+ return map(value);
49
+ if (Array.isArray(value)) {
50
+ return value.map((entry) => mapStringsDeep(entry, map));
51
+ }
52
+ if (value !== null && typeof value === "object") {
53
+ return Object.fromEntries(Object.entries(value).map(([key, entry]) => [
54
+ key,
55
+ mapStringsDeep(entry, map)
56
+ ]));
57
+ }
58
+ return value;
59
+ }
60
+ var restoreJsonStringsDeep = (value) => mapStringsDeep(value, stripJsonStringGuard);
61
+ var CONN_BINDING_ID_PLACEHOLDER = "{{CONN_BINDING_ID}}";
62
+ var FOLDER_BINDING_ID_PLACEHOLDER = "{{FOLDER_BINDING_ID}}";
63
+ var RESOURCE_BINDING_ID_PREFIX = "{{RESOURCE_BINDING_ID:";
64
+ var resourceBindingIdPlaceholder = (field) => `${RESOURCE_BINDING_ID_PREFIX}${field}}}`;
65
+ var BINDING_ID_PLACEHOLDER_PATTERN = /\{\{[A-Z_]+(?::[^}]*)?\}\}/;
66
+ var optional = (key, value) => value ? { [key]: value } : {};
67
+ var eventTriggerResourceKey = (connectionKey, nodeId) => [connectionKey, nodeId].filter(Boolean).join("_");
68
+ function buildEventTriggerResource(spec) {
69
+ const key = eventTriggerResourceKey(spec.connectionKey, spec.nodeId);
70
+ return {
71
+ resource: "EventTrigger",
72
+ key,
73
+ id: `EventTrigger${key}`,
74
+ value: {
75
+ ConnectionId: {
76
+ defaultValue: spec.connectionKey,
77
+ isExpression: false
78
+ },
79
+ ...spec.entryPointId && {
80
+ EntryPointUniqueId: {
81
+ defaultValue: spec.entryPointId,
82
+ isExpression: false
83
+ }
84
+ }
85
+ },
86
+ metadata: {
87
+ UseConnectionService: "true",
88
+ ...optional("Connector", spec.connector),
89
+ ...optional("ActivityName", spec.activityName),
90
+ BindingsVersion: BINDINGS_VERSION,
91
+ ...optional("ObjectName", spec.objectName),
92
+ ...optional("Operation", spec.operation),
93
+ FilterExpression: spec.filterExpression ?? ""
94
+ }
95
+ };
96
+ }
97
+ function packageStoredBinding(row, owner) {
98
+ const clone = restoreJsonStringsDeep(structuredClone(row));
99
+ const metadata = {
100
+ ...isRecord(clone.metadata) ? clone.metadata : {},
101
+ ...optional("ActivityName", owner.activityName)
102
+ };
103
+ clone.metadata = metadata;
104
+ if (clone.resource === "Property") {
105
+ clone.id = `Property_${owner.nodeId}`;
106
+ if (owner.operation && owner.parentResourceKey && clone.key === owner.operation) {
107
+ clone.key = `${owner.operation}_${owner.parentResourceKey}`;
108
+ }
109
+ metadata.ParentResourceKey = owner.parentResourceKey;
110
+ }
111
+ return clone;
112
+ }
113
+ function buildParameterPropertyResource(spec) {
114
+ const names = Object.keys(spec.parameters).join(",");
115
+ return {
116
+ resource: "Property",
117
+ key: spec.key,
118
+ id: `Property_${spec.nodeId}`,
119
+ value: Object.fromEntries(Object.entries(spec.parameters).map(([name, raw]) => [
120
+ name,
121
+ { defaultValue: String(raw), isExpression: false }
122
+ ])),
123
+ metadata: {
124
+ TriggerCreateParameters: names,
125
+ DebugQueryParameters: names,
126
+ ...optional("ActivityName", spec.activityName),
127
+ BindingsVersion: BINDINGS_VERSION,
128
+ ...optional("ObjectName", spec.objectName),
129
+ ParentResourceKey: spec.parentResourceKey
130
+ }
131
+ };
132
+ }
133
+ function upsertResourceBinding(bindings, row, mintId) {
134
+ const existing = bindings.find((binding) => binding.resource === row.resource && binding.resourceKey === row.resourceKey && binding.propertyAttribute === row.propertyAttribute);
135
+ if (existing) {
136
+ if (typeof existing.id !== "string" || existing.id === "") {
137
+ existing.id = mintId();
138
+ }
139
+ existing.name = row.name;
140
+ existing.default = row.default;
141
+ return { binding: existing, created: false };
142
+ }
143
+ const binding = {
144
+ id: mintId(),
145
+ name: row.name,
146
+ type: "string",
147
+ resource: row.resource,
148
+ resourceKey: row.resourceKey,
149
+ ...row.default ? { default: row.default } : {},
150
+ propertyAttribute: row.propertyAttribute
151
+ };
152
+ return { binding, created: true };
153
+ }
154
+ var isRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
155
+ // src/dap/external-execution.ts
156
+ function externalExecutionOf(metadata) {
157
+ if (typeof metadata !== "object" || metadata === null)
158
+ return;
159
+ const record = metadata;
160
+ const executionType = record.executionType;
161
+ if (typeof executionType !== "string" || executionType === "") {
162
+ return;
163
+ }
164
+ if (executionType !== "async" && executionType !== "hybrid") {
165
+ return { executionType };
166
+ }
167
+ const events = record.metadata?.events;
168
+ const eventMode = Array.isArray(events?.eventMode) ? String(events.eventMode[0] ?? "") : undefined;
169
+ const source = eventMode === "webhooks" ? events?.webhook : eventMode === "polling" ? events?.polling : undefined;
170
+ const eventTypes = source?.eventTypes;
171
+ return {
172
+ executionType,
173
+ ...eventMode && { eventMode },
174
+ ...eventTypes?.[0]?.operation && {
175
+ eventType: eventTypes[0].operation
176
+ }
177
+ };
178
+ }
179
+ function externalExecutionWarning(external, target) {
180
+ const { executionType, eventType } = external;
181
+ if (executionType === "sync" || eventType)
182
+ return;
183
+ return executionType === "async" || executionType === "hybrid" ? `"${target}" runs ${executionType}, but its metadata names no event it answers with, so the node has nothing to wait on and may never finish.` : `"${target}" has execution type "${executionType}", which is neither sync nor async, so it is saved as is and may not run.`;
184
+ }
185
+ var EXTERNAL_SERVICE_TYPES = {
186
+ agent: {
187
+ sync: "Intsvc.SyncAgentExecution",
188
+ async: "Intsvc.AsyncAgentExecution"
189
+ },
190
+ workflow: {
191
+ sync: "Intsvc.SyncWorkflowExecution",
192
+ async: "Intsvc.AsyncWorkflowExecution"
193
+ }
194
+ };
195
+ function externalServiceType(kind, executionType) {
196
+ const mode = executionType === "hybrid" ? "async" : executionType;
197
+ return mode === "sync" || mode === "async" ? EXTERNAL_SERVICE_TYPES[kind][mode] : undefined;
198
+ }
199
+ // src/dap/managed-http.ts
200
+ var MANAGED_HTTP_CONNECTOR_KEY = "uipath-uipath-http";
201
+ var MANAGED_HTTP_OBJECT_NAME = "http-request";
202
+ var MANAGED_HTTP_ACTIVITY_TYPE_ID = "5c4cc855-b42a-37e6-b910-de8588998fce";
203
+ var MANAGED_HTTP_ENDPOINT = "/http-request";
204
+ var IMPLICIT_CONNECTION = "ImplicitConnection";
205
+ var MANAGED_HTTP_METHODS = new Set([
206
+ "GET",
207
+ "POST",
208
+ "PUT",
209
+ "PATCH",
210
+ "DELETE",
211
+ "OPTIONS",
212
+ "HEAD"
213
+ ]);
214
+ var MANAGED_HTTP_KEYS = new Set([
215
+ "authentication",
216
+ "method",
217
+ "url",
218
+ "connectionId",
219
+ "folderKey",
220
+ "targetConnector",
221
+ "headers",
222
+ "query",
223
+ "body"
224
+ ]);
225
+ var isRecord2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
226
+ function managedHttpDetailErrors(config) {
227
+ const errors = [];
228
+ const auth = config.authentication;
229
+ if (auth !== "connector" && auth !== "manual") {
230
+ errors.push('authentication is required ("connector" or "manual")');
231
+ }
232
+ if (typeof config.method !== "string" || !MANAGED_HTTP_METHODS.has(config.method)) {
233
+ errors.push(`method must be one of: ${[...MANAGED_HTTP_METHODS].join(", ")}`);
234
+ }
235
+ if (auth === "connector") {
236
+ for (const key of ["connectionId", "folderKey", "targetConnector"]) {
237
+ if (typeof config[key] !== "string" || !config[key]) {
238
+ errors.push(`${key} is required for connector mode`);
239
+ }
240
+ }
241
+ if (config.url !== undefined && typeof config.url !== "string") {
242
+ errors.push("url must be a string");
243
+ }
244
+ } else if (auth === "manual") {
245
+ if (typeof config.url !== "string" || !config.url) {
246
+ errors.push("url is required for manual mode");
247
+ }
248
+ }
249
+ for (const key of ["headers", "query"]) {
250
+ if (config[key] !== undefined && !isRecord2(config[key])) {
251
+ errors.push(`${key} must be a JSON object`);
252
+ }
253
+ }
254
+ const unknownKeys = Object.keys(config).filter((key) => !MANAGED_HTTP_KEYS.has(key));
255
+ if (unknownKeys.length > 0) {
256
+ errors.push(`Unknown keys: ${unknownKeys.join(", ")}. Valid keys: ${[...MANAGED_HTTP_KEYS].join(", ")}`);
257
+ }
258
+ return errors;
259
+ }
260
+ function buildManagedHttpBodyParameters(detail) {
261
+ const body = {
262
+ authentication: detail.authentication,
263
+ method: detail.method
264
+ };
265
+ if (detail.authentication === "connector") {
266
+ body.targetConnector = detail.targetConnector;
267
+ body.connection = detail.connectionId;
268
+ if (detail.url !== undefined) {
269
+ body.path = detail.url;
270
+ body.url = detail.url;
271
+ }
272
+ } else {
273
+ body.url = detail.url;
274
+ }
275
+ if (detail.headers !== undefined)
276
+ body.headers = detail.headers;
277
+ if (detail.query !== undefined)
278
+ body.query = detail.query;
279
+ if (detail.body !== undefined)
280
+ body.body = detail.body;
281
+ return body;
282
+ }
283
+ var MANAGED_HTTP_TELEMETRY = {
284
+ connectorKey: MANAGED_HTTP_CONNECTOR_KEY,
285
+ connectorName: "HTTP",
286
+ operationType: "create",
287
+ objectName: MANAGED_HTTP_OBJECT_NAME,
288
+ objectDisplayName: "HTTP Request",
289
+ primaryKeyName: ""
290
+ };
291
+ export {
292
+ ACTIVITY_CONFIGURATION_VERSION,
293
+ BINDINGS_VERSION,
294
+ BINDING_ID_PLACEHOLDER_PATTERN,
295
+ CONN_BINDING_ID_PLACEHOLDER,
296
+ EXTERNAL_SERVICE_TYPES,
297
+ FOLDER_BINDING_ID_PLACEHOLDER,
298
+ IMPLICIT_CONNECTION,
299
+ JSON_STRING_PREFIX,
300
+ RESOURCE_BINDING_ID_PREFIX,
301
+ buildEventTriggerResource,
302
+ buildParameterPropertyResource,
303
+ eventTriggerResourceKey,
304
+ externalServiceType,
305
+ guardJsonString,
306
+ mapStringsDeep,
307
+ packageStoredBinding,
308
+ planResourceBindings,
309
+ resourceBindingIdPlaceholder,
310
+ restoreJsonStringsDeep,
311
+ storedActivityBindings,
312
+ stripJsonStringGuard,
313
+ upsertResourceBinding,
314
+ v2ConfigurationVersionEntry
315
+ };
316
+
317
+ //# debugId=8CB13C592E76C2FB64756E2164756E21