@uipath/test-manager-tool 1.206.0-preview.306 → 1.207.0-preview.307

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.
@@ -2,14 +2,14 @@ import {
2
2
  getSdkUserAgentToken,
3
3
  addSdkUserAgentHeader,
4
4
  installSdkUserAgentHeader
5
- } from "./tool-6mpkbszw.js";
5
+ } from "./tool-f4ytsjzn.js";
6
6
  import {
7
7
  catchError,
8
8
  extractErrorMessage,
9
9
  logger,
10
10
  resolveSessionIdentity,
11
11
  getAuthContext
12
- } from "./tool-0650qfw3.js";
12
+ } from "./tool-4xdq18pz.js";
13
13
 
14
14
  // ../orchestrator-sdk/generated/src/runtime.ts
15
15
  var BASE_PATH = "https://alpha.uipath.com/Ada/byoa/orchestrator_".replace(/\/+$/, "");
@@ -294,7 +294,7 @@ var package_default = {
294
294
  name: "@uipath/orchestrator-sdk",
295
295
  author: "UiPath",
296
296
  license: "SEE LICENSE IN LICENSE.txt",
297
- version: "1.206.0",
297
+ version: "1.207.0",
298
298
  repository: {
299
299
  type: "git",
300
300
  url: "https://github.com/UiPath/cli.git",
@@ -1206,6 +1206,36 @@ function MachineFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
1206
1206
  };
1207
1207
  }
1208
1208
  // ../orchestrator-sdk/generated/src/models/MachineRuntimeDto.ts
1209
+ var MachineRuntimeDtoTypeEnum = {
1210
+ NonProduction: "NonProduction",
1211
+ Attended: "Attended",
1212
+ Unattended: "Unattended",
1213
+ Development: "Development",
1214
+ Studio: "Studio",
1215
+ RpaDeveloper: "RpaDeveloper",
1216
+ StudioX: "StudioX",
1217
+ CitizenDeveloper: "CitizenDeveloper",
1218
+ Headless: "Headless",
1219
+ StudioPro: "StudioPro",
1220
+ RpaDeveloperPro: "RpaDeveloperPro",
1221
+ TestAutomation: "TestAutomation",
1222
+ AutomationCloud: "AutomationCloud",
1223
+ Serverless: "Serverless",
1224
+ AutomationKit: "AutomationKit",
1225
+ ServerlessTestAutomation: "ServerlessTestAutomation",
1226
+ AutomationCloudTestAutomation: "AutomationCloudTestAutomation",
1227
+ AttendedStudioWeb: "AttendedStudioWeb",
1228
+ Hosting: "Hosting",
1229
+ AssistantWeb: "AssistantWeb",
1230
+ ProcessOrchestration: "ProcessOrchestration",
1231
+ AgentService: "AgentService",
1232
+ AppTest: "AppTest",
1233
+ PerformanceTest: "PerformanceTest",
1234
+ BusinessRule: "BusinessRule",
1235
+ CaseManagement: "CaseManagement",
1236
+ Flow: "Flow",
1237
+ Local: "Local"
1238
+ };
1209
1239
  function MachineRuntimeDtoFromJSON(json) {
1210
1240
  return MachineRuntimeDtoFromJSONTyped(json, false);
1211
1241
  }
@@ -1539,6 +1569,7 @@ function UserEntityDtoFromJSONTyped(json, ignoreDiscriminator) {
1539
1569
  return {
1540
1570
  fullName: json["FullName"] == null ? undefined : json["FullName"],
1541
1571
  authenticationSource: json["AuthenticationSource"] == null ? undefined : json["AuthenticationSource"],
1572
+ emailAddress: json["EmailAddress"] == null ? undefined : json["EmailAddress"],
1542
1573
  key: json["Key"] == null ? undefined : json["Key"],
1543
1574
  userName: json["UserName"] == null ? undefined : json["UserName"],
1544
1575
  isInherited: json["IsInherited"] == null ? undefined : json["IsInherited"],
@@ -1848,6 +1879,9 @@ class FoldersApi2 extends BaseAPI {
1848
1879
  if (requestParameters["searchText"] != null) {
1849
1880
  queryParameters["searchText"] = requestParameters["searchText"];
1850
1881
  }
1882
+ if (requestParameters["includeTenantRoles"] != null) {
1883
+ queryParameters["includeTenantRoles"] = requestParameters["includeTenantRoles"];
1884
+ }
1851
1885
  if (requestParameters["$select"] != null) {
1852
1886
  queryParameters["$select"] = requestParameters["$select"];
1853
1887
  }
@@ -2375,6 +2409,22 @@ class MachinesApi2 extends BaseAPI {
2375
2409
  return await response.value();
2376
2410
  }
2377
2411
  }
2412
+ var MachinesGetRuntimesForFolderByFolderidProcessTypeEnum = {
2413
+ Undefined: "Undefined",
2414
+ Process: "Process",
2415
+ ProcessOrchestration: "ProcessOrchestration",
2416
+ WebApp: "WebApp",
2417
+ Agent: "Agent",
2418
+ TestAutomationProcess: "TestAutomationProcess",
2419
+ Api: "Api",
2420
+ McpServer: "MCPServer",
2421
+ BusinessRules: "BusinessRules",
2422
+ CaseManagement: "CaseManagement",
2423
+ Flow: "Flow",
2424
+ Function: "Function",
2425
+ System: "System",
2426
+ FlowAutomate: "FlowAutomate"
2427
+ };
2378
2428
  // ../orchestrator-sdk/generated/src/apis/PackageFeedsApi.ts
2379
2429
  class PackageFeedsApi2 extends BaseAPI {
2380
2430
  async packageFeedsGetFeedsRaw(requestParameters, initOverrides) {
@@ -2519,6 +2569,50 @@ class PersonalWorkspacesApi extends BaseAPI {
2519
2569
  const response = await this.personalWorkspacesGetPersonalWorkspaceRaw(requestParameters, initOverrides);
2520
2570
  return await response.value();
2521
2571
  }
2572
+ async personalWorkspacesStartExploringByIdRaw(requestParameters, initOverrides) {
2573
+ if (requestParameters["key"] == null) {
2574
+ throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling personalWorkspacesStartExploringById().');
2575
+ }
2576
+ const queryParameters = {};
2577
+ const headerParameters = {};
2578
+ if (this.configuration && this.configuration.accessToken) {
2579
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
2580
+ }
2581
+ let urlPath = `/odata/PersonalWorkspaces({key})/UiPath.Server.Configuration.OData.StartExploring`;
2582
+ urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
2583
+ const response = await this.request({
2584
+ path: urlPath,
2585
+ method: "POST",
2586
+ headers: headerParameters,
2587
+ query: queryParameters
2588
+ }, initOverrides);
2589
+ return new VoidApiResponse(response);
2590
+ }
2591
+ async personalWorkspacesStartExploringById(requestParameters, initOverrides) {
2592
+ await this.personalWorkspacesStartExploringByIdRaw(requestParameters, initOverrides);
2593
+ }
2594
+ async personalWorkspacesStopExploringByIdRaw(requestParameters, initOverrides) {
2595
+ if (requestParameters["key"] == null) {
2596
+ throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling personalWorkspacesStopExploringById().');
2597
+ }
2598
+ const queryParameters = {};
2599
+ const headerParameters = {};
2600
+ if (this.configuration && this.configuration.accessToken) {
2601
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
2602
+ }
2603
+ let urlPath = `/odata/PersonalWorkspaces({key})/UiPath.Server.Configuration.OData.StopExploring`;
2604
+ urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
2605
+ const response = await this.request({
2606
+ path: urlPath,
2607
+ method: "POST",
2608
+ headers: headerParameters,
2609
+ query: queryParameters
2610
+ }, initOverrides);
2611
+ return new VoidApiResponse(response);
2612
+ }
2613
+ async personalWorkspacesStopExploringById(requestParameters, initOverrides) {
2614
+ await this.personalWorkspacesStopExploringByIdRaw(requestParameters, initOverrides);
2615
+ }
2522
2616
  }
2523
2617
  // ../orchestrator-sdk/generated/src/apis/ProcessesApi.ts
2524
2618
  class ProcessesApi2 extends BaseAPI {
@@ -3121,27 +3215,40 @@ async function createApiClient2(ApiClass, options) {
3121
3215
  return new ApiClass(config);
3122
3216
  }
3123
3217
  // ../orchestrator-sdk/src/folder-resolver.ts
3218
+ function folderNotFound(input) {
3219
+ return Object.assign(new Error(`Folder not found: '${input}'.`), {
3220
+ errorCode: "not_found",
3221
+ retry: "RetryWillNotFix"
3222
+ });
3223
+ }
3124
3224
  var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
3125
3225
  async function resolveFolder2(input, options) {
3126
3226
  if (!input?.folderPath && !input?.folderKey) {
3127
3227
  return;
3128
3228
  }
3129
3229
  const config = await createOrchestratorConfig(options);
3130
- const foldersApi = new FoldersApi2(config);
3230
+ const signal = options?.signal;
3231
+ const foldersApi = abortable(new FoldersApi2(config), signal);
3131
3232
  if (input.folderKey) {
3132
3233
  if (!UUID_REGEX.test(input.folderKey)) {
3133
3234
  throw new Error(`Invalid folder key: '${input.folderKey}'. Expected a UUID (e.g. '12345678-1234-1234-1234-123456789abc').`);
3134
3235
  }
3135
3236
  return resolveByKey(foldersApi, input.folderKey);
3136
3237
  }
3137
- return resolveByPath(config, foldersApi, input.folderPath);
3238
+ return resolveByPath(config, foldersApi, input.folderPath, signal);
3239
+ }
3240
+ function abortable(api, signal) {
3241
+ return signal ? api.withPreMiddleware(async ({ url, init }) => ({
3242
+ url,
3243
+ init: { ...init, signal }
3244
+ })) : api;
3138
3245
  }
3139
3246
  async function resolveByKey(foldersApi, folderKey) {
3140
3247
  const folder = await foldersApi.foldersGetByKeyByIdentifier({
3141
3248
  identifier: folderKey
3142
3249
  });
3143
3250
  if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
3144
- throw new Error(`Folder not found: '${folderKey}'.`);
3251
+ throw folderNotFound(folderKey);
3145
3252
  }
3146
3253
  return {
3147
3254
  id: folder.id,
@@ -3151,14 +3258,14 @@ async function resolveByKey(foldersApi, folderKey) {
3151
3258
  feedType: folder.feedType
3152
3259
  };
3153
3260
  }
3154
- async function resolveByPath(config, foldersApi, folderPath) {
3261
+ async function resolveByPath(config, foldersApi, folderPath, signal) {
3155
3262
  const response = await foldersApi.foldersGet({
3156
3263
  $filter: `FullyQualifiedName eq '${folderPath.replace(/'/g, "''")}'`,
3157
3264
  $top: 1
3158
3265
  });
3159
- const folder = response.value?.[0] ?? await resolveInPersonalWorkspace(config, foldersApi, folderPath);
3266
+ const folder = response.value?.[0] ?? await resolveInPersonalWorkspace(config, foldersApi, folderPath, signal);
3160
3267
  if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
3161
- throw new Error(`Folder not found: '${folderPath}'.`);
3268
+ throw folderNotFound(folderPath);
3162
3269
  }
3163
3270
  return {
3164
3271
  id: folder.id,
@@ -3170,8 +3277,8 @@ async function resolveByPath(config, foldersApi, folderPath) {
3170
3277
  }
3171
3278
  var CURRENT_USER_FOLDER_PAGE_SIZE = 1000;
3172
3279
  var CURRENT_USER_FOLDER_PAGE_LIMIT = 50;
3173
- async function resolveInPersonalWorkspace(config, foldersApi, folderPath) {
3174
- const workspace = await lookupOrMiss("GetPersonalWorkspace", folderPath, () => new PersonalWorkspacesApi(config).personalWorkspacesGetPersonalWorkspace());
3280
+ async function resolveInPersonalWorkspace(config, foldersApi, folderPath, signal) {
3281
+ const workspace = await lookupOrMiss("GetPersonalWorkspace", folderPath, () => abortable(new PersonalWorkspacesApi(config), signal).personalWorkspacesGetPersonalWorkspace());
3175
3282
  if (!workspace?.key || !workspace.name) {
3176
3283
  return;
3177
3284
  }
@@ -3228,6 +3335,29 @@ function isLookupMiss(error) {
3228
3335
  const status = failure?.response?.status ?? failure?.status;
3229
3336
  return typeof status === "number" && status >= 400 && status < 500 && status !== 408 && status !== 429;
3230
3337
  }
3338
+ // ../orchestrator-sdk/src/folder-runtimes.ts
3339
+ var FOLDER_RUNTIMES = {
3340
+ [MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.Process]: [
3341
+ MachineRuntimeDtoTypeEnum.Serverless,
3342
+ MachineRuntimeDtoTypeEnum.AutomationCloud,
3343
+ MachineRuntimeDtoTypeEnum.AutomationCloudTestAutomation,
3344
+ MachineRuntimeDtoTypeEnum.AppTest,
3345
+ MachineRuntimeDtoTypeEnum.PerformanceTest,
3346
+ MachineRuntimeDtoTypeEnum.Unattended,
3347
+ MachineRuntimeDtoTypeEnum.NonProduction,
3348
+ MachineRuntimeDtoTypeEnum.TestAutomation
3349
+ ],
3350
+ [MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.TestAutomationProcess]: [
3351
+ MachineRuntimeDtoTypeEnum.Serverless,
3352
+ MachineRuntimeDtoTypeEnum.ServerlessTestAutomation,
3353
+ MachineRuntimeDtoTypeEnum.AutomationCloudTestAutomation,
3354
+ MachineRuntimeDtoTypeEnum.AutomationCloud,
3355
+ MachineRuntimeDtoTypeEnum.AppTest,
3356
+ MachineRuntimeDtoTypeEnum.TestAutomation,
3357
+ MachineRuntimeDtoTypeEnum.Unattended
3358
+ ],
3359
+ [MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.McpServer]: [MachineRuntimeDtoTypeEnum.Serverless]
3360
+ };
3231
3361
  // ../orchestrator-sdk/src/knowledge-bundles.ts
3232
3362
  var KB_INLINE_LIMITS = {
3233
3363
  maxObjectBytes: 16 * 1024 * 1024,
@@ -3244,4 +3374,4 @@ function quoteODataStringLiteral2(value) {
3244
3374
  }
3245
3375
  export { FolderDtoFeedTypeEnum2, FoldersApi2, MachinesApi2, PackageFeedsApi2, ProcessesApi2, UsersApi2, createApiClient2, resolveFolder2, quoteODataStringLiteral2 };
3246
3376
 
3247
- //# debugId=6AA212EA079CBD9C64756E2164756E21
3377
+ //# debugId=FF9C5BB52F07329264756E2164756E21