@uipath/solution-tool 1.206.0-preview.301 → 1.207.0-preview.305
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.
- package/dist/{archive-extract-ma0gy822.js → archive-extract-afgwacbg.js} +3 -3
- package/dist/{cleanup-command-service-8whhrsvy.js → cleanup-command-service-j9kawew9.js} +20 -15
- package/dist/deploy-delete-service-1erqap9a.js +23 -0
- package/dist/deploy-run-service-jbs6dxye.js +24 -0
- package/dist/{deploy-status-service-at6cxp1a.js → deploy-status-service-4zn90vds.js} +49 -25
- package/dist/deploy.js +21 -20
- package/dist/{deployment-search-40dknsk1.js → deployment-search-dwzahe4v.js} +9 -9
- package/dist/feed-resolver-d14rdjss.js +31 -0
- package/dist/feed-scope-failure-w16mze3z.js +20 -0
- package/dist/{feed-session-dvyfw5k7.js → feed-session-f2sby6t8.js} +6 -6
- package/dist/{first-party-service-6gf3n6d8.js → first-party-service-7cggb17y.js} +1 -1
- package/dist/folder-runtime-check-586c41dq.js +25 -0
- package/dist/{governance-options-am1hfj5b.js → governance-options-y2xsv7ff.js} +7 -7
- package/dist/{packager-tool-5vf0v538.js → index-6ma58k47.js} +33 -708
- package/dist/{index-p3x7ztdr.js → index-795rsz0e.js} +1 -1
- package/dist/{index-yjvmjpdn.js → index-pzkzbqbs.js} +12 -11
- package/dist/{index-1cfw8mj0.js → index-wfqzwh7k.js} +9 -7
- package/dist/index.js +26 -26
- package/dist/init.js +10 -10
- package/dist/{list-vsecskj1.js → list-6pe1nab5.js} +11 -11
- package/dist/models/pack-command-types.d.ts +12 -0
- package/dist/{node-vndr59bc.js → node-13wj5mzd.js} +6 -6
- package/dist/pack-command-service-j9bqnsn1.js +32 -0
- package/dist/{pack-project-re7s480k.js → pack-project-3sdddc42.js} +21 -18
- package/dist/pack.js +25 -22
- package/dist/{package-id-rx8gq6y2.js → package-id-5j4q232a.js} +3 -3
- package/dist/{packager-tool-vgrswa8p.js → packager-tool-1db1wqdy.js} +30 -8
- package/dist/{packager-tool-vx2c68sb.js → packager-tool-1dsxhz1r.js} +2 -2
- package/dist/{packager-tool-t2r6z24f.js → packager-tool-1tvhgac9.js} +15 -6
- package/dist/{packager-tool-4pt71nf1.js → packager-tool-2atxqqgd.js} +49 -24
- package/dist/packager-tool-3ft8hywr.js +449 -0
- package/dist/{packager-tool-g1c0xdh2.js → packager-tool-46x80z85.js} +8 -4
- package/dist/{packager-tool-gjfb0wcy.js → packager-tool-4hm40a32.js} +8 -74
- package/dist/{packager-tool-f15an17m.js → packager-tool-5p1vy335.js} +1 -1
- package/dist/packager-tool-612prgtc.js +140 -0
- package/dist/packager-tool-7gqn5apd.js +72 -0
- package/dist/{packager-tool-aws5w512.js → packager-tool-887bkh9y.js} +1 -1
- package/dist/{packager-tool-vj88gh5b.js → packager-tool-8tckw03n.js} +28 -9
- package/dist/{packager-tool-9vtp28fb.js → packager-tool-93qy1v8m.js} +52 -15
- package/dist/{packager-tool-fx4ws49n.js → packager-tool-cenfraf4.js} +2 -2
- package/dist/{packager-tool-chff74yz.js → packager-tool-cr1khqtm.js} +103 -166
- package/dist/{packager-tool-6tn79r1b.js → packager-tool-da3hvfyn.js} +528 -202
- package/dist/{packager-tool-2zn98p5r.js → packager-tool-dd937g7k.js} +4 -4
- package/dist/{packager-tool-a7s0gbxs.js → packager-tool-devc4w73.js} +7 -2
- package/dist/{packager-tool-v7h8s6yj.js → packager-tool-ewbkaecg.js} +18 -11
- package/dist/{packager-tool-d7v4083a.js → packager-tool-g08b669a.js} +22 -18
- package/dist/{packager-tool-m07vyk89.js → packager-tool-gb3dq79g.js} +36 -9
- package/dist/{packager-tool-395kmy70.js → packager-tool-gmbcn83x.js} +3 -3
- package/dist/{packager-tool-btz44ase.js → packager-tool-jhtsana2.js} +119 -52
- package/dist/{packager-tool-4rvfxkyh.js → packager-tool-jtg2arr8.js} +20 -8
- package/dist/{packager-tool-t39pjz7n.js → packager-tool-jtvhkavz.js} +48 -6
- package/dist/packager-tool-kffz64hn.js +279 -0
- package/dist/{packager-tool-p5322gew.js → packager-tool-kmwjscby.js} +88 -10
- package/dist/{packager-tool-ppj5f4y7.js → packager-tool-n1zrk6zv.js} +4 -2
- package/dist/{packager-tool-avrdp2za.js → packager-tool-pmc5txbm.js} +4 -6
- package/dist/{packager-tool-egc54x78.js → packager-tool-qhht1tc9.js} +2408 -771
- package/dist/{packager-tool-zcqfq3vc.js → packager-tool-qm876ezh.js} +84 -29
- package/dist/{packager-tool-resolver-30hxk8vm.js → packager-tool-resolver-y52kztnx.js} +6 -6
- package/dist/{packager-tool-3ejz0af8.js → packager-tool-rhg3mwkn.js} +14 -8
- package/dist/{packager-tool-ckrt4gyr.js → packager-tool-t9zked1m.js} +3 -3
- package/dist/{packager-tool-36w7az7k.js → packager-tool-tat0qs6z.js} +26 -10
- package/dist/packager-tool-tf0rn1tp.js +741 -0
- package/dist/{packager-tool-p5aar2k0.js → packager-tool-tmba5jv0.js} +140 -10
- package/dist/{packager-tool-vk3e239z.js → packager-tool-tqe3m1xp.js} +6 -6
- package/dist/{packager-tool-1ctvbx0h.js → packager-tool-tr3ttz5c.js} +1 -1
- package/dist/{packager-tool-k9dk39tg.js → packager-tool-txygqgb2.js} +3 -3
- package/dist/packager-tool-v6jcys3s.js +46 -0
- package/dist/packager-tool-w35s60sx.js +179 -0
- package/dist/{packager-tool-axqk17xw.js → packager-tool-xbfr6y2x.js} +142 -34
- package/dist/{packager-tool-2qsbh4kd.js → packager-tool-yfcscjfp.js} +50 -12
- package/dist/{packager-tool-ay4j9x92.js → packager-tool-ykq6gmhc.js} +19 -8
- package/dist/packager-tool.js +2 -2
- package/dist/prepare-solution-resources-sk3tyy8b.js +26 -0
- package/dist/{project-command-utils-82tja3k0.js → project-command-utils-7ygs8xq0.js} +20 -13
- package/dist/project-contributions-nzh06q0y.js +31 -0
- package/dist/project-identity-telemetry-47k2g7nq.js +18 -0
- package/dist/publish.js +14 -14
- package/dist/{resource-mutations-h6wfdqr4.js → resource-mutations-qcz2vcxe.js} +9 -9
- package/dist/{resource-version-lookup-xzgnvr48.js → resource-version-lookup-w3kzh4z9.js} +9 -9
- package/dist/resource.js +9 -9
- package/dist/{restore-command-service-wgqxp5tb.js → restore-command-service-m6c8fb7q.js} +20 -15
- package/dist/run-service-cmrzccnm.js +1055 -0
- package/dist/services/deploy-activate-service.d.ts +5 -2
- package/dist/services/deploy-config-file.d.ts +24 -0
- package/dist/services/deploy-delete-service.d.ts +1 -1
- package/dist/services/deploy-run-service.d.ts +8 -1
- package/dist/services/deploy-uninstall-service.d.ts +4 -2
- package/dist/services/deploy-upgrade-service.d.ts +23 -2
- package/dist/services/deployment-feed-locator.d.ts +19 -6
- package/dist/services/deployment-links.d.ts +16 -0
- package/dist/services/deployment-progress.d.ts +10 -0
- package/dist/services/deployment-search.d.ts +15 -2
- package/dist/services/deployment-state.d.ts +9 -0
- package/dist/services/feed-resolver.d.ts +17 -0
- package/dist/services/feed-selection.d.ts +59 -0
- package/dist/services/folder-runtime-check.d.ts +107 -0
- package/dist/services/incomplete-feed-sweep.d.ts +6 -0
- package/dist/services/pack-command-service.d.ts +6 -0
- package/dist/services/pack-project.d.ts +1 -1
- package/dist/services/package-metadata-rewrite.d.ts +13 -0
- package/dist/services/personal-workspace-resolver.d.ts +4 -1
- package/dist/services/prepare-solution-resources.d.ts +11 -6
- package/dist/services/project-contributions.d.ts +26 -2
- package/dist/services/project-identity-telemetry.d.ts +31 -0
- package/dist/services/solution-members.d.ts +31 -0
- package/dist/{ship-telemetry-19gx83af.js → ship-telemetry-9djqndmy.js} +4 -4
- package/dist/{solution-auth-jxcgd2m0.js → solution-auth-0e3qm74f.js} +3 -3
- package/dist/{solution-definition-helper-tqwd6cxn.js → solution-definition-helper-bkyhs1bd.js} +1 -1
- package/dist/{solution-identity-c23d9bfv.js → solution-identity-j63p6n81.js} +4 -4
- package/dist/templates/AGENTS.md +131 -24
- package/dist/tool.js +26 -26
- package/package.json +2 -2
- package/dist/deploy-delete-service-dwd4qb1m.js +0 -23
- package/dist/deploy-run-service-0kzfrvnn.js +0 -23
- package/dist/feed-resolver-w4y5aspe.js +0 -27
- package/dist/feed-scope-failure-4ef9zxcx.js +0 -20
- package/dist/pack-command-service-k7ebbfya.js +0 -29
- package/dist/packager-tool-vrqbbh01.js +0 -182
- package/dist/packager-tool-wwzg88qy.js +0 -74
- package/dist/prepare-solution-resources-h7zvnncd.js +0 -26
- package/dist/project-contributions-xx560n8y.js +0 -27
- package/dist/run-service-2rc4we5q.js +0 -506
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveSessionIdentity,
|
|
3
|
+
getAuthContext
|
|
4
|
+
} from "./packager-tool-jtvhkavz.js";
|
|
1
5
|
import {
|
|
2
6
|
catchError,
|
|
3
7
|
extractErrorMessage,
|
|
4
8
|
getSdkUserAgentToken,
|
|
5
9
|
addSdkUserAgentHeader,
|
|
6
10
|
installSdkUserAgentHeader
|
|
7
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-gb3dq79g.js";
|
|
8
12
|
import {
|
|
9
13
|
logger
|
|
10
|
-
} from "./packager-tool-
|
|
11
|
-
import {
|
|
12
|
-
resolveSessionIdentity,
|
|
13
|
-
getAuthContext
|
|
14
|
-
} from "./packager-tool-t39pjz7n.js";
|
|
14
|
+
} from "./packager-tool-xbfr6y2x.js";
|
|
15
15
|
|
|
16
16
|
// ../orchestrator-sdk/generated/src/runtime.ts
|
|
17
17
|
var BASE_PATH = "https://alpha.uipath.com/Ada/byoa/orchestrator_".replace(/\/+$/, "");
|
|
@@ -277,6 +277,18 @@ function SimpleFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
277
277
|
id: json["Id"] == null ? undefined : json["Id"]
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
|
+
// ../orchestrator-sdk/generated/src/models/AgentSettings.ts
|
|
281
|
+
function AgentSettingsFromJSON(json) {
|
|
282
|
+
return AgentSettingsFromJSONTyped(json, false);
|
|
283
|
+
}
|
|
284
|
+
function AgentSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
285
|
+
if (json == null) {
|
|
286
|
+
return json;
|
|
287
|
+
}
|
|
288
|
+
return {
|
|
289
|
+
memory: json["Memory"] == null ? undefined : json["Memory"]
|
|
290
|
+
};
|
|
291
|
+
}
|
|
280
292
|
// ../orchestrator-sdk/generated/src/models/TagDto.ts
|
|
281
293
|
function TagDtoFromJSON(json) {
|
|
282
294
|
return TagDtoFromJSONTyped(json, false);
|
|
@@ -292,6 +304,33 @@ function TagDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
292
304
|
displayValue: json["DisplayValue"] == null ? undefined : json["DisplayValue"]
|
|
293
305
|
};
|
|
294
306
|
}
|
|
307
|
+
function TagDtoToJSON(json) {
|
|
308
|
+
return TagDtoToJSONTyped(json, false);
|
|
309
|
+
}
|
|
310
|
+
function TagDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
311
|
+
if (value == null) {
|
|
312
|
+
return value;
|
|
313
|
+
}
|
|
314
|
+
return {
|
|
315
|
+
Name: value["name"],
|
|
316
|
+
DisplayName: value["displayName"],
|
|
317
|
+
Value: value["value"],
|
|
318
|
+
DisplayValue: value["displayValue"]
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
// ../orchestrator-sdk/generated/src/models/ArgumentMetadata.ts
|
|
322
|
+
function ArgumentMetadataFromJSON(json) {
|
|
323
|
+
return ArgumentMetadataFromJSONTyped(json, false);
|
|
324
|
+
}
|
|
325
|
+
function ArgumentMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
326
|
+
if (json == null) {
|
|
327
|
+
return json;
|
|
328
|
+
}
|
|
329
|
+
return {
|
|
330
|
+
input: json["Input"] == null ? undefined : json["Input"],
|
|
331
|
+
output: json["Output"] == null ? undefined : json["Output"]
|
|
332
|
+
};
|
|
333
|
+
}
|
|
295
334
|
// ../orchestrator-sdk/generated/src/models/AttendedRobotDto.ts
|
|
296
335
|
function AttendedRobotDtoFromJSON(json) {
|
|
297
336
|
return AttendedRobotDtoFromJSONTyped(json, false);
|
|
@@ -321,6 +360,19 @@ function AttendedRobotDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
321
360
|
RobotType: value["robotType"]
|
|
322
361
|
};
|
|
323
362
|
}
|
|
363
|
+
// ../orchestrator-sdk/generated/src/models/AutopilotForRobotsSettingsDto.ts
|
|
364
|
+
function AutopilotForRobotsSettingsDtoFromJSON(json) {
|
|
365
|
+
return AutopilotForRobotsSettingsDtoFromJSONTyped(json, false);
|
|
366
|
+
}
|
|
367
|
+
function AutopilotForRobotsSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
368
|
+
if (json == null) {
|
|
369
|
+
return json;
|
|
370
|
+
}
|
|
371
|
+
return {
|
|
372
|
+
enabled: json["Enabled"] == null ? undefined : json["Enabled"],
|
|
373
|
+
healingEnabled: json["HealingEnabled"] == null ? undefined : json["HealingEnabled"]
|
|
374
|
+
};
|
|
375
|
+
}
|
|
324
376
|
// ../orchestrator-sdk/generated/src/models/CurrentUserFolderDto.ts
|
|
325
377
|
function CurrentUserFolderDtoFromJSON(json) {
|
|
326
378
|
return CurrentUserFolderDtoFromJSONTyped(json, false);
|
|
@@ -340,6 +392,102 @@ function CurrentUserFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
340
392
|
id: json["Id"] == null ? undefined : json["Id"]
|
|
341
393
|
};
|
|
342
394
|
}
|
|
395
|
+
// ../orchestrator-sdk/generated/src/models/DeleteInactiveSessionsParameters.ts
|
|
396
|
+
function DeleteInactiveSessionsParametersToJSON(json) {
|
|
397
|
+
return DeleteInactiveSessionsParametersToJSONTyped(json, false);
|
|
398
|
+
}
|
|
399
|
+
function DeleteInactiveSessionsParametersToJSONTyped(value, ignoreDiscriminator = false) {
|
|
400
|
+
if (value == null) {
|
|
401
|
+
return value;
|
|
402
|
+
}
|
|
403
|
+
return {
|
|
404
|
+
sessionIds: value["sessionIds"]
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
// ../orchestrator-sdk/generated/src/models/EntryPointDataVariationDto.ts
|
|
408
|
+
function EntryPointDataVariationDtoFromJSON(json) {
|
|
409
|
+
return EntryPointDataVariationDtoFromJSONTyped(json, false);
|
|
410
|
+
}
|
|
411
|
+
function EntryPointDataVariationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
412
|
+
if (json == null) {
|
|
413
|
+
return json;
|
|
414
|
+
}
|
|
415
|
+
return {
|
|
416
|
+
content: json["Content"] == null ? undefined : json["Content"],
|
|
417
|
+
contentType: json["ContentType"] == null ? undefined : json["ContentType"],
|
|
418
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
// ../orchestrator-sdk/generated/src/models/EntryPointDto.ts
|
|
422
|
+
function EntryPointDtoFromJSON(json) {
|
|
423
|
+
return EntryPointDtoFromJSONTyped(json, false);
|
|
424
|
+
}
|
|
425
|
+
function EntryPointDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
426
|
+
if (json == null) {
|
|
427
|
+
return json;
|
|
428
|
+
}
|
|
429
|
+
return {
|
|
430
|
+
uniqueId: json["UniqueId"] == null ? undefined : json["UniqueId"],
|
|
431
|
+
path: json["Path"] == null ? undefined : json["Path"],
|
|
432
|
+
inputArguments: json["InputArguments"] == null ? undefined : json["InputArguments"],
|
|
433
|
+
outputArguments: json["OutputArguments"] == null ? undefined : json["OutputArguments"],
|
|
434
|
+
dataVariation: json["DataVariation"] == null ? undefined : EntryPointDataVariationDtoFromJSON(json["DataVariation"]),
|
|
435
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
// ../orchestrator-sdk/generated/src/models/SimpleRobotDto.ts
|
|
439
|
+
function SimpleRobotDtoFromJSON(json) {
|
|
440
|
+
return SimpleRobotDtoFromJSONTyped(json, false);
|
|
441
|
+
}
|
|
442
|
+
function SimpleRobotDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
443
|
+
if (json == null) {
|
|
444
|
+
return json;
|
|
445
|
+
}
|
|
446
|
+
return {
|
|
447
|
+
licenseKey: json["LicenseKey"] == null ? undefined : json["LicenseKey"],
|
|
448
|
+
machineName: json["MachineName"] == null ? undefined : json["MachineName"],
|
|
449
|
+
machineId: json["MachineId"] == null ? undefined : json["MachineId"],
|
|
450
|
+
name: json["Name"],
|
|
451
|
+
username: json["Username"] == null ? undefined : json["Username"],
|
|
452
|
+
externalName: json["ExternalName"] == null ? undefined : json["ExternalName"],
|
|
453
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
454
|
+
type: json["Type"],
|
|
455
|
+
hostingType: json["HostingType"],
|
|
456
|
+
provisionType: json["ProvisionType"] == null ? undefined : json["ProvisionType"],
|
|
457
|
+
password: json["Password"] == null ? undefined : json["Password"],
|
|
458
|
+
credentialStoreId: json["CredentialStoreId"] == null ? undefined : json["CredentialStoreId"],
|
|
459
|
+
userId: json["UserId"] == null ? undefined : json["UserId"],
|
|
460
|
+
enabled: json["Enabled"] == null ? undefined : json["Enabled"],
|
|
461
|
+
credentialType: json["CredentialType"] == null ? undefined : json["CredentialType"],
|
|
462
|
+
environments: json["Environments"] == null ? undefined : json["Environments"].map(EnvironmentDtoFromJSON),
|
|
463
|
+
robotEnvironments: json["RobotEnvironments"] == null ? undefined : json["RobotEnvironments"],
|
|
464
|
+
executionSettings: json["ExecutionSettings"] == null ? undefined : json["ExecutionSettings"],
|
|
465
|
+
isExternalLicensed: json["IsExternalLicensed"] == null ? undefined : json["IsExternalLicensed"],
|
|
466
|
+
limitConcurrentExecution: json["LimitConcurrentExecution"] == null ? undefined : json["LimitConcurrentExecution"],
|
|
467
|
+
lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
|
|
468
|
+
lastModifierUserId: json["LastModifierUserId"] == null ? undefined : json["LastModifierUserId"],
|
|
469
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
470
|
+
creatorUserId: json["CreatorUserId"] == null ? undefined : json["CreatorUserId"],
|
|
471
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// ../orchestrator-sdk/generated/src/models/EnvironmentDto.ts
|
|
476
|
+
function EnvironmentDtoFromJSON(json) {
|
|
477
|
+
return EnvironmentDtoFromJSONTyped2(json, false);
|
|
478
|
+
}
|
|
479
|
+
function EnvironmentDtoFromJSONTyped2(json, ignoreDiscriminator) {
|
|
480
|
+
if (json == null) {
|
|
481
|
+
return json;
|
|
482
|
+
}
|
|
483
|
+
return {
|
|
484
|
+
name: json["name"],
|
|
485
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
486
|
+
robots: json["robots"] == null ? undefined : json["robots"].map(SimpleRobotDtoFromJSON),
|
|
487
|
+
type: json["type"] == null ? undefined : json["type"],
|
|
488
|
+
id: json["id"] == null ? undefined : json["id"]
|
|
489
|
+
};
|
|
490
|
+
}
|
|
343
491
|
// ../orchestrator-sdk/generated/src/models/MachineVpnSettingsDto.ts
|
|
344
492
|
function MachineVpnSettingsDtoFromJSON(json) {
|
|
345
493
|
return MachineVpnSettingsDtoFromJSONTyped(json, false);
|
|
@@ -352,6 +500,17 @@ function MachineVpnSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
352
500
|
cidr: json["cidr"] == null ? undefined : json["cidr"]
|
|
353
501
|
};
|
|
354
502
|
}
|
|
503
|
+
function MachineVpnSettingsDtoToJSON(json) {
|
|
504
|
+
return MachineVpnSettingsDtoToJSONTyped(json, false);
|
|
505
|
+
}
|
|
506
|
+
function MachineVpnSettingsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
507
|
+
if (value == null) {
|
|
508
|
+
return value;
|
|
509
|
+
}
|
|
510
|
+
return {
|
|
511
|
+
cidr: value["cidr"]
|
|
512
|
+
};
|
|
513
|
+
}
|
|
355
514
|
|
|
356
515
|
// ../orchestrator-sdk/generated/src/models/MaintenanceWindowDto.ts
|
|
357
516
|
function MaintenanceWindowDtoFromJSON(json) {
|
|
@@ -370,6 +529,22 @@ function MaintenanceWindowDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
370
529
|
nextExecutionTime: json["nextExecutionTime"] == null ? undefined : new Date(json["nextExecutionTime"])
|
|
371
530
|
};
|
|
372
531
|
}
|
|
532
|
+
function MaintenanceWindowDtoToJSON(json) {
|
|
533
|
+
return MaintenanceWindowDtoToJSONTyped(json, false);
|
|
534
|
+
}
|
|
535
|
+
function MaintenanceWindowDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
536
|
+
if (value == null) {
|
|
537
|
+
return value;
|
|
538
|
+
}
|
|
539
|
+
return {
|
|
540
|
+
enabled: value["enabled"],
|
|
541
|
+
jobStopStrategy: value["jobStopStrategy"],
|
|
542
|
+
cronExpression: value["cronExpression"],
|
|
543
|
+
timezoneId: value["timezoneId"],
|
|
544
|
+
duration: value["duration"],
|
|
545
|
+
nextExecutionTime: value["nextExecutionTime"] == null ? value["nextExecutionTime"] : value["nextExecutionTime"].toISOString()
|
|
546
|
+
};
|
|
547
|
+
}
|
|
373
548
|
|
|
374
549
|
// ../orchestrator-sdk/generated/src/models/UpdateInfoDto.ts
|
|
375
550
|
function UpdateInfoDtoFromJSON(json) {
|
|
@@ -402,6 +577,19 @@ function MachinesRobotVersionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
402
577
|
machineId: json["MachineId"] == null ? undefined : json["MachineId"]
|
|
403
578
|
};
|
|
404
579
|
}
|
|
580
|
+
function MachinesRobotVersionDtoToJSON(json) {
|
|
581
|
+
return MachinesRobotVersionDtoToJSONTyped(json, false);
|
|
582
|
+
}
|
|
583
|
+
function MachinesRobotVersionDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
584
|
+
if (value == null) {
|
|
585
|
+
return value;
|
|
586
|
+
}
|
|
587
|
+
return {
|
|
588
|
+
Count: value["count"],
|
|
589
|
+
Version: value["version"],
|
|
590
|
+
MachineId: value["machineId"]
|
|
591
|
+
};
|
|
592
|
+
}
|
|
405
593
|
|
|
406
594
|
// ../orchestrator-sdk/generated/src/models/UpdatePolicyDto.ts
|
|
407
595
|
function UpdatePolicyDtoFromJSON(json) {
|
|
@@ -443,6 +631,66 @@ function RobotUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
443
631
|
hasTriggers: json["HasTriggers"] == null ? undefined : json["HasTriggers"]
|
|
444
632
|
};
|
|
445
633
|
}
|
|
634
|
+
function RobotUserDtoToJSON(json) {
|
|
635
|
+
return RobotUserDtoToJSONTyped(json, false);
|
|
636
|
+
}
|
|
637
|
+
function RobotUserDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
638
|
+
if (value == null) {
|
|
639
|
+
return value;
|
|
640
|
+
}
|
|
641
|
+
return {
|
|
642
|
+
UserName: value["userName"],
|
|
643
|
+
RobotId: value["robotId"],
|
|
644
|
+
HasTriggers: value["hasTriggers"]
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// ../orchestrator-sdk/generated/src/models/ExtendedMachineDto.ts
|
|
649
|
+
function ExtendedMachineDtoFromJSON(json) {
|
|
650
|
+
return ExtendedMachineDtoFromJSONTyped(json, false);
|
|
651
|
+
}
|
|
652
|
+
function ExtendedMachineDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
653
|
+
if (json == null) {
|
|
654
|
+
return json;
|
|
655
|
+
}
|
|
656
|
+
return {
|
|
657
|
+
licenseKey: json["LicenseKey"] == null ? undefined : json["LicenseKey"],
|
|
658
|
+
name: json["Name"],
|
|
659
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
660
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
661
|
+
scope: json["Scope"] == null ? undefined : json["Scope"],
|
|
662
|
+
nonProductionSlots: json["NonProductionSlots"] == null ? undefined : json["NonProductionSlots"],
|
|
663
|
+
unattendedSlots: json["UnattendedSlots"] == null ? undefined : json["UnattendedSlots"],
|
|
664
|
+
headlessSlots: json["HeadlessSlots"] == null ? undefined : json["HeadlessSlots"],
|
|
665
|
+
testAutomationSlots: json["TestAutomationSlots"] == null ? undefined : json["TestAutomationSlots"],
|
|
666
|
+
hostingSlots: json["HostingSlots"] == null ? undefined : json["HostingSlots"],
|
|
667
|
+
appTestSlots: json["AppTestSlots"] == null ? undefined : json["AppTestSlots"],
|
|
668
|
+
performanceTestSlots: json["PerformanceTestSlots"] == null ? undefined : json["PerformanceTestSlots"],
|
|
669
|
+
agentSlots: json["AgentSlots"] == null ? undefined : json["AgentSlots"],
|
|
670
|
+
functionSlots: json["FunctionSlots"] == null ? undefined : json["FunctionSlots"],
|
|
671
|
+
verticalsRpaSlots: json["VerticalsRpaSlots"] == null ? undefined : json["VerticalsRpaSlots"],
|
|
672
|
+
verticalsAgentSlots: json["VerticalsAgentSlots"] == null ? undefined : json["VerticalsAgentSlots"],
|
|
673
|
+
verticalsFunctionSlots: json["VerticalsFunctionSlots"] == null ? undefined : json["VerticalsFunctionSlots"],
|
|
674
|
+
executionOptions: json["ExecutionOptions"] == null ? undefined : json["ExecutionOptions"],
|
|
675
|
+
automationCloudSlots: json["AutomationCloudSlots"] == null ? undefined : json["AutomationCloudSlots"],
|
|
676
|
+
automationCloudTestAutomationSlots: json["AutomationCloudTestAutomationSlots"] == null ? undefined : json["AutomationCloudTestAutomationSlots"],
|
|
677
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
678
|
+
endpointDetectionStatus: json["EndpointDetectionStatus"] == null ? undefined : json["EndpointDetectionStatus"],
|
|
679
|
+
robotVersions: json["RobotVersions"] == null ? undefined : json["RobotVersions"].map(MachinesRobotVersionDtoFromJSON),
|
|
680
|
+
robotUsers: json["RobotUsers"] == null ? undefined : json["RobotUsers"].map(RobotUserDtoFromJSON),
|
|
681
|
+
automationType: json["AutomationType"] == null ? undefined : json["AutomationType"],
|
|
682
|
+
targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
|
|
683
|
+
serverlessLicensingModel: json["ServerlessLicensingModel"] == null ? undefined : json["ServerlessLicensingModel"],
|
|
684
|
+
updatePolicy: json["UpdatePolicy"] == null ? undefined : UpdatePolicyDtoFromJSON(json["UpdatePolicy"]),
|
|
685
|
+
clientSecret: json["ClientSecret"] == null ? undefined : json["ClientSecret"],
|
|
686
|
+
tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
|
|
687
|
+
maintenanceWindow: json["MaintenanceWindow"] == null ? undefined : MaintenanceWindowDtoFromJSON(json["MaintenanceWindow"]),
|
|
688
|
+
vpnSettings: json["VpnSettings"] == null ? undefined : MachineVpnSettingsDtoFromJSON(json["VpnSettings"]),
|
|
689
|
+
machineSettings: json["MachineSettings"] == null ? undefined : json["MachineSettings"],
|
|
690
|
+
id: json["Id"] == null ? undefined : json["Id"],
|
|
691
|
+
updateInfo: json["UpdateInfo"] == null ? undefined : UpdateInfoDtoFromJSON(json["UpdateInfo"])
|
|
692
|
+
};
|
|
693
|
+
}
|
|
446
694
|
// ../orchestrator-sdk/generated/src/models/MachineAssignmentsDto.ts
|
|
447
695
|
function MachineAssignmentsDtoToJSON(json) {
|
|
448
696
|
return MachineAssignmentsDtoToJSONTyped(json, false);
|
|
@@ -616,6 +864,23 @@ function FolderUpdateNameDescriptionRequestToJSONTyped(value, ignoreDiscriminato
|
|
|
616
864
|
description: value["description"]
|
|
617
865
|
};
|
|
618
866
|
}
|
|
867
|
+
// ../orchestrator-sdk/generated/src/models/JobErrorDto.ts
|
|
868
|
+
function JobErrorDtoFromJSON(json) {
|
|
869
|
+
return JobErrorDtoFromJSONTyped(json, false);
|
|
870
|
+
}
|
|
871
|
+
function JobErrorDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
872
|
+
if (json == null) {
|
|
873
|
+
return json;
|
|
874
|
+
}
|
|
875
|
+
return {
|
|
876
|
+
code: json["code"] == null ? undefined : json["code"],
|
|
877
|
+
title: json["title"] == null ? undefined : json["title"],
|
|
878
|
+
detail: json["detail"] == null ? undefined : json["detail"],
|
|
879
|
+
category: json["category"] == null ? undefined : json["category"],
|
|
880
|
+
status: json["status"] == null ? undefined : json["status"],
|
|
881
|
+
timestamp: json["timestamp"] == null ? undefined : new Date(json["timestamp"])
|
|
882
|
+
};
|
|
883
|
+
}
|
|
619
884
|
// ../orchestrator-sdk/generated/src/models/OrganizationUnitDto.ts
|
|
620
885
|
function OrganizationUnitDtoFromJSON(json) {
|
|
621
886
|
return OrganizationUnitDtoFromJSONTyped(json, false);
|
|
@@ -765,62 +1030,12 @@ function UnattendedRobotDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
765
1030
|
MachineMappingsCount: value["machineMappingsCount"]
|
|
766
1031
|
};
|
|
767
1032
|
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
function MachineFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
773
|
-
if (json == null) {
|
|
774
|
-
return json;
|
|
775
|
-
}
|
|
776
|
-
return {
|
|
777
|
-
licenseKey: json["LicenseKey"] == null ? undefined : json["LicenseKey"],
|
|
778
|
-
name: json["Name"],
|
|
779
|
-
description: json["Description"] == null ? undefined : json["Description"],
|
|
780
|
-
type: json["Type"] == null ? undefined : json["Type"],
|
|
781
|
-
scope: json["Scope"] == null ? undefined : json["Scope"],
|
|
782
|
-
nonProductionSlots: json["NonProductionSlots"] == null ? undefined : json["NonProductionSlots"],
|
|
783
|
-
unattendedSlots: json["UnattendedSlots"] == null ? undefined : json["UnattendedSlots"],
|
|
784
|
-
headlessSlots: json["HeadlessSlots"] == null ? undefined : json["HeadlessSlots"],
|
|
785
|
-
testAutomationSlots: json["TestAutomationSlots"] == null ? undefined : json["TestAutomationSlots"],
|
|
786
|
-
hostingSlots: json["HostingSlots"] == null ? undefined : json["HostingSlots"],
|
|
787
|
-
appTestSlots: json["AppTestSlots"] == null ? undefined : json["AppTestSlots"],
|
|
788
|
-
performanceTestSlots: json["PerformanceTestSlots"] == null ? undefined : json["PerformanceTestSlots"],
|
|
789
|
-
agentSlots: json["AgentSlots"] == null ? undefined : json["AgentSlots"],
|
|
790
|
-
functionSlots: json["FunctionSlots"] == null ? undefined : json["FunctionSlots"],
|
|
791
|
-
verticalsRpaSlots: json["VerticalsRpaSlots"] == null ? undefined : json["VerticalsRpaSlots"],
|
|
792
|
-
verticalsAgentSlots: json["VerticalsAgentSlots"] == null ? undefined : json["VerticalsAgentSlots"],
|
|
793
|
-
verticalsFunctionSlots: json["VerticalsFunctionSlots"] == null ? undefined : json["VerticalsFunctionSlots"],
|
|
794
|
-
executionOptions: json["ExecutionOptions"] == null ? undefined : json["ExecutionOptions"],
|
|
795
|
-
automationCloudSlots: json["AutomationCloudSlots"] == null ? undefined : json["AutomationCloudSlots"],
|
|
796
|
-
automationCloudTestAutomationSlots: json["AutomationCloudTestAutomationSlots"] == null ? undefined : json["AutomationCloudTestAutomationSlots"],
|
|
797
|
-
key: json["Key"] == null ? undefined : json["Key"],
|
|
798
|
-
endpointDetectionStatus: json["EndpointDetectionStatus"] == null ? undefined : json["EndpointDetectionStatus"],
|
|
799
|
-
robotVersions: json["RobotVersions"] == null ? undefined : json["RobotVersions"].map(MachinesRobotVersionDtoFromJSON),
|
|
800
|
-
robotUsers: json["RobotUsers"] == null ? undefined : json["RobotUsers"].map(RobotUserDtoFromJSON),
|
|
801
|
-
automationType: json["AutomationType"] == null ? undefined : json["AutomationType"],
|
|
802
|
-
targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
|
|
803
|
-
serverlessLicensingModel: json["ServerlessLicensingModel"] == null ? undefined : json["ServerlessLicensingModel"],
|
|
804
|
-
updatePolicy: json["UpdatePolicy"] == null ? undefined : UpdatePolicyDtoFromJSON(json["UpdatePolicy"]),
|
|
805
|
-
clientSecret: json["ClientSecret"] == null ? undefined : json["ClientSecret"],
|
|
806
|
-
tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
|
|
807
|
-
maintenanceWindow: json["MaintenanceWindow"] == null ? undefined : MaintenanceWindowDtoFromJSON(json["MaintenanceWindow"]),
|
|
808
|
-
vpnSettings: json["VpnSettings"] == null ? undefined : MachineVpnSettingsDtoFromJSON(json["VpnSettings"]),
|
|
809
|
-
machineSettings: json["MachineSettings"] == null ? undefined : json["MachineSettings"],
|
|
810
|
-
id: json["Id"] == null ? undefined : json["Id"],
|
|
811
|
-
isAssignedToFolder: json["IsAssignedToFolder"] == null ? undefined : json["IsAssignedToFolder"],
|
|
812
|
-
hasMachineRobots: json["HasMachineRobots"] == null ? undefined : json["HasMachineRobots"],
|
|
813
|
-
isInherited: json["IsInherited"] == null ? undefined : json["IsInherited"],
|
|
814
|
-
propagateToSubFolders: json["PropagateToSubFolders"] == null ? undefined : json["PropagateToSubFolders"],
|
|
815
|
-
inheritedFromFolderName: json["InheritedFromFolderName"] == null ? undefined : json["InheritedFromFolderName"],
|
|
816
|
-
updateInfo: json["UpdateInfo"] == null ? undefined : UpdateInfoDtoFromJSON(json["UpdateInfo"])
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
|
-
// ../orchestrator-sdk/generated/src/models/UserDto.ts
|
|
820
|
-
function UserDtoFromJSON(json) {
|
|
821
|
-
return UserDtoFromJSONTyped(json, false);
|
|
1033
|
+
|
|
1034
|
+
// ../orchestrator-sdk/generated/src/models/SimpleUserDto.ts
|
|
1035
|
+
function SimpleUserDtoFromJSON(json) {
|
|
1036
|
+
return SimpleUserDtoFromJSONTyped(json, false);
|
|
822
1037
|
}
|
|
823
|
-
function
|
|
1038
|
+
function SimpleUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
824
1039
|
if (json == null) {
|
|
825
1040
|
return json;
|
|
826
1041
|
}
|
|
@@ -871,384 +1086,1906 @@ function UserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
871
1086
|
id: json["Id"] == null ? undefined : json["Id"]
|
|
872
1087
|
};
|
|
873
1088
|
}
|
|
874
|
-
|
|
875
|
-
|
|
1089
|
+
|
|
1090
|
+
// ../orchestrator-sdk/generated/src/models/ReleaseVersionDto.ts
|
|
1091
|
+
function ReleaseVersionDtoFromJSON(json) {
|
|
1092
|
+
return ReleaseVersionDtoFromJSONTyped(json, false);
|
|
876
1093
|
}
|
|
877
|
-
function
|
|
878
|
-
if (
|
|
879
|
-
return
|
|
1094
|
+
function ReleaseVersionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1095
|
+
if (json == null) {
|
|
1096
|
+
return json;
|
|
880
1097
|
}
|
|
881
1098
|
return {
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
LastLoginTime: value["lastLoginTime"] == null ? value["lastLoginTime"] : value["lastLoginTime"].toISOString(),
|
|
890
|
-
IsActive: value["isActive"],
|
|
891
|
-
CreationTime: value["creationTime"] == null ? value["creationTime"] : value["creationTime"].toISOString(),
|
|
892
|
-
AuthenticationSource: value["authenticationSource"],
|
|
893
|
-
OrganizationUnits: value["organizationUnits"] == null ? undefined : value["organizationUnits"].map(OrganizationUnitDtoToJSON),
|
|
894
|
-
Password: value["password"],
|
|
895
|
-
IsExternalLicensed: value["isExternalLicensed"],
|
|
896
|
-
UserRoles: value["userRoles"] == null ? undefined : value["userRoles"].map(UserRoleDtoToJSON),
|
|
897
|
-
RolesList: value["rolesList"],
|
|
898
|
-
LoginProviders: value["loginProviders"],
|
|
899
|
-
TenantId: value["tenantId"],
|
|
900
|
-
TenancyName: value["tenancyName"],
|
|
901
|
-
TenantDisplayName: value["tenantDisplayName"],
|
|
902
|
-
TenantKey: value["tenantKey"],
|
|
903
|
-
Type: value["type"],
|
|
904
|
-
ProvisionType: value["provisionType"],
|
|
905
|
-
LicenseType: value["licenseType"],
|
|
906
|
-
RobotProvision: AttendedRobotDtoToJSON(value["robotProvision"]),
|
|
907
|
-
UnattendedRobot: UnattendedRobotDtoToJSON(value["unattendedRobot"]),
|
|
908
|
-
NotificationSubscription: UserNotificationSubscriptionToJSON(value["notificationSubscription"]),
|
|
909
|
-
Key: value["key"],
|
|
910
|
-
MayHaveUserSession: value["mayHaveUserSession"],
|
|
911
|
-
MayHaveRobotSession: value["mayHaveRobotSession"],
|
|
912
|
-
MayHaveUnattendedSession: value["mayHaveUnattendedSession"],
|
|
913
|
-
MayHavePersonalWorkspace: value["mayHavePersonalWorkspace"],
|
|
914
|
-
RestrictToPersonalWorkspace: value["restrictToPersonalWorkspace"],
|
|
915
|
-
UpdatePolicy: UpdatePolicyDtoToJSON(value["updatePolicy"]),
|
|
916
|
-
AccountId: value["accountId"],
|
|
917
|
-
HasOnlyInheritedPrivileges: value["hasOnlyInheritedPrivileges"],
|
|
918
|
-
ExplicitMayHaveUserSession: value["explicitMayHaveUserSession"],
|
|
919
|
-
ExplicitMayHaveRobotSession: value["explicitMayHaveRobotSession"],
|
|
920
|
-
ExplicitMayHavePersonalWorkspace: value["explicitMayHavePersonalWorkspace"],
|
|
921
|
-
ExplicitRestrictToPersonalWorkspace: value["explicitRestrictToPersonalWorkspace"],
|
|
922
|
-
LastModificationTime: value["lastModificationTime"] == null ? value["lastModificationTime"] : value["lastModificationTime"].toISOString(),
|
|
923
|
-
LastModifierUserId: value["lastModifierUserId"],
|
|
924
|
-
CreatorUserId: value["creatorUserId"],
|
|
925
|
-
Id: value["id"]
|
|
1099
|
+
releaseId: json["ReleaseId"],
|
|
1100
|
+
versionNumber: json["VersionNumber"],
|
|
1101
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
1102
|
+
releaseName: json["ReleaseName"] == null ? undefined : json["ReleaseName"],
|
|
1103
|
+
processKey: json["ProcessKey"] == null ? undefined : json["ProcessKey"],
|
|
1104
|
+
runtimeProfile: json["RuntimeProfile"] == null ? undefined : json["RuntimeProfile"],
|
|
1105
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
926
1106
|
};
|
|
927
1107
|
}
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
1108
|
+
|
|
1109
|
+
// ../orchestrator-sdk/generated/src/models/ProcessSettingsDto.ts
|
|
1110
|
+
function ProcessSettingsDtoFromJSON(json) {
|
|
1111
|
+
return ProcessSettingsDtoFromJSONTyped(json, false);
|
|
931
1112
|
}
|
|
932
|
-
function
|
|
1113
|
+
function ProcessSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
933
1114
|
if (json == null) {
|
|
934
1115
|
return json;
|
|
935
1116
|
}
|
|
936
1117
|
return {
|
|
937
|
-
|
|
1118
|
+
errorRecordingEnabled: json["ErrorRecordingEnabled"] == null ? undefined : json["ErrorRecordingEnabled"],
|
|
1119
|
+
duration: json["Duration"] == null ? undefined : json["Duration"],
|
|
1120
|
+
frequency: json["Frequency"] == null ? undefined : json["Frequency"],
|
|
1121
|
+
quality: json["Quality"] == null ? undefined : json["Quality"],
|
|
1122
|
+
autoStartProcess: json["AutoStartProcess"] == null ? undefined : json["AutoStartProcess"],
|
|
1123
|
+
alwaysRunning: json["AlwaysRunning"] == null ? undefined : json["AlwaysRunning"],
|
|
1124
|
+
autopilotForRobots: json["AutopilotForRobots"] == null ? undefined : AutopilotForRobotsSettingsDtoFromJSON(json["AutopilotForRobots"]),
|
|
1125
|
+
agentSettings: json["AgentSettings"] == null ? undefined : AgentSettingsFromJSON(json["AgentSettings"]),
|
|
1126
|
+
runMode: json["RunMode"] == null ? undefined : json["RunMode"]
|
|
938
1127
|
};
|
|
939
1128
|
}
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
1129
|
+
|
|
1130
|
+
// ../orchestrator-sdk/generated/src/models/NameValueDto.ts
|
|
1131
|
+
function NameValueDtoFromJSON(json) {
|
|
1132
|
+
return NameValueDtoFromJSONTyped(json, false);
|
|
943
1133
|
}
|
|
944
|
-
function
|
|
1134
|
+
function NameValueDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
945
1135
|
if (json == null) {
|
|
946
1136
|
return json;
|
|
947
1137
|
}
|
|
948
1138
|
return {
|
|
949
|
-
|
|
1139
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
1140
|
+
value: json["Value"] == null ? undefined : json["Value"]
|
|
950
1141
|
};
|
|
951
1142
|
}
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1143
|
+
|
|
1144
|
+
// ../orchestrator-sdk/generated/src/models/ResourceOverwriteDto.ts
|
|
1145
|
+
function ResourceOverwriteDtoFromJSON(json) {
|
|
1146
|
+
return ResourceOverwriteDtoFromJSONTyped(json, false);
|
|
955
1147
|
}
|
|
956
|
-
function
|
|
1148
|
+
function ResourceOverwriteDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
957
1149
|
if (json == null) {
|
|
958
1150
|
return json;
|
|
959
1151
|
}
|
|
960
1152
|
return {
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
exploringUserIds: json["ExploringUserIds"] == null ? undefined : json["ExploringUserIds"],
|
|
969
|
-
id: json["Id"] == null ? undefined : json["Id"]
|
|
1153
|
+
resourceKey: json["ResourceKey"],
|
|
1154
|
+
resourceType: json["ResourceType"],
|
|
1155
|
+
entityId: json["EntityId"] == null ? undefined : json["EntityId"],
|
|
1156
|
+
entityDisplayName: json["EntityDisplayName"] == null ? undefined : json["EntityDisplayName"],
|
|
1157
|
+
entityFolderId: json["EntityFolderId"] == null ? undefined : json["EntityFolderId"],
|
|
1158
|
+
properties: json["Properties"] == null ? undefined : json["Properties"],
|
|
1159
|
+
properties2: json["Properties2"] == null ? undefined : json["Properties2"].map(NameValueDtoFromJSON)
|
|
970
1160
|
};
|
|
971
1161
|
}
|
|
972
1162
|
|
|
973
|
-
// ../orchestrator-sdk/generated/src/models/
|
|
974
|
-
function
|
|
975
|
-
return
|
|
1163
|
+
// ../orchestrator-sdk/generated/src/models/VideoRecordingSettingsDto.ts
|
|
1164
|
+
function VideoRecordingSettingsDtoFromJSON(json) {
|
|
1165
|
+
return VideoRecordingSettingsDtoFromJSONTyped(json, false);
|
|
976
1166
|
}
|
|
977
|
-
function
|
|
1167
|
+
function VideoRecordingSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
978
1168
|
if (json == null) {
|
|
979
1169
|
return json;
|
|
980
1170
|
}
|
|
981
1171
|
return {
|
|
982
|
-
|
|
1172
|
+
videoRecordingType: json["VideoRecordingType"] == null ? undefined : json["VideoRecordingType"],
|
|
1173
|
+
queueItemVideoRecordingType: json["QueueItemVideoRecordingType"] == null ? undefined : json["QueueItemVideoRecordingType"],
|
|
1174
|
+
maxDurationSeconds: json["MaxDurationSeconds"] == null ? undefined : json["MaxDurationSeconds"]
|
|
983
1175
|
};
|
|
984
1176
|
}
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1177
|
+
|
|
1178
|
+
// ../orchestrator-sdk/generated/src/models/SimpleReleaseDto.ts
|
|
1179
|
+
function SimpleReleaseDtoFromJSON(json) {
|
|
1180
|
+
return SimpleReleaseDtoFromJSONTyped(json, false);
|
|
988
1181
|
}
|
|
989
|
-
function
|
|
1182
|
+
function SimpleReleaseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
990
1183
|
if (json == null) {
|
|
991
1184
|
return json;
|
|
992
1185
|
}
|
|
993
1186
|
return {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1187
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1188
|
+
processKey: json["ProcessKey"],
|
|
1189
|
+
processVersion: json["ProcessVersion"],
|
|
1190
|
+
projectKey: json["ProjectKey"] == null ? undefined : json["ProjectKey"],
|
|
1191
|
+
isLatestVersion: json["IsLatestVersion"] == null ? undefined : json["IsLatestVersion"],
|
|
1192
|
+
isProcessDeleted: json["IsProcessDeleted"] == null ? undefined : json["IsProcessDeleted"],
|
|
1193
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
1194
|
+
name: json["Name"],
|
|
1195
|
+
environmentId: json["EnvironmentId"] == null ? undefined : json["EnvironmentId"],
|
|
1196
|
+
environmentName: json["EnvironmentName"] == null ? undefined : json["EnvironmentName"],
|
|
1197
|
+
environment: json["Environment"] == null ? undefined : EnvironmentDtoFromJSON(json["Environment"]),
|
|
1198
|
+
entryPointId: json["EntryPointId"] == null ? undefined : json["EntryPointId"],
|
|
1199
|
+
entryPointPath: json["EntryPointPath"] == null ? undefined : json["EntryPointPath"],
|
|
1200
|
+
entryPoint: json["EntryPoint"] == null ? undefined : EntryPointDtoFromJSON(json["EntryPoint"]),
|
|
1201
|
+
inputArguments: json["InputArguments"] == null ? undefined : json["InputArguments"],
|
|
1202
|
+
environmentVariables: json["EnvironmentVariables"] == null ? undefined : json["EnvironmentVariables"],
|
|
1203
|
+
processType: json["ProcessType"] == null ? undefined : json["ProcessType"],
|
|
1204
|
+
supportsMultipleEntryPoints: json["SupportsMultipleEntryPoints"] == null ? undefined : json["SupportsMultipleEntryPoints"],
|
|
1205
|
+
requiresUserInteraction: json["RequiresUserInteraction"] == null ? undefined : json["RequiresUserInteraction"],
|
|
1206
|
+
isConversational: json["IsConversational"] == null ? undefined : json["IsConversational"],
|
|
1207
|
+
slug: json["Slug"] == null ? undefined : json["Slug"],
|
|
1208
|
+
minRequiredRobotVersion: json["MinRequiredRobotVersion"] == null ? undefined : json["MinRequiredRobotVersion"],
|
|
1209
|
+
isAttended: json["IsAttended"] == null ? undefined : json["IsAttended"],
|
|
1210
|
+
isCompiled: json["IsCompiled"] == null ? undefined : json["IsCompiled"],
|
|
1211
|
+
automationHubIdeaUrl: json["AutomationHubIdeaUrl"] == null ? undefined : json["AutomationHubIdeaUrl"],
|
|
1212
|
+
currentVersion: json["CurrentVersion"] == null ? undefined : ReleaseVersionDtoFromJSON(json["CurrentVersion"]),
|
|
1213
|
+
releaseVersions: json["ReleaseVersions"] == null ? undefined : json["ReleaseVersions"].map(ReleaseVersionDtoFromJSON),
|
|
1214
|
+
arguments: json["Arguments"] == null ? undefined : ArgumentMetadataFromJSON(json["Arguments"]),
|
|
1215
|
+
processSettings: json["ProcessSettings"] == null ? undefined : ProcessSettingsDtoFromJSON(json["ProcessSettings"]),
|
|
1216
|
+
videoRecordingSettings: json["VideoRecordingSettings"] == null ? undefined : VideoRecordingSettingsDtoFromJSON(json["VideoRecordingSettings"]),
|
|
1217
|
+
autoUpdate: json["AutoUpdate"] == null ? undefined : json["AutoUpdate"],
|
|
1218
|
+
hiddenForAttendedUser: json["HiddenForAttendedUser"] == null ? undefined : json["HiddenForAttendedUser"],
|
|
1219
|
+
isEnabled: json["IsEnabled"] == null ? undefined : json["IsEnabled"],
|
|
1220
|
+
feedId: json["FeedId"] == null ? undefined : json["FeedId"],
|
|
1221
|
+
jobPriority: json["JobPriority"] == null ? undefined : json["JobPriority"],
|
|
1222
|
+
specificPriorityValue: json["SpecificPriorityValue"] == null ? undefined : json["SpecificPriorityValue"],
|
|
1223
|
+
folderKey: json["FolderKey"] == null ? undefined : json["FolderKey"],
|
|
1224
|
+
organizationUnitId: json["OrganizationUnitId"] == null ? undefined : json["OrganizationUnitId"],
|
|
1225
|
+
organizationUnitFullyQualifiedName: json["OrganizationUnitFullyQualifiedName"] == null ? undefined : json["OrganizationUnitFullyQualifiedName"],
|
|
1226
|
+
targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
|
|
1227
|
+
robotSize: json["RobotSize"] == null ? undefined : json["RobotSize"],
|
|
1228
|
+
serverlessMaximumRunningJobTimeoutSeconds: json["ServerlessMaximumRunningJobTimeoutSeconds"] == null ? undefined : json["ServerlessMaximumRunningJobTimeoutSeconds"],
|
|
1229
|
+
tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
|
|
1230
|
+
resourceOverwrites: json["ResourceOverwrites"] == null ? undefined : json["ResourceOverwrites"].map(ResourceOverwriteDtoFromJSON),
|
|
1231
|
+
autoCreateConnectedTriggers: json["AutoCreateConnectedTriggers"] == null ? undefined : json["AutoCreateConnectedTriggers"],
|
|
1232
|
+
remoteControlAccess: json["RemoteControlAccess"] == null ? undefined : json["RemoteControlAccess"],
|
|
1233
|
+
targetRuntime: json["TargetRuntime"] == null ? undefined : json["TargetRuntime"],
|
|
1234
|
+
publisherLicense: json["PublisherLicense"] == null ? undefined : json["PublisherLicense"],
|
|
1235
|
+
runtimeProfile: json["RuntimeProfile"] == null ? undefined : json["RuntimeProfile"],
|
|
1236
|
+
lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
|
|
1237
|
+
lastModifierUserId: json["LastModifierUserId"] == null ? undefined : json["LastModifierUserId"],
|
|
1238
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
1239
|
+
creatorUserId: json["CreatorUserId"] == null ? undefined : json["CreatorUserId"],
|
|
997
1240
|
id: json["Id"] == null ? undefined : json["Id"]
|
|
998
1241
|
};
|
|
999
1242
|
}
|
|
1000
1243
|
|
|
1001
|
-
// ../orchestrator-sdk/generated/src/models/
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1244
|
+
// ../orchestrator-sdk/generated/src/models/MachineDto.ts
|
|
1245
|
+
function MachineDtoFromJSON(json) {
|
|
1246
|
+
return MachineDtoFromJSONTyped(json, false);
|
|
1004
1247
|
}
|
|
1005
|
-
function
|
|
1248
|
+
function MachineDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1006
1249
|
if (json == null) {
|
|
1007
1250
|
return json;
|
|
1008
1251
|
}
|
|
1009
1252
|
return {
|
|
1010
|
-
|
|
1253
|
+
licenseKey: json["LicenseKey"] == null ? undefined : json["LicenseKey"],
|
|
1254
|
+
name: json["Name"],
|
|
1255
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
1256
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1257
|
+
scope: json["Scope"] == null ? undefined : json["Scope"],
|
|
1258
|
+
nonProductionSlots: json["NonProductionSlots"] == null ? undefined : json["NonProductionSlots"],
|
|
1259
|
+
unattendedSlots: json["UnattendedSlots"] == null ? undefined : json["UnattendedSlots"],
|
|
1260
|
+
headlessSlots: json["HeadlessSlots"] == null ? undefined : json["HeadlessSlots"],
|
|
1261
|
+
testAutomationSlots: json["TestAutomationSlots"] == null ? undefined : json["TestAutomationSlots"],
|
|
1262
|
+
hostingSlots: json["HostingSlots"] == null ? undefined : json["HostingSlots"],
|
|
1263
|
+
appTestSlots: json["AppTestSlots"] == null ? undefined : json["AppTestSlots"],
|
|
1264
|
+
performanceTestSlots: json["PerformanceTestSlots"] == null ? undefined : json["PerformanceTestSlots"],
|
|
1265
|
+
agentSlots: json["AgentSlots"] == null ? undefined : json["AgentSlots"],
|
|
1266
|
+
functionSlots: json["FunctionSlots"] == null ? undefined : json["FunctionSlots"],
|
|
1267
|
+
verticalsRpaSlots: json["VerticalsRpaSlots"] == null ? undefined : json["VerticalsRpaSlots"],
|
|
1268
|
+
verticalsAgentSlots: json["VerticalsAgentSlots"] == null ? undefined : json["VerticalsAgentSlots"],
|
|
1269
|
+
verticalsFunctionSlots: json["VerticalsFunctionSlots"] == null ? undefined : json["VerticalsFunctionSlots"],
|
|
1270
|
+
executionOptions: json["ExecutionOptions"] == null ? undefined : json["ExecutionOptions"],
|
|
1271
|
+
automationCloudSlots: json["AutomationCloudSlots"] == null ? undefined : json["AutomationCloudSlots"],
|
|
1272
|
+
automationCloudTestAutomationSlots: json["AutomationCloudTestAutomationSlots"] == null ? undefined : json["AutomationCloudTestAutomationSlots"],
|
|
1273
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1274
|
+
endpointDetectionStatus: json["EndpointDetectionStatus"] == null ? undefined : json["EndpointDetectionStatus"],
|
|
1275
|
+
robotVersions: json["RobotVersions"] == null ? undefined : json["RobotVersions"].map(MachinesRobotVersionDtoFromJSON),
|
|
1276
|
+
robotUsers: json["RobotUsers"] == null ? undefined : json["RobotUsers"].map(RobotUserDtoFromJSON),
|
|
1277
|
+
automationType: json["AutomationType"] == null ? undefined : json["AutomationType"],
|
|
1278
|
+
targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
|
|
1279
|
+
serverlessLicensingModel: json["ServerlessLicensingModel"] == null ? undefined : json["ServerlessLicensingModel"],
|
|
1280
|
+
updatePolicy: json["UpdatePolicy"] == null ? undefined : UpdatePolicyDtoFromJSON(json["UpdatePolicy"]),
|
|
1281
|
+
clientSecret: json["ClientSecret"] == null ? undefined : json["ClientSecret"],
|
|
1282
|
+
tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
|
|
1283
|
+
maintenanceWindow: json["MaintenanceWindow"] == null ? undefined : MaintenanceWindowDtoFromJSON(json["MaintenanceWindow"]),
|
|
1284
|
+
vpnSettings: json["VpnSettings"] == null ? undefined : MachineVpnSettingsDtoFromJSON(json["VpnSettings"]),
|
|
1285
|
+
machineSettings: json["MachineSettings"] == null ? undefined : json["MachineSettings"],
|
|
1286
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1011
1287
|
};
|
|
1012
1288
|
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
return ODataValueOfIEnumerableOfUserDtoFromJSONTyped(json, false);
|
|
1289
|
+
function MachineDtoToJSON(json) {
|
|
1290
|
+
return MachineDtoToJSONTyped(json, false);
|
|
1016
1291
|
}
|
|
1017
|
-
function
|
|
1018
|
-
if (
|
|
1019
|
-
return
|
|
1292
|
+
function MachineDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1293
|
+
if (value == null) {
|
|
1294
|
+
return value;
|
|
1020
1295
|
}
|
|
1021
1296
|
return {
|
|
1022
|
-
|
|
1297
|
+
LicenseKey: value["licenseKey"],
|
|
1298
|
+
Name: value["name"],
|
|
1299
|
+
Description: value["description"],
|
|
1300
|
+
Type: value["type"],
|
|
1301
|
+
Scope: value["scope"],
|
|
1302
|
+
NonProductionSlots: value["nonProductionSlots"],
|
|
1303
|
+
UnattendedSlots: value["unattendedSlots"],
|
|
1304
|
+
HeadlessSlots: value["headlessSlots"],
|
|
1305
|
+
TestAutomationSlots: value["testAutomationSlots"],
|
|
1306
|
+
HostingSlots: value["hostingSlots"],
|
|
1307
|
+
AppTestSlots: value["appTestSlots"],
|
|
1308
|
+
PerformanceTestSlots: value["performanceTestSlots"],
|
|
1309
|
+
AgentSlots: value["agentSlots"],
|
|
1310
|
+
FunctionSlots: value["functionSlots"],
|
|
1311
|
+
VerticalsRpaSlots: value["verticalsRpaSlots"],
|
|
1312
|
+
VerticalsAgentSlots: value["verticalsAgentSlots"],
|
|
1313
|
+
VerticalsFunctionSlots: value["verticalsFunctionSlots"],
|
|
1314
|
+
ExecutionOptions: value["executionOptions"],
|
|
1315
|
+
AutomationCloudSlots: value["automationCloudSlots"],
|
|
1316
|
+
AutomationCloudTestAutomationSlots: value["automationCloudTestAutomationSlots"],
|
|
1317
|
+
Key: value["key"],
|
|
1318
|
+
EndpointDetectionStatus: value["endpointDetectionStatus"],
|
|
1319
|
+
RobotVersions: value["robotVersions"] == null ? undefined : value["robotVersions"].map(MachinesRobotVersionDtoToJSON),
|
|
1320
|
+
RobotUsers: value["robotUsers"] == null ? undefined : value["robotUsers"].map(RobotUserDtoToJSON),
|
|
1321
|
+
AutomationType: value["automationType"],
|
|
1322
|
+
TargetFramework: value["targetFramework"],
|
|
1323
|
+
UpdatePolicy: UpdatePolicyDtoToJSON(value["updatePolicy"]),
|
|
1324
|
+
ClientSecret: value["clientSecret"],
|
|
1325
|
+
Tags: value["tags"] == null ? undefined : value["tags"].map(TagDtoToJSON),
|
|
1326
|
+
MaintenanceWindow: MaintenanceWindowDtoToJSON(value["maintenanceWindow"]),
|
|
1327
|
+
VpnSettings: MachineVpnSettingsDtoToJSON(value["vpnSettings"]),
|
|
1328
|
+
MachineSettings: value["machineSettings"],
|
|
1329
|
+
Id: value["id"]
|
|
1023
1330
|
};
|
|
1024
1331
|
}
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1332
|
+
|
|
1333
|
+
// ../orchestrator-sdk/generated/src/models/JobDto.ts
|
|
1334
|
+
function JobDtoFromJSON(json) {
|
|
1335
|
+
return JobDtoFromJSONTyped(json, false);
|
|
1028
1336
|
}
|
|
1029
|
-
function
|
|
1337
|
+
function JobDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1030
1338
|
if (json == null) {
|
|
1031
1339
|
return json;
|
|
1032
1340
|
}
|
|
1033
1341
|
return {
|
|
1034
|
-
fullName: json["FullName"] == null ? undefined : json["FullName"],
|
|
1035
|
-
authenticationSource: json["AuthenticationSource"] == null ? undefined : json["AuthenticationSource"],
|
|
1036
1342
|
key: json["Key"] == null ? undefined : json["Key"],
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1343
|
+
startTime: json["StartTime"] == null ? undefined : new Date(json["StartTime"]),
|
|
1344
|
+
endTime: json["EndTime"] == null ? undefined : new Date(json["EndTime"]),
|
|
1345
|
+
state: json["State"] == null ? undefined : json["State"],
|
|
1346
|
+
subState: json["SubState"] == null ? undefined : json["SubState"],
|
|
1347
|
+
jobPriority: json["JobPriority"] == null ? undefined : json["JobPriority"],
|
|
1348
|
+
specificPriorityValue: json["SpecificPriorityValue"] == null ? undefined : json["SpecificPriorityValue"],
|
|
1349
|
+
robot: json["Robot"] == null ? undefined : SimpleRobotDtoFromJSON(json["Robot"]),
|
|
1350
|
+
release: json["Release"] == null ? undefined : SimpleReleaseDtoFromJSON(json["Release"]),
|
|
1351
|
+
resourceOverwrites: json["ResourceOverwrites"] == null ? undefined : json["ResourceOverwrites"],
|
|
1043
1352
|
source: json["Source"] == null ? undefined : json["Source"],
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1353
|
+
sourceType: json["SourceType"] == null ? undefined : json["SourceType"],
|
|
1354
|
+
batchExecutionKey: json["BatchExecutionKey"] == null ? undefined : json["BatchExecutionKey"],
|
|
1355
|
+
info: json["Info"] == null ? undefined : json["Info"],
|
|
1356
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
1357
|
+
startingScheduleId: json["StartingScheduleId"] == null ? undefined : json["StartingScheduleId"],
|
|
1358
|
+
releaseName: json["ReleaseName"] == null ? undefined : json["ReleaseName"],
|
|
1359
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1360
|
+
inputArguments: json["InputArguments"] == null ? undefined : json["InputArguments"],
|
|
1361
|
+
inputFile: json["InputFile"] == null ? undefined : json["InputFile"],
|
|
1362
|
+
environmentVariables: json["EnvironmentVariables"] == null ? undefined : json["EnvironmentVariables"],
|
|
1363
|
+
outputArguments: json["OutputArguments"] == null ? undefined : json["OutputArguments"],
|
|
1364
|
+
outputFile: json["OutputFile"] == null ? undefined : json["OutputFile"],
|
|
1365
|
+
hostMachineName: json["HostMachineName"] == null ? undefined : json["HostMachineName"],
|
|
1366
|
+
hasMediaRecorded: json["HasMediaRecorded"] == null ? undefined : json["HasMediaRecorded"],
|
|
1367
|
+
hasVideoRecorded: json["HasVideoRecorded"] == null ? undefined : json["HasVideoRecorded"],
|
|
1368
|
+
persistenceId: json["PersistenceId"] == null ? undefined : json["PersistenceId"],
|
|
1369
|
+
resumeVersion: json["ResumeVersion"] == null ? undefined : json["ResumeVersion"],
|
|
1370
|
+
stopStrategy: json["StopStrategy"] == null ? undefined : json["StopStrategy"],
|
|
1371
|
+
runtimeType: json["RuntimeType"] == null ? undefined : json["RuntimeType"],
|
|
1372
|
+
requiresUserInteraction: json["RequiresUserInteraction"] == null ? undefined : json["RequiresUserInteraction"],
|
|
1373
|
+
releaseVersionId: json["ReleaseVersionId"] == null ? undefined : json["ReleaseVersionId"],
|
|
1374
|
+
entryPointPath: json["EntryPointPath"] == null ? undefined : json["EntryPointPath"],
|
|
1375
|
+
organizationUnitId: json["OrganizationUnitId"] == null ? undefined : json["OrganizationUnitId"],
|
|
1376
|
+
organizationUnitFullyQualifiedName: json["OrganizationUnitFullyQualifiedName"] == null ? undefined : json["OrganizationUnitFullyQualifiedName"],
|
|
1377
|
+
folderKey: json["FolderKey"] == null ? undefined : json["FolderKey"],
|
|
1378
|
+
reference: json["Reference"] == null ? undefined : json["Reference"],
|
|
1379
|
+
processType: json["ProcessType"] == null ? undefined : json["ProcessType"],
|
|
1380
|
+
targetRuntime: json["TargetRuntime"] == null ? undefined : json["TargetRuntime"],
|
|
1381
|
+
entryPointType: json["EntryPointType"] == null ? undefined : json["EntryPointType"],
|
|
1382
|
+
machine: json["Machine"] == null ? undefined : MachineDtoFromJSON(json["Machine"]),
|
|
1383
|
+
profilingOptions: json["ProfilingOptions"] == null ? undefined : json["ProfilingOptions"],
|
|
1384
|
+
resumeOnSameContext: json["ResumeOnSameContext"] == null ? undefined : json["ResumeOnSameContext"],
|
|
1385
|
+
localSystemAccount: json["LocalSystemAccount"] == null ? undefined : json["LocalSystemAccount"],
|
|
1386
|
+
orchestratorUserIdentity: json["OrchestratorUserIdentity"] == null ? undefined : json["OrchestratorUserIdentity"],
|
|
1387
|
+
remoteControlAccess: json["RemoteControlAccess"] == null ? undefined : json["RemoteControlAccess"],
|
|
1388
|
+
startingTriggerId: json["StartingTriggerId"] == null ? undefined : json["StartingTriggerId"],
|
|
1389
|
+
maxExpectedRunningTimeSeconds: json["MaxExpectedRunningTimeSeconds"] == null ? undefined : json["MaxExpectedRunningTimeSeconds"],
|
|
1390
|
+
serverlessJobType: json["ServerlessJobType"] == null ? undefined : json["ServerlessJobType"],
|
|
1391
|
+
parentJobKey: json["ParentJobKey"] == null ? undefined : json["ParentJobKey"],
|
|
1392
|
+
resumeTime: json["ResumeTime"] == null ? undefined : new Date(json["ResumeTime"]),
|
|
1393
|
+
lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
|
|
1394
|
+
jobError: json["JobError"] == null ? undefined : JobErrorDtoFromJSON(json["JobError"]),
|
|
1395
|
+
errorCode: json["ErrorCode"] == null ? undefined : json["ErrorCode"],
|
|
1396
|
+
fpsProperties: json["FpsProperties"] == null ? undefined : json["FpsProperties"],
|
|
1397
|
+
traceId: json["TraceId"] == null ? undefined : json["TraceId"],
|
|
1398
|
+
parentSpanId: json["ParentSpanId"] == null ? undefined : json["ParentSpanId"],
|
|
1399
|
+
rootSpanId: json["RootSpanId"] == null ? undefined : json["RootSpanId"],
|
|
1400
|
+
creatorUser: json["CreatorUser"] == null ? undefined : SimpleUserDtoFromJSON(json["CreatorUser"]),
|
|
1401
|
+
autopilotForRobots: json["AutopilotForRobots"] == null ? undefined : AutopilotForRobotsSettingsDtoFromJSON(json["AutopilotForRobots"]),
|
|
1402
|
+
fpsContext: json["FpsContext"] == null ? undefined : json["FpsContext"],
|
|
1403
|
+
autoHealStatus: json["AutoHealStatus"] == null ? undefined : json["AutoHealStatus"],
|
|
1062
1404
|
id: json["Id"] == null ? undefined : json["Id"]
|
|
1063
1405
|
};
|
|
1064
1406
|
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
return UserRolesDtoFromJSONTyped(json, false);
|
|
1407
|
+
// ../orchestrator-sdk/generated/src/models/MachineDeleteBulkRequest.ts
|
|
1408
|
+
function MachineDeleteBulkRequestToJSON(json) {
|
|
1409
|
+
return MachineDeleteBulkRequestToJSONTyped(json, false);
|
|
1069
1410
|
}
|
|
1070
|
-
function
|
|
1071
|
-
if (
|
|
1072
|
-
return
|
|
1411
|
+
function MachineDeleteBulkRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1412
|
+
if (value == null) {
|
|
1413
|
+
return value;
|
|
1073
1414
|
}
|
|
1074
1415
|
return {
|
|
1075
|
-
|
|
1076
|
-
roles: json["Roles"] == null ? undefined : json["Roles"].map(SimpleRoleDtoFromJSON),
|
|
1077
|
-
hasAlertsEnabled: json["HasAlertsEnabled"] == null ? undefined : json["HasAlertsEnabled"],
|
|
1078
|
-
id: json["Id"] == null ? undefined : json["Id"]
|
|
1416
|
+
machineIds: value["machineIds"]
|
|
1079
1417
|
};
|
|
1080
1418
|
}
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
return ODataValueOfIEnumerableOfUserRolesDtoFromJSONTyped(json, false);
|
|
1419
|
+
// ../orchestrator-sdk/generated/src/models/MachineFolderDto.ts
|
|
1420
|
+
function MachineFolderDtoFromJSON(json) {
|
|
1421
|
+
return MachineFolderDtoFromJSONTyped(json, false);
|
|
1085
1422
|
}
|
|
1086
|
-
function
|
|
1423
|
+
function MachineFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1087
1424
|
if (json == null) {
|
|
1088
1425
|
return json;
|
|
1089
1426
|
}
|
|
1090
1427
|
return {
|
|
1091
|
-
|
|
1428
|
+
licenseKey: json["LicenseKey"] == null ? undefined : json["LicenseKey"],
|
|
1429
|
+
name: json["Name"],
|
|
1430
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
1431
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1432
|
+
scope: json["Scope"] == null ? undefined : json["Scope"],
|
|
1433
|
+
nonProductionSlots: json["NonProductionSlots"] == null ? undefined : json["NonProductionSlots"],
|
|
1434
|
+
unattendedSlots: json["UnattendedSlots"] == null ? undefined : json["UnattendedSlots"],
|
|
1435
|
+
headlessSlots: json["HeadlessSlots"] == null ? undefined : json["HeadlessSlots"],
|
|
1436
|
+
testAutomationSlots: json["TestAutomationSlots"] == null ? undefined : json["TestAutomationSlots"],
|
|
1437
|
+
hostingSlots: json["HostingSlots"] == null ? undefined : json["HostingSlots"],
|
|
1438
|
+
appTestSlots: json["AppTestSlots"] == null ? undefined : json["AppTestSlots"],
|
|
1439
|
+
performanceTestSlots: json["PerformanceTestSlots"] == null ? undefined : json["PerformanceTestSlots"],
|
|
1440
|
+
agentSlots: json["AgentSlots"] == null ? undefined : json["AgentSlots"],
|
|
1441
|
+
functionSlots: json["FunctionSlots"] == null ? undefined : json["FunctionSlots"],
|
|
1442
|
+
verticalsRpaSlots: json["VerticalsRpaSlots"] == null ? undefined : json["VerticalsRpaSlots"],
|
|
1443
|
+
verticalsAgentSlots: json["VerticalsAgentSlots"] == null ? undefined : json["VerticalsAgentSlots"],
|
|
1444
|
+
verticalsFunctionSlots: json["VerticalsFunctionSlots"] == null ? undefined : json["VerticalsFunctionSlots"],
|
|
1445
|
+
executionOptions: json["ExecutionOptions"] == null ? undefined : json["ExecutionOptions"],
|
|
1446
|
+
automationCloudSlots: json["AutomationCloudSlots"] == null ? undefined : json["AutomationCloudSlots"],
|
|
1447
|
+
automationCloudTestAutomationSlots: json["AutomationCloudTestAutomationSlots"] == null ? undefined : json["AutomationCloudTestAutomationSlots"],
|
|
1448
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1449
|
+
endpointDetectionStatus: json["EndpointDetectionStatus"] == null ? undefined : json["EndpointDetectionStatus"],
|
|
1450
|
+
robotVersions: json["RobotVersions"] == null ? undefined : json["RobotVersions"].map(MachinesRobotVersionDtoFromJSON),
|
|
1451
|
+
robotUsers: json["RobotUsers"] == null ? undefined : json["RobotUsers"].map(RobotUserDtoFromJSON),
|
|
1452
|
+
automationType: json["AutomationType"] == null ? undefined : json["AutomationType"],
|
|
1453
|
+
targetFramework: json["TargetFramework"] == null ? undefined : json["TargetFramework"],
|
|
1454
|
+
serverlessLicensingModel: json["ServerlessLicensingModel"] == null ? undefined : json["ServerlessLicensingModel"],
|
|
1455
|
+
updatePolicy: json["UpdatePolicy"] == null ? undefined : UpdatePolicyDtoFromJSON(json["UpdatePolicy"]),
|
|
1456
|
+
clientSecret: json["ClientSecret"] == null ? undefined : json["ClientSecret"],
|
|
1457
|
+
tags: json["Tags"] == null ? undefined : json["Tags"].map(TagDtoFromJSON),
|
|
1458
|
+
maintenanceWindow: json["MaintenanceWindow"] == null ? undefined : MaintenanceWindowDtoFromJSON(json["MaintenanceWindow"]),
|
|
1459
|
+
vpnSettings: json["VpnSettings"] == null ? undefined : MachineVpnSettingsDtoFromJSON(json["VpnSettings"]),
|
|
1460
|
+
machineSettings: json["MachineSettings"] == null ? undefined : json["MachineSettings"],
|
|
1461
|
+
id: json["Id"] == null ? undefined : json["Id"],
|
|
1462
|
+
isAssignedToFolder: json["IsAssignedToFolder"] == null ? undefined : json["IsAssignedToFolder"],
|
|
1463
|
+
hasMachineRobots: json["HasMachineRobots"] == null ? undefined : json["HasMachineRobots"],
|
|
1464
|
+
isInherited: json["IsInherited"] == null ? undefined : json["IsInherited"],
|
|
1465
|
+
propagateToSubFolders: json["PropagateToSubFolders"] == null ? undefined : json["PropagateToSubFolders"],
|
|
1466
|
+
inheritedFromFolderName: json["InheritedFromFolderName"] == null ? undefined : json["InheritedFromFolderName"],
|
|
1467
|
+
updateInfo: json["UpdateInfo"] == null ? undefined : UpdateInfoDtoFromJSON(json["UpdateInfo"])
|
|
1092
1468
|
};
|
|
1093
1469
|
}
|
|
1094
|
-
// ../orchestrator-sdk/generated/src/models/
|
|
1095
|
-
|
|
1096
|
-
|
|
1470
|
+
// ../orchestrator-sdk/generated/src/models/MachineRuntimeDto.ts
|
|
1471
|
+
var MachineRuntimeDtoTypeEnum = {
|
|
1472
|
+
NonProduction: "NonProduction",
|
|
1473
|
+
Attended: "Attended",
|
|
1474
|
+
Unattended: "Unattended",
|
|
1475
|
+
Development: "Development",
|
|
1476
|
+
Studio: "Studio",
|
|
1477
|
+
RpaDeveloper: "RpaDeveloper",
|
|
1478
|
+
StudioX: "StudioX",
|
|
1479
|
+
CitizenDeveloper: "CitizenDeveloper",
|
|
1480
|
+
Headless: "Headless",
|
|
1481
|
+
StudioPro: "StudioPro",
|
|
1482
|
+
RpaDeveloperPro: "RpaDeveloperPro",
|
|
1483
|
+
TestAutomation: "TestAutomation",
|
|
1484
|
+
AutomationCloud: "AutomationCloud",
|
|
1485
|
+
Serverless: "Serverless",
|
|
1486
|
+
AutomationKit: "AutomationKit",
|
|
1487
|
+
ServerlessTestAutomation: "ServerlessTestAutomation",
|
|
1488
|
+
AutomationCloudTestAutomation: "AutomationCloudTestAutomation",
|
|
1489
|
+
AttendedStudioWeb: "AttendedStudioWeb",
|
|
1490
|
+
Hosting: "Hosting",
|
|
1491
|
+
AssistantWeb: "AssistantWeb",
|
|
1492
|
+
ProcessOrchestration: "ProcessOrchestration",
|
|
1493
|
+
AgentService: "AgentService",
|
|
1494
|
+
AppTest: "AppTest",
|
|
1495
|
+
PerformanceTest: "PerformanceTest",
|
|
1496
|
+
BusinessRule: "BusinessRule",
|
|
1497
|
+
CaseManagement: "CaseManagement",
|
|
1498
|
+
Flow: "Flow",
|
|
1499
|
+
Local: "Local"
|
|
1500
|
+
};
|
|
1501
|
+
function MachineRuntimeDtoFromJSON(json) {
|
|
1502
|
+
return MachineRuntimeDtoFromJSONTyped(json, false);
|
|
1097
1503
|
}
|
|
1098
|
-
function
|
|
1504
|
+
function MachineRuntimeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1099
1505
|
if (json == null) {
|
|
1100
1506
|
return json;
|
|
1101
1507
|
}
|
|
1102
1508
|
return {
|
|
1103
|
-
|
|
1509
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1510
|
+
total: json["Total"] == null ? undefined : json["Total"],
|
|
1511
|
+
connected: json["Connected"] == null ? undefined : json["Connected"],
|
|
1512
|
+
available: json["Available"] == null ? undefined : json["Available"],
|
|
1513
|
+
isAutomationEdge: json["IsAutomationEdge"] == null ? undefined : json["IsAutomationEdge"]
|
|
1104
1514
|
};
|
|
1105
1515
|
}
|
|
1106
|
-
// ../orchestrator-sdk/generated/src/models/
|
|
1107
|
-
function
|
|
1108
|
-
return
|
|
1516
|
+
// ../orchestrator-sdk/generated/src/models/UserDto.ts
|
|
1517
|
+
function UserDtoFromJSON(json) {
|
|
1518
|
+
return UserDtoFromJSONTyped(json, false);
|
|
1109
1519
|
}
|
|
1110
|
-
function
|
|
1520
|
+
function UserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1111
1521
|
if (json == null) {
|
|
1112
1522
|
return json;
|
|
1113
1523
|
}
|
|
1114
1524
|
return {
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1525
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
1526
|
+
surname: json["Surname"] == null ? undefined : json["Surname"],
|
|
1527
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
1528
|
+
domain: json["Domain"] == null ? undefined : json["Domain"],
|
|
1529
|
+
directoryIdentifier: json["DirectoryIdentifier"] == null ? undefined : json["DirectoryIdentifier"],
|
|
1530
|
+
fullName: json["FullName"] == null ? undefined : json["FullName"],
|
|
1531
|
+
emailAddress: json["EmailAddress"] == null ? undefined : json["EmailAddress"],
|
|
1532
|
+
lastLoginTime: json["LastLoginTime"] == null ? undefined : new Date(json["LastLoginTime"]),
|
|
1533
|
+
isActive: json["IsActive"] == null ? undefined : json["IsActive"],
|
|
1534
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
1535
|
+
authenticationSource: json["AuthenticationSource"] == null ? undefined : json["AuthenticationSource"],
|
|
1536
|
+
organizationUnits: json["OrganizationUnits"] == null ? undefined : json["OrganizationUnits"].map(OrganizationUnitDtoFromJSON),
|
|
1537
|
+
password: json["Password"] == null ? undefined : json["Password"],
|
|
1538
|
+
isExternalLicensed: json["IsExternalLicensed"] == null ? undefined : json["IsExternalLicensed"],
|
|
1539
|
+
userRoles: json["UserRoles"] == null ? undefined : json["UserRoles"].map(UserRoleDtoFromJSON),
|
|
1540
|
+
rolesList: json["RolesList"] == null ? undefined : json["RolesList"],
|
|
1541
|
+
loginProviders: json["LoginProviders"] == null ? undefined : json["LoginProviders"],
|
|
1542
|
+
tenantId: json["TenantId"] == null ? undefined : json["TenantId"],
|
|
1543
|
+
tenancyName: json["TenancyName"] == null ? undefined : json["TenancyName"],
|
|
1544
|
+
tenantDisplayName: json["TenantDisplayName"] == null ? undefined : json["TenantDisplayName"],
|
|
1545
|
+
tenantKey: json["TenantKey"] == null ? undefined : json["TenantKey"],
|
|
1546
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1547
|
+
provisionType: json["ProvisionType"] == null ? undefined : json["ProvisionType"],
|
|
1548
|
+
licenseType: json["LicenseType"] == null ? undefined : json["LicenseType"],
|
|
1549
|
+
robotProvision: json["RobotProvision"] == null ? undefined : AttendedRobotDtoFromJSON(json["RobotProvision"]),
|
|
1550
|
+
unattendedRobot: json["UnattendedRobot"] == null ? undefined : UnattendedRobotDtoFromJSON(json["UnattendedRobot"]),
|
|
1551
|
+
notificationSubscription: json["NotificationSubscription"] == null ? undefined : UserNotificationSubscriptionFromJSON(json["NotificationSubscription"]),
|
|
1552
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1553
|
+
mayHaveUserSession: json["MayHaveUserSession"] == null ? undefined : json["MayHaveUserSession"],
|
|
1554
|
+
mayHaveRobotSession: json["MayHaveRobotSession"] == null ? undefined : json["MayHaveRobotSession"],
|
|
1555
|
+
mayHaveUnattendedSession: json["MayHaveUnattendedSession"] == null ? undefined : json["MayHaveUnattendedSession"],
|
|
1556
|
+
mayHavePersonalWorkspace: json["MayHavePersonalWorkspace"] == null ? undefined : json["MayHavePersonalWorkspace"],
|
|
1557
|
+
restrictToPersonalWorkspace: json["RestrictToPersonalWorkspace"] == null ? undefined : json["RestrictToPersonalWorkspace"],
|
|
1558
|
+
updatePolicy: json["UpdatePolicy"] == null ? undefined : UpdatePolicyDtoFromJSON(json["UpdatePolicy"]),
|
|
1559
|
+
accountId: json["AccountId"] == null ? undefined : json["AccountId"],
|
|
1560
|
+
hasOnlyInheritedPrivileges: json["HasOnlyInheritedPrivileges"] == null ? undefined : json["HasOnlyInheritedPrivileges"],
|
|
1561
|
+
explicitMayHaveUserSession: json["ExplicitMayHaveUserSession"] == null ? undefined : json["ExplicitMayHaveUserSession"],
|
|
1562
|
+
explicitMayHaveRobotSession: json["ExplicitMayHaveRobotSession"] == null ? undefined : json["ExplicitMayHaveRobotSession"],
|
|
1563
|
+
explicitMayHavePersonalWorkspace: json["ExplicitMayHavePersonalWorkspace"] == null ? undefined : json["ExplicitMayHavePersonalWorkspace"],
|
|
1564
|
+
explicitRestrictToPersonalWorkspace: json["ExplicitRestrictToPersonalWorkspace"] == null ? undefined : json["ExplicitRestrictToPersonalWorkspace"],
|
|
1565
|
+
lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
|
|
1566
|
+
lastModifierUserId: json["LastModifierUserId"] == null ? undefined : json["LastModifierUserId"],
|
|
1567
|
+
creatorUserId: json["CreatorUserId"] == null ? undefined : json["CreatorUserId"],
|
|
1568
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1569
|
+
};
|
|
1130
1570
|
}
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
return RemoveUserFromFolderRequestToJSONTyped(json, false);
|
|
1571
|
+
function UserDtoToJSON(json) {
|
|
1572
|
+
return UserDtoToJSONTyped(json, false);
|
|
1134
1573
|
}
|
|
1135
|
-
function
|
|
1574
|
+
function UserDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1136
1575
|
if (value == null) {
|
|
1137
1576
|
return value;
|
|
1138
1577
|
}
|
|
1139
1578
|
return {
|
|
1140
|
-
|
|
1579
|
+
Name: value["name"],
|
|
1580
|
+
Surname: value["surname"],
|
|
1581
|
+
UserName: value["userName"],
|
|
1582
|
+
Domain: value["domain"],
|
|
1583
|
+
DirectoryIdentifier: value["directoryIdentifier"],
|
|
1584
|
+
FullName: value["fullName"],
|
|
1585
|
+
EmailAddress: value["emailAddress"],
|
|
1586
|
+
LastLoginTime: value["lastLoginTime"] == null ? value["lastLoginTime"] : value["lastLoginTime"].toISOString(),
|
|
1587
|
+
IsActive: value["isActive"],
|
|
1588
|
+
CreationTime: value["creationTime"] == null ? value["creationTime"] : value["creationTime"].toISOString(),
|
|
1589
|
+
AuthenticationSource: value["authenticationSource"],
|
|
1590
|
+
OrganizationUnits: value["organizationUnits"] == null ? undefined : value["organizationUnits"].map(OrganizationUnitDtoToJSON),
|
|
1591
|
+
Password: value["password"],
|
|
1592
|
+
IsExternalLicensed: value["isExternalLicensed"],
|
|
1593
|
+
UserRoles: value["userRoles"] == null ? undefined : value["userRoles"].map(UserRoleDtoToJSON),
|
|
1594
|
+
RolesList: value["rolesList"],
|
|
1595
|
+
LoginProviders: value["loginProviders"],
|
|
1596
|
+
TenantId: value["tenantId"],
|
|
1597
|
+
TenancyName: value["tenancyName"],
|
|
1598
|
+
TenantDisplayName: value["tenantDisplayName"],
|
|
1599
|
+
TenantKey: value["tenantKey"],
|
|
1600
|
+
Type: value["type"],
|
|
1601
|
+
ProvisionType: value["provisionType"],
|
|
1602
|
+
LicenseType: value["licenseType"],
|
|
1603
|
+
RobotProvision: AttendedRobotDtoToJSON(value["robotProvision"]),
|
|
1604
|
+
UnattendedRobot: UnattendedRobotDtoToJSON(value["unattendedRobot"]),
|
|
1605
|
+
NotificationSubscription: UserNotificationSubscriptionToJSON(value["notificationSubscription"]),
|
|
1606
|
+
Key: value["key"],
|
|
1607
|
+
MayHaveUserSession: value["mayHaveUserSession"],
|
|
1608
|
+
MayHaveRobotSession: value["mayHaveRobotSession"],
|
|
1609
|
+
MayHaveUnattendedSession: value["mayHaveUnattendedSession"],
|
|
1610
|
+
MayHavePersonalWorkspace: value["mayHavePersonalWorkspace"],
|
|
1611
|
+
RestrictToPersonalWorkspace: value["restrictToPersonalWorkspace"],
|
|
1612
|
+
UpdatePolicy: UpdatePolicyDtoToJSON(value["updatePolicy"]),
|
|
1613
|
+
AccountId: value["accountId"],
|
|
1614
|
+
HasOnlyInheritedPrivileges: value["hasOnlyInheritedPrivileges"],
|
|
1615
|
+
ExplicitMayHaveUserSession: value["explicitMayHaveUserSession"],
|
|
1616
|
+
ExplicitMayHaveRobotSession: value["explicitMayHaveRobotSession"],
|
|
1617
|
+
ExplicitMayHavePersonalWorkspace: value["explicitMayHavePersonalWorkspace"],
|
|
1618
|
+
ExplicitRestrictToPersonalWorkspace: value["explicitRestrictToPersonalWorkspace"],
|
|
1619
|
+
LastModificationTime: value["lastModificationTime"] == null ? value["lastModificationTime"] : value["lastModificationTime"].toISOString(),
|
|
1620
|
+
LastModifierUserId: value["lastModifierUserId"],
|
|
1621
|
+
CreatorUserId: value["creatorUserId"],
|
|
1622
|
+
Id: value["id"]
|
|
1141
1623
|
};
|
|
1142
1624
|
}
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1625
|
+
|
|
1626
|
+
// ../orchestrator-sdk/generated/src/models/RobotLicenseDto.ts
|
|
1627
|
+
function RobotLicenseDtoFromJSON(json) {
|
|
1628
|
+
return RobotLicenseDtoFromJSONTyped(json, false);
|
|
1146
1629
|
}
|
|
1147
|
-
function
|
|
1148
|
-
if (
|
|
1149
|
-
return
|
|
1630
|
+
function RobotLicenseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1631
|
+
if (json == null) {
|
|
1632
|
+
return json;
|
|
1150
1633
|
}
|
|
1151
1634
|
return {
|
|
1152
|
-
|
|
1635
|
+
robotId: json["RobotId"] == null ? undefined : json["RobotId"],
|
|
1636
|
+
timestamp: json["Timestamp"] == null ? undefined : new Date(json["Timestamp"]),
|
|
1637
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1153
1638
|
};
|
|
1154
1639
|
}
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1640
|
+
|
|
1641
|
+
// ../orchestrator-sdk/generated/src/models/RobotWithLicenseDto.ts
|
|
1642
|
+
function RobotWithLicenseDtoFromJSON(json) {
|
|
1643
|
+
return RobotWithLicenseDtoFromJSONTyped(json, false);
|
|
1158
1644
|
}
|
|
1159
|
-
function
|
|
1645
|
+
function RobotWithLicenseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1160
1646
|
if (json == null) {
|
|
1161
1647
|
return json;
|
|
1162
1648
|
}
|
|
1163
1649
|
return {
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1650
|
+
license: json["License"] == null ? undefined : RobotLicenseDtoFromJSON(json["License"]),
|
|
1651
|
+
user: json["User"] == null ? undefined : UserDtoFromJSON(json["User"]),
|
|
1652
|
+
licenseKey: json["LicenseKey"] == null ? undefined : json["LicenseKey"],
|
|
1653
|
+
machineName: json["MachineName"] == null ? undefined : json["MachineName"],
|
|
1654
|
+
machineId: json["MachineId"] == null ? undefined : json["MachineId"],
|
|
1655
|
+
name: json["Name"],
|
|
1656
|
+
username: json["Username"] == null ? undefined : json["Username"],
|
|
1657
|
+
externalName: json["ExternalName"] == null ? undefined : json["ExternalName"],
|
|
1658
|
+
description: json["Description"] == null ? undefined : json["Description"],
|
|
1659
|
+
type: json["Type"],
|
|
1660
|
+
hostingType: json["HostingType"],
|
|
1661
|
+
provisionType: json["ProvisionType"] == null ? undefined : json["ProvisionType"],
|
|
1662
|
+
password: json["Password"] == null ? undefined : json["Password"],
|
|
1663
|
+
credentialStoreId: json["CredentialStoreId"] == null ? undefined : json["CredentialStoreId"],
|
|
1664
|
+
userId: json["UserId"] == null ? undefined : json["UserId"],
|
|
1665
|
+
enabled: json["Enabled"] == null ? undefined : json["Enabled"],
|
|
1666
|
+
credentialType: json["CredentialType"] == null ? undefined : json["CredentialType"],
|
|
1667
|
+
environments: json["Environments"] == null ? undefined : json["Environments"].map(EnvironmentDtoFromJSON),
|
|
1668
|
+
robotEnvironments: json["RobotEnvironments"] == null ? undefined : json["RobotEnvironments"],
|
|
1669
|
+
executionSettings: json["ExecutionSettings"] == null ? undefined : json["ExecutionSettings"],
|
|
1670
|
+
isExternalLicensed: json["IsExternalLicensed"] == null ? undefined : json["IsExternalLicensed"],
|
|
1671
|
+
limitConcurrentExecution: json["LimitConcurrentExecution"] == null ? undefined : json["LimitConcurrentExecution"],
|
|
1672
|
+
lastModificationTime: json["LastModificationTime"] == null ? undefined : new Date(json["LastModificationTime"]),
|
|
1673
|
+
lastModifierUserId: json["LastModifierUserId"] == null ? undefined : json["LastModifierUserId"],
|
|
1674
|
+
creationTime: json["CreationTime"] == null ? undefined : new Date(json["CreationTime"]),
|
|
1675
|
+
creatorUserId: json["CreatorUserId"] == null ? undefined : json["CreatorUserId"],
|
|
1167
1676
|
id: json["Id"] == null ? undefined : json["Id"]
|
|
1168
1677
|
};
|
|
1169
1678
|
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
}
|
|
1179
|
-
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.AssignMachines`;
|
|
1180
|
-
const response = await this.request({
|
|
1181
|
-
path: urlPath,
|
|
1182
|
-
method: "POST",
|
|
1183
|
-
headers: headerParameters,
|
|
1184
|
-
query: queryParameters,
|
|
1185
|
-
body: FolderAssignMachinesRequestToJSON(requestParameters["body"])
|
|
1186
|
-
}, initOverrides);
|
|
1187
|
-
return new VoidApiResponse(response);
|
|
1679
|
+
|
|
1680
|
+
// ../orchestrator-sdk/generated/src/models/MachineSessionDto.ts
|
|
1681
|
+
function MachineSessionDtoFromJSON(json) {
|
|
1682
|
+
return MachineSessionDtoFromJSONTyped(json, false);
|
|
1683
|
+
}
|
|
1684
|
+
function MachineSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1685
|
+
if (json == null) {
|
|
1686
|
+
return json;
|
|
1188
1687
|
}
|
|
1189
|
-
|
|
1190
|
-
|
|
1688
|
+
return {
|
|
1689
|
+
serviceUserName: json["ServiceUserName"] == null ? undefined : json["ServiceUserName"],
|
|
1690
|
+
robot: json["Robot"] == null ? undefined : RobotWithLicenseDtoFromJSON(json["Robot"]),
|
|
1691
|
+
hostMachineName: json["HostMachineName"] == null ? undefined : json["HostMachineName"],
|
|
1692
|
+
machineId: json["MachineId"] == null ? undefined : json["MachineId"],
|
|
1693
|
+
machineName: json["MachineName"] == null ? undefined : json["MachineName"],
|
|
1694
|
+
state: json["State"] == null ? undefined : json["State"],
|
|
1695
|
+
job: json["Job"] == null ? undefined : JobDtoFromJSON(json["Job"]),
|
|
1696
|
+
reportingTime: json["ReportingTime"] == null ? undefined : new Date(json["ReportingTime"]),
|
|
1697
|
+
info: json["Info"] == null ? undefined : json["Info"],
|
|
1698
|
+
isUnresponsive: json["IsUnresponsive"] == null ? undefined : json["IsUnresponsive"],
|
|
1699
|
+
licenseErrorCode: json["LicenseErrorCode"] == null ? undefined : json["LicenseErrorCode"],
|
|
1700
|
+
organizationUnitId: json["OrganizationUnitId"] == null ? undefined : json["OrganizationUnitId"],
|
|
1701
|
+
folderName: json["FolderName"] == null ? undefined : json["FolderName"],
|
|
1702
|
+
robotSessionType: json["RobotSessionType"] == null ? undefined : json["RobotSessionType"],
|
|
1703
|
+
version: json["Version"] == null ? undefined : json["Version"],
|
|
1704
|
+
source: json["Source"] == null ? undefined : json["Source"],
|
|
1705
|
+
debugModeExpirationDate: json["DebugModeExpirationDate"] == null ? undefined : new Date(json["DebugModeExpirationDate"]),
|
|
1706
|
+
updateInfo: json["UpdateInfo"] == null ? undefined : UpdateInfoDtoFromJSON(json["UpdateInfo"]),
|
|
1707
|
+
installationId: json["InstallationId"] == null ? undefined : json["InstallationId"],
|
|
1708
|
+
platform: json["Platform"] == null ? undefined : json["Platform"],
|
|
1709
|
+
endpointDetection: json["EndpointDetection"] == null ? undefined : json["EndpointDetection"],
|
|
1710
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1711
|
+
};
|
|
1712
|
+
}
|
|
1713
|
+
// ../orchestrator-sdk/generated/src/models/MachineSessionRuntimeDto.ts
|
|
1714
|
+
function MachineSessionRuntimeDtoFromJSON(json) {
|
|
1715
|
+
return MachineSessionRuntimeDtoFromJSONTyped(json, false);
|
|
1716
|
+
}
|
|
1717
|
+
function MachineSessionRuntimeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1718
|
+
if (json == null) {
|
|
1719
|
+
return json;
|
|
1191
1720
|
}
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1721
|
+
return {
|
|
1722
|
+
sessionId: json["SessionId"] == null ? undefined : json["SessionId"],
|
|
1723
|
+
machineId: json["MachineId"] == null ? undefined : json["MachineId"],
|
|
1724
|
+
machineKey: json["MachineKey"] == null ? undefined : json["MachineKey"],
|
|
1725
|
+
machineName: json["MachineName"] == null ? undefined : json["MachineName"],
|
|
1726
|
+
maintenanceMode: json["MaintenanceMode"] == null ? undefined : json["MaintenanceMode"],
|
|
1727
|
+
hostMachineName: json["HostMachineName"] == null ? undefined : json["HostMachineName"],
|
|
1728
|
+
runtimeType: json["RuntimeType"] == null ? undefined : json["RuntimeType"],
|
|
1729
|
+
processType: json["ProcessType"] == null ? undefined : json["ProcessType"],
|
|
1730
|
+
isVertical: json["IsVertical"] == null ? undefined : json["IsVertical"],
|
|
1731
|
+
machineType: json["MachineType"] == null ? undefined : json["MachineType"],
|
|
1732
|
+
machineScope: json["MachineScope"] == null ? undefined : json["MachineScope"],
|
|
1733
|
+
status: json["Status"] == null ? undefined : json["Status"],
|
|
1734
|
+
isUnresponsive: json["IsUnresponsive"] == null ? undefined : json["IsUnresponsive"],
|
|
1735
|
+
runtimes: json["Runtimes"] == null ? undefined : json["Runtimes"],
|
|
1736
|
+
usedRuntimes: json["UsedRuntimes"] == null ? undefined : json["UsedRuntimes"],
|
|
1737
|
+
serviceUserName: json["ServiceUserName"] == null ? undefined : json["ServiceUserName"],
|
|
1738
|
+
reportingTime: json["ReportingTime"] == null ? undefined : new Date(json["ReportingTime"]),
|
|
1739
|
+
version: json["Version"] == null ? undefined : json["Version"],
|
|
1740
|
+
debugModeExpirationDate: json["DebugModeExpirationDate"] == null ? undefined : new Date(json["DebugModeExpirationDate"]),
|
|
1741
|
+
platform: json["Platform"] == null ? undefined : json["Platform"],
|
|
1742
|
+
endpointDetection: json["EndpointDetection"] == null ? undefined : json["EndpointDetection"],
|
|
1743
|
+
triggersCount: json["TriggersCount"] == null ? undefined : json["TriggersCount"]
|
|
1744
|
+
};
|
|
1745
|
+
}
|
|
1746
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfExtendedMachineDto.ts
|
|
1747
|
+
function ODataValueOfIEnumerableOfExtendedMachineDtoFromJSON(json) {
|
|
1748
|
+
return ODataValueOfIEnumerableOfExtendedMachineDtoFromJSONTyped(json, false);
|
|
1749
|
+
}
|
|
1750
|
+
function ODataValueOfIEnumerableOfExtendedMachineDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1751
|
+
if (json == null) {
|
|
1752
|
+
return json;
|
|
1208
1753
|
}
|
|
1209
|
-
|
|
1210
|
-
|
|
1754
|
+
return {
|
|
1755
|
+
value: json["value"] == null ? undefined : json["value"].map(ExtendedMachineDtoFromJSON)
|
|
1756
|
+
};
|
|
1757
|
+
}
|
|
1758
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfFolderDto.ts
|
|
1759
|
+
function ODataValueOfIEnumerableOfFolderDtoFromJSON(json) {
|
|
1760
|
+
return ODataValueOfIEnumerableOfFolderDtoFromJSONTyped(json, false);
|
|
1761
|
+
}
|
|
1762
|
+
function ODataValueOfIEnumerableOfFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1763
|
+
if (json == null) {
|
|
1764
|
+
return json;
|
|
1211
1765
|
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
const response = await this.request({
|
|
1224
|
-
path: urlPath,
|
|
1225
|
-
method: "DELETE",
|
|
1226
|
-
headers: headerParameters,
|
|
1227
|
-
query: queryParameters
|
|
1228
|
-
}, initOverrides);
|
|
1229
|
-
return new VoidApiResponse(response);
|
|
1766
|
+
return {
|
|
1767
|
+
value: json["value"] == null ? undefined : json["value"].map(FolderDtoFromJSON)
|
|
1768
|
+
};
|
|
1769
|
+
}
|
|
1770
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfMachineFolderDto.ts
|
|
1771
|
+
function ODataValueOfIEnumerableOfMachineFolderDtoFromJSON(json) {
|
|
1772
|
+
return ODataValueOfIEnumerableOfMachineFolderDtoFromJSONTyped(json, false);
|
|
1773
|
+
}
|
|
1774
|
+
function ODataValueOfIEnumerableOfMachineFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1775
|
+
if (json == null) {
|
|
1776
|
+
return json;
|
|
1230
1777
|
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1778
|
+
return {
|
|
1779
|
+
value: json["value"] == null ? undefined : json["value"].map(MachineFolderDtoFromJSON)
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfMachineRuntimeDto.ts
|
|
1783
|
+
function ODataValueOfIEnumerableOfMachineRuntimeDtoFromJSON(json) {
|
|
1784
|
+
return ODataValueOfIEnumerableOfMachineRuntimeDtoFromJSONTyped(json, false);
|
|
1785
|
+
}
|
|
1786
|
+
function ODataValueOfIEnumerableOfMachineRuntimeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1787
|
+
if (json == null) {
|
|
1788
|
+
return json;
|
|
1233
1789
|
}
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1790
|
+
return {
|
|
1791
|
+
value: json["value"] == null ? undefined : json["value"].map(MachineRuntimeDtoFromJSON)
|
|
1792
|
+
};
|
|
1793
|
+
}
|
|
1794
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfMachineSessionDto.ts
|
|
1795
|
+
function ODataValueOfIEnumerableOfMachineSessionDtoFromJSON(json) {
|
|
1796
|
+
return ODataValueOfIEnumerableOfMachineSessionDtoFromJSONTyped(json, false);
|
|
1797
|
+
}
|
|
1798
|
+
function ODataValueOfIEnumerableOfMachineSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1799
|
+
if (json == null) {
|
|
1800
|
+
return json;
|
|
1801
|
+
}
|
|
1802
|
+
return {
|
|
1803
|
+
value: json["value"] == null ? undefined : json["value"].map(MachineSessionDtoFromJSON)
|
|
1804
|
+
};
|
|
1805
|
+
}
|
|
1806
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfMachineSessionRuntimeDto.ts
|
|
1807
|
+
function ODataValueOfIEnumerableOfMachineSessionRuntimeDtoFromJSON(json) {
|
|
1808
|
+
return ODataValueOfIEnumerableOfMachineSessionRuntimeDtoFromJSONTyped(json, false);
|
|
1809
|
+
}
|
|
1810
|
+
function ODataValueOfIEnumerableOfMachineSessionRuntimeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1811
|
+
if (json == null) {
|
|
1812
|
+
return json;
|
|
1813
|
+
}
|
|
1814
|
+
return {
|
|
1815
|
+
value: json["value"] == null ? undefined : json["value"].map(MachineSessionRuntimeDtoFromJSON)
|
|
1816
|
+
};
|
|
1817
|
+
}
|
|
1818
|
+
// ../orchestrator-sdk/generated/src/models/PersonalWorkspaceDto.ts
|
|
1819
|
+
function PersonalWorkspaceDtoFromJSON(json) {
|
|
1820
|
+
return PersonalWorkspaceDtoFromJSONTyped(json, false);
|
|
1821
|
+
}
|
|
1822
|
+
function PersonalWorkspaceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1823
|
+
if (json == null) {
|
|
1824
|
+
return json;
|
|
1825
|
+
}
|
|
1826
|
+
return {
|
|
1827
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1828
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
1829
|
+
isActive: json["IsActive"] == null ? undefined : json["IsActive"],
|
|
1830
|
+
ownerId: json["OwnerId"] == null ? undefined : json["OwnerId"],
|
|
1831
|
+
ownerKey: json["OwnerKey"] == null ? undefined : json["OwnerKey"],
|
|
1832
|
+
ownerName: json["OwnerName"] == null ? undefined : json["OwnerName"],
|
|
1833
|
+
lastLogin: json["LastLogin"] == null ? undefined : new Date(json["LastLogin"]),
|
|
1834
|
+
exploringUserIds: json["ExploringUserIds"] == null ? undefined : json["ExploringUserIds"],
|
|
1835
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfPersonalWorkspaceDto.ts
|
|
1840
|
+
function ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSON(json) {
|
|
1841
|
+
return ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSONTyped(json, false);
|
|
1842
|
+
}
|
|
1843
|
+
function ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1844
|
+
if (json == null) {
|
|
1845
|
+
return json;
|
|
1846
|
+
}
|
|
1847
|
+
return {
|
|
1848
|
+
value: json["value"] == null ? undefined : json["value"].map(PersonalWorkspaceDtoFromJSON)
|
|
1849
|
+
};
|
|
1850
|
+
}
|
|
1851
|
+
// ../orchestrator-sdk/generated/src/models/SearchUserDto.ts
|
|
1852
|
+
function SearchUserDtoFromJSON(json) {
|
|
1853
|
+
return SearchUserDtoFromJSONTyped(json, false);
|
|
1854
|
+
}
|
|
1855
|
+
function SearchUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1856
|
+
if (json == null) {
|
|
1857
|
+
return json;
|
|
1858
|
+
}
|
|
1859
|
+
return {
|
|
1860
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
1861
|
+
userRoles: json["UserRoles"] == null ? undefined : json["UserRoles"].map(UserRoleDtoFromJSON),
|
|
1862
|
+
rolesList: json["RolesList"] == null ? undefined : json["RolesList"],
|
|
1863
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1864
|
+
};
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfSearchUserDto.ts
|
|
1868
|
+
function ODataValueOfIEnumerableOfSearchUserDtoFromJSON(json) {
|
|
1869
|
+
return ODataValueOfIEnumerableOfSearchUserDtoFromJSONTyped(json, false);
|
|
1870
|
+
}
|
|
1871
|
+
function ODataValueOfIEnumerableOfSearchUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1872
|
+
if (json == null) {
|
|
1873
|
+
return json;
|
|
1874
|
+
}
|
|
1875
|
+
return {
|
|
1876
|
+
value: json["value"] == null ? undefined : json["value"].map(SearchUserDtoFromJSON)
|
|
1877
|
+
};
|
|
1878
|
+
}
|
|
1879
|
+
// ../orchestrator-sdk/generated/src/models/SessionDto.ts
|
|
1880
|
+
function SessionDtoFromJSON(json) {
|
|
1881
|
+
return SessionDtoFromJSONTyped(json, false);
|
|
1882
|
+
}
|
|
1883
|
+
function SessionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1884
|
+
if (json == null) {
|
|
1885
|
+
return json;
|
|
1886
|
+
}
|
|
1887
|
+
return {
|
|
1888
|
+
robot: json["Robot"] == null ? undefined : RobotWithLicenseDtoFromJSON(json["Robot"]),
|
|
1889
|
+
hostMachineName: json["HostMachineName"] == null ? undefined : json["HostMachineName"],
|
|
1890
|
+
machineId: json["MachineId"] == null ? undefined : json["MachineId"],
|
|
1891
|
+
machineName: json["MachineName"] == null ? undefined : json["MachineName"],
|
|
1892
|
+
state: json["State"] == null ? undefined : json["State"],
|
|
1893
|
+
job: json["Job"] == null ? undefined : JobDtoFromJSON(json["Job"]),
|
|
1894
|
+
reportingTime: json["ReportingTime"] == null ? undefined : new Date(json["ReportingTime"]),
|
|
1895
|
+
info: json["Info"] == null ? undefined : json["Info"],
|
|
1896
|
+
isUnresponsive: json["IsUnresponsive"] == null ? undefined : json["IsUnresponsive"],
|
|
1897
|
+
licenseErrorCode: json["LicenseErrorCode"] == null ? undefined : json["LicenseErrorCode"],
|
|
1898
|
+
organizationUnitId: json["OrganizationUnitId"] == null ? undefined : json["OrganizationUnitId"],
|
|
1899
|
+
folderName: json["FolderName"] == null ? undefined : json["FolderName"],
|
|
1900
|
+
robotSessionType: json["RobotSessionType"] == null ? undefined : json["RobotSessionType"],
|
|
1901
|
+
version: json["Version"] == null ? undefined : json["Version"],
|
|
1902
|
+
source: json["Source"] == null ? undefined : json["Source"],
|
|
1903
|
+
debugModeExpirationDate: json["DebugModeExpirationDate"] == null ? undefined : new Date(json["DebugModeExpirationDate"]),
|
|
1904
|
+
updateInfo: json["UpdateInfo"] == null ? undefined : UpdateInfoDtoFromJSON(json["UpdateInfo"]),
|
|
1905
|
+
installationId: json["InstallationId"] == null ? undefined : json["InstallationId"],
|
|
1906
|
+
platform: json["Platform"] == null ? undefined : json["Platform"],
|
|
1907
|
+
endpointDetection: json["EndpointDetection"] == null ? undefined : json["EndpointDetection"],
|
|
1908
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfSessionDto.ts
|
|
1913
|
+
function ODataValueOfIEnumerableOfSessionDtoFromJSON(json) {
|
|
1914
|
+
return ODataValueOfIEnumerableOfSessionDtoFromJSONTyped(json, false);
|
|
1915
|
+
}
|
|
1916
|
+
function ODataValueOfIEnumerableOfSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1917
|
+
if (json == null) {
|
|
1918
|
+
return json;
|
|
1919
|
+
}
|
|
1920
|
+
return {
|
|
1921
|
+
value: json["value"] == null ? undefined : json["value"].map(SessionDtoFromJSON)
|
|
1922
|
+
};
|
|
1923
|
+
}
|
|
1924
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfString.ts
|
|
1925
|
+
function ODataValueOfIEnumerableOfStringFromJSON(json) {
|
|
1926
|
+
return ODataValueOfIEnumerableOfStringFromJSONTyped(json, false);
|
|
1927
|
+
}
|
|
1928
|
+
function ODataValueOfIEnumerableOfStringFromJSONTyped(json, ignoreDiscriminator) {
|
|
1929
|
+
if (json == null) {
|
|
1930
|
+
return json;
|
|
1931
|
+
}
|
|
1932
|
+
return {
|
|
1933
|
+
value: json["value"] == null ? undefined : json["value"]
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1936
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfUserDto.ts
|
|
1937
|
+
function ODataValueOfIEnumerableOfUserDtoFromJSON(json) {
|
|
1938
|
+
return ODataValueOfIEnumerableOfUserDtoFromJSONTyped(json, false);
|
|
1939
|
+
}
|
|
1940
|
+
function ODataValueOfIEnumerableOfUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1941
|
+
if (json == null) {
|
|
1942
|
+
return json;
|
|
1943
|
+
}
|
|
1944
|
+
return {
|
|
1945
|
+
value: json["value"] == null ? undefined : json["value"].map(UserDtoFromJSON)
|
|
1946
|
+
};
|
|
1947
|
+
}
|
|
1948
|
+
// ../orchestrator-sdk/generated/src/models/UserRobotsDto.ts
|
|
1949
|
+
function UserRobotsDtoFromJSON(json) {
|
|
1950
|
+
return UserRobotsDtoFromJSONTyped(json, false);
|
|
1951
|
+
}
|
|
1952
|
+
function UserRobotsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1953
|
+
if (json == null) {
|
|
1954
|
+
return json;
|
|
1955
|
+
}
|
|
1956
|
+
return {
|
|
1957
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
1958
|
+
robotNames: json["RobotNames"] == null ? undefined : json["RobotNames"]
|
|
1959
|
+
};
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfUserRobotsDto.ts
|
|
1963
|
+
function ODataValueOfIEnumerableOfUserRobotsDtoFromJSON(json) {
|
|
1964
|
+
return ODataValueOfIEnumerableOfUserRobotsDtoFromJSONTyped(json, false);
|
|
1965
|
+
}
|
|
1966
|
+
function ODataValueOfIEnumerableOfUserRobotsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1967
|
+
if (json == null) {
|
|
1968
|
+
return json;
|
|
1969
|
+
}
|
|
1970
|
+
return {
|
|
1971
|
+
value: json["value"] == null ? undefined : json["value"].map(UserRobotsDtoFromJSON)
|
|
1972
|
+
};
|
|
1973
|
+
}
|
|
1974
|
+
// ../orchestrator-sdk/generated/src/models/UserEntityDto.ts
|
|
1975
|
+
function UserEntityDtoFromJSON(json) {
|
|
1976
|
+
return UserEntityDtoFromJSONTyped(json, false);
|
|
1977
|
+
}
|
|
1978
|
+
function UserEntityDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1979
|
+
if (json == null) {
|
|
1980
|
+
return json;
|
|
1981
|
+
}
|
|
1982
|
+
return {
|
|
1983
|
+
fullName: json["FullName"] == null ? undefined : json["FullName"],
|
|
1984
|
+
authenticationSource: json["AuthenticationSource"] == null ? undefined : json["AuthenticationSource"],
|
|
1985
|
+
emailAddress: json["EmailAddress"] == null ? undefined : json["EmailAddress"],
|
|
1986
|
+
key: json["Key"] == null ? undefined : json["Key"],
|
|
1987
|
+
userName: json["UserName"] == null ? undefined : json["UserName"],
|
|
1988
|
+
isInherited: json["IsInherited"] == null ? undefined : json["IsInherited"],
|
|
1989
|
+
assignedToFolderIds: json["AssignedToFolderIds"] == null ? undefined : json["AssignedToFolderIds"],
|
|
1990
|
+
mayHaveAttended: json["MayHaveAttended"] == null ? undefined : json["MayHaveAttended"],
|
|
1991
|
+
mayHaveUnattended: json["MayHaveUnattended"] == null ? undefined : json["MayHaveUnattended"],
|
|
1992
|
+
type: json["Type"] == null ? undefined : json["Type"],
|
|
1993
|
+
source: json["Source"] == null ? undefined : json["Source"],
|
|
1994
|
+
isActive: json["IsActive"] == null ? undefined : json["IsActive"],
|
|
1995
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
1996
|
+
};
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
// ../orchestrator-sdk/generated/src/models/SimpleRoleDto.ts
|
|
2000
|
+
function SimpleRoleDtoFromJSON(json) {
|
|
2001
|
+
return SimpleRoleDtoFromJSONTyped(json, false);
|
|
2002
|
+
}
|
|
2003
|
+
function SimpleRoleDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2004
|
+
if (json == null) {
|
|
2005
|
+
return json;
|
|
2006
|
+
}
|
|
2007
|
+
return {
|
|
2008
|
+
origin: json["Origin"] == null ? undefined : json["Origin"],
|
|
2009
|
+
roleType: json["RoleType"] == null ? undefined : json["RoleType"],
|
|
2010
|
+
inheritedFromFolder: json["InheritedFromFolder"] == null ? undefined : SimpleFolderDtoFromJSON(json["InheritedFromFolder"]),
|
|
2011
|
+
name: json["Name"] == null ? undefined : json["Name"],
|
|
2012
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
// ../orchestrator-sdk/generated/src/models/UserRolesDto.ts
|
|
2017
|
+
function UserRolesDtoFromJSON(json) {
|
|
2018
|
+
return UserRolesDtoFromJSONTyped(json, false);
|
|
2019
|
+
}
|
|
2020
|
+
function UserRolesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2021
|
+
if (json == null) {
|
|
2022
|
+
return json;
|
|
2023
|
+
}
|
|
2024
|
+
return {
|
|
2025
|
+
userEntity: json["UserEntity"] == null ? undefined : UserEntityDtoFromJSON(json["UserEntity"]),
|
|
2026
|
+
roles: json["Roles"] == null ? undefined : json["Roles"].map(SimpleRoleDtoFromJSON),
|
|
2027
|
+
hasAlertsEnabled: json["HasAlertsEnabled"] == null ? undefined : json["HasAlertsEnabled"],
|
|
2028
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
2029
|
+
};
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfUserRolesDto.ts
|
|
2033
|
+
function ODataValueOfIEnumerableOfUserRolesDtoFromJSON(json) {
|
|
2034
|
+
return ODataValueOfIEnumerableOfUserRolesDtoFromJSONTyped(json, false);
|
|
2035
|
+
}
|
|
2036
|
+
function ODataValueOfIEnumerableOfUserRolesDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2037
|
+
if (json == null) {
|
|
2038
|
+
return json;
|
|
2039
|
+
}
|
|
2040
|
+
return {
|
|
2041
|
+
value: json["value"] == null ? undefined : json["value"].map(UserRolesDtoFromJSON)
|
|
2042
|
+
};
|
|
2043
|
+
}
|
|
2044
|
+
// ../orchestrator-sdk/generated/src/models/ODataValueOfInt64.ts
|
|
2045
|
+
function ODataValueOfInt64FromJSON(json) {
|
|
2046
|
+
return ODataValueOfInt64FromJSONTyped(json, false);
|
|
2047
|
+
}
|
|
2048
|
+
function ODataValueOfInt64FromJSONTyped(json, ignoreDiscriminator) {
|
|
2049
|
+
if (json == null) {
|
|
2050
|
+
return json;
|
|
2051
|
+
}
|
|
2052
|
+
return {
|
|
2053
|
+
value: json["value"] == null ? undefined : json["value"]
|
|
2054
|
+
};
|
|
2055
|
+
}
|
|
2056
|
+
// ../orchestrator-sdk/generated/src/models/PageResultDtoOfCurrentUserFolderDto.ts
|
|
2057
|
+
function PageResultDtoOfCurrentUserFolderDtoFromJSON(json) {
|
|
2058
|
+
return PageResultDtoOfCurrentUserFolderDtoFromJSONTyped(json, false);
|
|
2059
|
+
}
|
|
2060
|
+
function PageResultDtoOfCurrentUserFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2061
|
+
if (json == null) {
|
|
2062
|
+
return json;
|
|
2063
|
+
}
|
|
2064
|
+
return {
|
|
2065
|
+
pageItems: json["PageItems"] == null ? undefined : json["PageItems"].map(CurrentUserFolderDtoFromJSON),
|
|
2066
|
+
count: json["Count"] == null ? undefined : json["Count"]
|
|
2067
|
+
};
|
|
2068
|
+
}
|
|
2069
|
+
// ../orchestrator-sdk/generated/src/models/RemoveMachinesFromFolderRequest.ts
|
|
2070
|
+
function RemoveMachinesFromFolderRequestToJSON(json) {
|
|
2071
|
+
return RemoveMachinesFromFolderRequestToJSONTyped(json, false);
|
|
2072
|
+
}
|
|
2073
|
+
function RemoveMachinesFromFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2074
|
+
if (value == null) {
|
|
2075
|
+
return value;
|
|
2076
|
+
}
|
|
2077
|
+
return {
|
|
2078
|
+
machineIds: value["machineIds"]
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
// ../orchestrator-sdk/generated/src/models/RemoveUserFromFolderRequest.ts
|
|
2082
|
+
function RemoveUserFromFolderRequestToJSON(json) {
|
|
2083
|
+
return RemoveUserFromFolderRequestToJSONTyped(json, false);
|
|
2084
|
+
}
|
|
2085
|
+
function RemoveUserFromFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2086
|
+
if (value == null) {
|
|
2087
|
+
return value;
|
|
2088
|
+
}
|
|
2089
|
+
return {
|
|
2090
|
+
userId: value["userId"]
|
|
2091
|
+
};
|
|
2092
|
+
}
|
|
2093
|
+
// ../orchestrator-sdk/generated/src/models/SessionMaintenanceModeParameters.ts
|
|
2094
|
+
function SessionMaintenanceModeParametersToJSON(json) {
|
|
2095
|
+
return SessionMaintenanceModeParametersToJSONTyped(json, false);
|
|
2096
|
+
}
|
|
2097
|
+
function SessionMaintenanceModeParametersToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2098
|
+
if (value == null) {
|
|
2099
|
+
return value;
|
|
2100
|
+
}
|
|
2101
|
+
return {
|
|
2102
|
+
sessionId: value["sessionId"],
|
|
2103
|
+
maintenanceMode: value["maintenanceMode"],
|
|
2104
|
+
stopJobsStrategy: value["stopJobsStrategy"]
|
|
2105
|
+
};
|
|
2106
|
+
}
|
|
2107
|
+
// ../orchestrator-sdk/generated/src/models/SessionsToggleMachineSessionDebugModeRequest.ts
|
|
2108
|
+
function SessionsToggleMachineSessionDebugModeRequestToJSON(json) {
|
|
2109
|
+
return SessionsToggleMachineSessionDebugModeRequestToJSONTyped(json, false);
|
|
2110
|
+
}
|
|
2111
|
+
function SessionsToggleMachineSessionDebugModeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2112
|
+
if (value == null) {
|
|
2113
|
+
return value;
|
|
2114
|
+
}
|
|
2115
|
+
return {
|
|
2116
|
+
enabled: value["enabled"],
|
|
2117
|
+
minutes: value["minutes"]
|
|
2118
|
+
};
|
|
2119
|
+
}
|
|
2120
|
+
// ../orchestrator-sdk/generated/src/models/UserAssignRolesRequest.ts
|
|
2121
|
+
function UserAssignRolesRequestToJSON(json) {
|
|
2122
|
+
return UserAssignRolesRequestToJSONTyped(json, false);
|
|
2123
|
+
}
|
|
2124
|
+
function UserAssignRolesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2125
|
+
if (value == null) {
|
|
2126
|
+
return value;
|
|
2127
|
+
}
|
|
2128
|
+
return {
|
|
2129
|
+
roleIds: value["roleIds"]
|
|
2130
|
+
};
|
|
2131
|
+
}
|
|
2132
|
+
// ../orchestrator-sdk/generated/src/models/UserRoleAssignmentsDto.ts
|
|
2133
|
+
function UserRoleAssignmentsDtoFromJSON(json) {
|
|
2134
|
+
return UserRoleAssignmentsDtoFromJSONTyped(json, false);
|
|
2135
|
+
}
|
|
2136
|
+
function UserRoleAssignmentsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
2137
|
+
if (json == null) {
|
|
2138
|
+
return json;
|
|
2139
|
+
}
|
|
2140
|
+
return {
|
|
2141
|
+
tenantRoles: json["TenantRoles"] == null ? undefined : json["TenantRoles"].map(RoleUsersDtoFromJSON),
|
|
2142
|
+
pageItems: json["PageItems"] == null ? undefined : json["PageItems"].map(FolderAssignmentsDtoFromJSON),
|
|
2143
|
+
count: json["Count"] == null ? undefined : json["Count"],
|
|
2144
|
+
id: json["Id"] == null ? undefined : json["Id"]
|
|
2145
|
+
};
|
|
2146
|
+
}
|
|
2147
|
+
// ../orchestrator-sdk/generated/src/apis/MachinesApi.ts
|
|
2148
|
+
class MachinesApi extends BaseAPI {
|
|
2149
|
+
async machinesDeleteBulkRaw(requestParameters, initOverrides) {
|
|
2150
|
+
const queryParameters = {};
|
|
2151
|
+
const headerParameters = {};
|
|
2152
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2153
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2154
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2155
|
+
}
|
|
2156
|
+
let urlPath = `/odata/Machines/UiPath.Server.Configuration.OData.DeleteBulk`;
|
|
2157
|
+
const response = await this.request({
|
|
2158
|
+
path: urlPath,
|
|
2159
|
+
method: "POST",
|
|
2160
|
+
headers: headerParameters,
|
|
2161
|
+
query: queryParameters,
|
|
2162
|
+
body: MachineDeleteBulkRequestToJSON(requestParameters["body"])
|
|
2163
|
+
}, initOverrides);
|
|
2164
|
+
return new VoidApiResponse(response);
|
|
2165
|
+
}
|
|
2166
|
+
async machinesDeleteBulk(requestParameters = {}, initOverrides) {
|
|
2167
|
+
await this.machinesDeleteBulkRaw(requestParameters, initOverrides);
|
|
2168
|
+
}
|
|
2169
|
+
async machinesDeleteByIdRaw(requestParameters, initOverrides) {
|
|
2170
|
+
if (requestParameters["key"] == null) {
|
|
2171
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling machinesDeleteById().');
|
|
2172
|
+
}
|
|
2173
|
+
const queryParameters = {};
|
|
2174
|
+
const headerParameters = {};
|
|
2175
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2176
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2177
|
+
}
|
|
2178
|
+
let urlPath = `/odata/Machines({key})`;
|
|
2179
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2180
|
+
const response = await this.request({
|
|
2181
|
+
path: urlPath,
|
|
2182
|
+
method: "DELETE",
|
|
2183
|
+
headers: headerParameters,
|
|
2184
|
+
query: queryParameters
|
|
2185
|
+
}, initOverrides);
|
|
2186
|
+
return new VoidApiResponse(response);
|
|
2187
|
+
}
|
|
2188
|
+
async machinesDeleteById(requestParameters, initOverrides) {
|
|
2189
|
+
await this.machinesDeleteByIdRaw(requestParameters, initOverrides);
|
|
2190
|
+
}
|
|
2191
|
+
async machinesGetRaw(requestParameters, initOverrides) {
|
|
2192
|
+
const queryParameters = {};
|
|
2193
|
+
if (requestParameters["$select"] != null) {
|
|
2194
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2195
|
+
}
|
|
2196
|
+
if (requestParameters["$expand"] != null) {
|
|
2197
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2198
|
+
}
|
|
2199
|
+
if (requestParameters["$filter"] != null) {
|
|
2200
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2201
|
+
}
|
|
2202
|
+
if (requestParameters["$orderby"] != null) {
|
|
2203
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2204
|
+
}
|
|
2205
|
+
if (requestParameters["$top"] != null) {
|
|
2206
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2207
|
+
}
|
|
2208
|
+
if (requestParameters["$skip"] != null) {
|
|
2209
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2210
|
+
}
|
|
2211
|
+
if (requestParameters["$count"] != null) {
|
|
2212
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2213
|
+
}
|
|
2214
|
+
const headerParameters = {};
|
|
2215
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2216
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2217
|
+
}
|
|
2218
|
+
let urlPath = `/odata/Machines`;
|
|
2219
|
+
const response = await this.request({
|
|
2220
|
+
path: urlPath,
|
|
2221
|
+
method: "GET",
|
|
2222
|
+
headers: headerParameters,
|
|
2223
|
+
query: queryParameters
|
|
2224
|
+
}, initOverrides);
|
|
2225
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfExtendedMachineDtoFromJSON(jsonValue));
|
|
2226
|
+
}
|
|
2227
|
+
async machinesGet(requestParameters = {}, initOverrides) {
|
|
2228
|
+
const response = await this.machinesGetRaw(requestParameters, initOverrides);
|
|
2229
|
+
return await response.value();
|
|
2230
|
+
}
|
|
2231
|
+
async machinesGetRuntimesForFolderByFolderidRaw(requestParameters, initOverrides) {
|
|
2232
|
+
if (requestParameters["folderId"] == null) {
|
|
2233
|
+
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling machinesGetRuntimesForFolderByFolderid().');
|
|
2234
|
+
}
|
|
2235
|
+
const queryParameters = {};
|
|
2236
|
+
if (requestParameters["processType"] != null) {
|
|
2237
|
+
queryParameters["processType"] = requestParameters["processType"];
|
|
2238
|
+
}
|
|
2239
|
+
if (requestParameters["$select"] != null) {
|
|
2240
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2241
|
+
}
|
|
2242
|
+
if (requestParameters["$expand"] != null) {
|
|
2243
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2244
|
+
}
|
|
2245
|
+
if (requestParameters["$filter"] != null) {
|
|
2246
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2247
|
+
}
|
|
2248
|
+
if (requestParameters["$orderby"] != null) {
|
|
2249
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2250
|
+
}
|
|
2251
|
+
if (requestParameters["$count"] != null) {
|
|
2252
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2253
|
+
}
|
|
2254
|
+
const headerParameters = {};
|
|
2255
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2256
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2257
|
+
}
|
|
2258
|
+
let urlPath = `/odata/Machines/UiPath.Server.Configuration.OData.GetRuntimesForFolder(folderId={folderId})`;
|
|
2259
|
+
urlPath = urlPath.replace(`{${"folderId"}}`, encodeURIComponent(String(requestParameters["folderId"])));
|
|
2260
|
+
const response = await this.request({
|
|
2261
|
+
path: urlPath,
|
|
2262
|
+
method: "GET",
|
|
2263
|
+
headers: headerParameters,
|
|
2264
|
+
query: queryParameters
|
|
2265
|
+
}, initOverrides);
|
|
2266
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfMachineRuntimeDtoFromJSON(jsonValue));
|
|
2267
|
+
}
|
|
2268
|
+
async machinesGetRuntimesForFolderByFolderid(requestParameters, initOverrides) {
|
|
2269
|
+
const response = await this.machinesGetRuntimesForFolderByFolderidRaw(requestParameters, initOverrides);
|
|
2270
|
+
return await response.value();
|
|
2271
|
+
}
|
|
2272
|
+
async machinesPatchByIdRaw(requestParameters, initOverrides) {
|
|
2273
|
+
if (requestParameters["key"] == null) {
|
|
2274
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling machinesPatchById().');
|
|
2275
|
+
}
|
|
2276
|
+
const queryParameters = {};
|
|
2277
|
+
const headerParameters = {};
|
|
2278
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2279
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2280
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2281
|
+
}
|
|
2282
|
+
let urlPath = `/odata/Machines({key})`;
|
|
2283
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2284
|
+
const response = await this.request({
|
|
2285
|
+
path: urlPath,
|
|
2286
|
+
method: "PATCH",
|
|
2287
|
+
headers: headerParameters,
|
|
2288
|
+
query: queryParameters,
|
|
2289
|
+
body: MachineDtoToJSON(requestParameters["body"])
|
|
2290
|
+
}, initOverrides);
|
|
2291
|
+
return new VoidApiResponse(response);
|
|
2292
|
+
}
|
|
2293
|
+
async machinesPatchById(requestParameters, initOverrides) {
|
|
2294
|
+
await this.machinesPatchByIdRaw(requestParameters, initOverrides);
|
|
2295
|
+
}
|
|
2296
|
+
async machinesPostRaw(requestParameters, initOverrides) {
|
|
2297
|
+
const queryParameters = {};
|
|
2298
|
+
const headerParameters = {};
|
|
2299
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2300
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2301
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2302
|
+
}
|
|
2303
|
+
let urlPath = `/odata/Machines`;
|
|
2304
|
+
const response = await this.request({
|
|
2305
|
+
path: urlPath,
|
|
2306
|
+
method: "POST",
|
|
2307
|
+
headers: headerParameters,
|
|
2308
|
+
query: queryParameters,
|
|
2309
|
+
body: MachineDtoToJSON(requestParameters["body"])
|
|
2310
|
+
}, initOverrides);
|
|
2311
|
+
return new JSONApiResponse(response, (jsonValue) => MachineDtoFromJSON(jsonValue));
|
|
2312
|
+
}
|
|
2313
|
+
async machinesPost(requestParameters = {}, initOverrides) {
|
|
2314
|
+
const response = await this.machinesPostRaw(requestParameters, initOverrides);
|
|
2315
|
+
return await response.value();
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
var MachinesGetRuntimesForFolderByFolderidProcessTypeEnum = {
|
|
2319
|
+
Undefined: "Undefined",
|
|
2320
|
+
Process: "Process",
|
|
2321
|
+
ProcessOrchestration: "ProcessOrchestration",
|
|
2322
|
+
WebApp: "WebApp",
|
|
2323
|
+
Agent: "Agent",
|
|
2324
|
+
TestAutomationProcess: "TestAutomationProcess",
|
|
2325
|
+
Api: "Api",
|
|
2326
|
+
McpServer: "MCPServer",
|
|
2327
|
+
BusinessRules: "BusinessRules",
|
|
2328
|
+
CaseManagement: "CaseManagement",
|
|
2329
|
+
Flow: "Flow",
|
|
2330
|
+
Function: "Function",
|
|
2331
|
+
System: "System",
|
|
2332
|
+
FlowAutomate: "FlowAutomate"
|
|
2333
|
+
};
|
|
2334
|
+
|
|
2335
|
+
// ../common/src/session-kind.ts
|
|
2336
|
+
var SESSION_KIND_KEY = Symbol.for("@uipath/common/SessionKind");
|
|
2337
|
+
function attachSessionKind(carrier, kind) {
|
|
2338
|
+
if (!kind)
|
|
2339
|
+
return carrier;
|
|
2340
|
+
Object.defineProperty(carrier, SESSION_KIND_KEY, {
|
|
2341
|
+
value: {
|
|
2342
|
+
__brand: "SessionKind",
|
|
2343
|
+
type: kind.type,
|
|
2344
|
+
...kind.clientId ? { clientId: kind.clientId } : {},
|
|
2345
|
+
...kind.applicationSubtype ? { applicationSubtype: kind.applicationSubtype } : {}
|
|
2346
|
+
},
|
|
2347
|
+
enumerable: false,
|
|
2348
|
+
configurable: true
|
|
2349
|
+
});
|
|
2350
|
+
const clone = carrier.clone;
|
|
2351
|
+
if (typeof clone === "function") {
|
|
2352
|
+
Object.defineProperty(carrier, "clone", {
|
|
2353
|
+
value: function stampedClone(...args) {
|
|
2354
|
+
const copy = clone.apply(this, args);
|
|
2355
|
+
return typeof copy === "object" && copy !== null ? attachSessionKind(copy, kind) : copy;
|
|
2356
|
+
},
|
|
2357
|
+
enumerable: false,
|
|
2358
|
+
configurable: true,
|
|
2359
|
+
writable: true
|
|
2360
|
+
});
|
|
2361
|
+
}
|
|
2362
|
+
return carrier;
|
|
2363
|
+
}
|
|
2364
|
+
// ../orchestrator-sdk/package.json
|
|
2365
|
+
var package_default = {
|
|
2366
|
+
name: "@uipath/orchestrator-sdk",
|
|
2367
|
+
author: "UiPath",
|
|
2368
|
+
license: "SEE LICENSE IN LICENSE.txt",
|
|
2369
|
+
version: "1.207.0",
|
|
2370
|
+
repository: {
|
|
2371
|
+
type: "git",
|
|
2372
|
+
url: "https://github.com/UiPath/cli.git",
|
|
2373
|
+
directory: "packages/orchestrator-sdk"
|
|
2374
|
+
},
|
|
2375
|
+
publishConfig: {
|
|
2376
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
2377
|
+
},
|
|
2378
|
+
keywords: [
|
|
2379
|
+
"uipath",
|
|
2380
|
+
"orchestrator",
|
|
2381
|
+
"sdk"
|
|
2382
|
+
],
|
|
2383
|
+
type: "module",
|
|
2384
|
+
main: "./dist/index.js",
|
|
2385
|
+
types: "./dist/src/index.d.ts",
|
|
2386
|
+
exports: {
|
|
2387
|
+
".": {
|
|
2388
|
+
browser: {
|
|
2389
|
+
types: "./dist/src/index.browser.d.ts",
|
|
2390
|
+
default: "./dist/index.browser.js"
|
|
2391
|
+
},
|
|
2392
|
+
default: {
|
|
2393
|
+
types: "./dist/src/index.d.ts",
|
|
2394
|
+
default: "./dist/index.js"
|
|
2395
|
+
}
|
|
2396
|
+
},
|
|
2397
|
+
"./folder-feed": {
|
|
2398
|
+
types: "./dist/src/folder-feed.d.ts",
|
|
2399
|
+
default: "./dist/folder-feed.js"
|
|
2400
|
+
}
|
|
2401
|
+
},
|
|
2402
|
+
files: [
|
|
2403
|
+
"dist"
|
|
2404
|
+
],
|
|
2405
|
+
private: true,
|
|
2406
|
+
scripts: {
|
|
2407
|
+
build: "bun build ./src/index.ts ./src/folder-feed.ts --outdir dist --format esm --target node --sourcemap=linked && bun build ./src/index.browser.ts --outdir dist --format esm --target browser --external @uipath/auth --external @uipath/common --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
2408
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
2409
|
+
lint: "biome check .",
|
|
2410
|
+
test: "vitest run",
|
|
2411
|
+
"test:coverage": "vitest run --coverage",
|
|
2412
|
+
typecheck: "tsc --noEmit"
|
|
2413
|
+
},
|
|
2414
|
+
devDependencies: {
|
|
2415
|
+
"@uipath/auth": "workspace:*",
|
|
2416
|
+
"@uipath/common": "workspace:*",
|
|
2417
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
2418
|
+
"@types/node": "^25.5.2",
|
|
2419
|
+
typescript: "^7.0.2"
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2422
|
+
|
|
2423
|
+
// ../orchestrator-sdk/src/user-agent.ts
|
|
2424
|
+
var SDK_USER_AGENT = getSdkUserAgentToken(package_default);
|
|
2425
|
+
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
2426
|
+
|
|
2427
|
+
// ../orchestrator-sdk/src/client-factory.ts
|
|
2428
|
+
async function createOrchestratorConfig(options) {
|
|
2429
|
+
const ctx = await getAuthContext({
|
|
2430
|
+
tenant: options?.tenant,
|
|
2431
|
+
ensureTokenValidityMinutes: options?.loginValidity,
|
|
2432
|
+
envFilePath: options?.envFilePath
|
|
2433
|
+
});
|
|
2434
|
+
const orchestratorBasePath = ctx.organizationId && ctx.tenantName ? `${ctx.baseUrl}/${ctx.organizationId}/${ctx.tenantName}/orchestrator_` : ctx.baseUrl;
|
|
2435
|
+
const headers = addSdkUserAgentHeader({
|
|
2436
|
+
Authorization: `Bearer ${ctx.accessToken}`
|
|
2437
|
+
}, SDK_USER_AGENT);
|
|
2438
|
+
if (options?.folderId) {
|
|
2439
|
+
headers["X-UIPATH-OrganizationUnitId"] = options.folderId;
|
|
2440
|
+
} else if (options?.folderKey && options?.folderPath) {
|
|
2441
|
+
throw new Error("Provide either folderKey or folderPath, not both.");
|
|
2442
|
+
} else if (options?.folderKey) {
|
|
2443
|
+
headers["X-UIPATH-FolderKey"] = options.folderKey;
|
|
2444
|
+
} else if (options?.folderPath) {
|
|
2445
|
+
headers["X-UIPATH-FolderPath"] = options.folderPath;
|
|
2446
|
+
}
|
|
2447
|
+
return new Configuration({
|
|
2448
|
+
basePath: orchestratorBasePath,
|
|
2449
|
+
headers,
|
|
2450
|
+
fetchApi: sessionKindStampingFetch(ctx.identity ?? resolveSessionIdentity(ctx.accessToken))
|
|
2451
|
+
});
|
|
2452
|
+
}
|
|
2453
|
+
function sessionKindStampingFetch(kind) {
|
|
2454
|
+
if (!kind)
|
|
2455
|
+
return;
|
|
2456
|
+
return async (...args) => attachSessionKind(await fetch(...args), kind);
|
|
2457
|
+
}
|
|
2458
|
+
async function createApiClient(ApiClass, options) {
|
|
2459
|
+
const config = await createOrchestratorConfig(options);
|
|
2460
|
+
return new ApiClass(config);
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
// ../orchestrator-sdk/generated/src/apis/FoldersApi.ts
|
|
2464
|
+
class FoldersApi extends BaseAPI {
|
|
2465
|
+
async foldersAssignMachinesRaw(requestParameters, initOverrides) {
|
|
2466
|
+
const queryParameters = {};
|
|
2467
|
+
const headerParameters = {};
|
|
2468
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2469
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2470
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2471
|
+
}
|
|
2472
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.AssignMachines`;
|
|
2473
|
+
const response = await this.request({
|
|
2474
|
+
path: urlPath,
|
|
2475
|
+
method: "POST",
|
|
2476
|
+
headers: headerParameters,
|
|
2477
|
+
query: queryParameters,
|
|
2478
|
+
body: FolderAssignMachinesRequestToJSON(requestParameters["body"])
|
|
2479
|
+
}, initOverrides);
|
|
2480
|
+
return new VoidApiResponse(response);
|
|
2481
|
+
}
|
|
2482
|
+
async foldersAssignMachines(requestParameters = {}, initOverrides) {
|
|
2483
|
+
await this.foldersAssignMachinesRaw(requestParameters, initOverrides);
|
|
2484
|
+
}
|
|
2485
|
+
async foldersAssignUsersRaw(requestParameters, initOverrides) {
|
|
2486
|
+
const queryParameters = {};
|
|
2487
|
+
const headerParameters = {};
|
|
2488
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2489
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2490
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2491
|
+
}
|
|
2492
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.AssignUsers`;
|
|
2493
|
+
const response = await this.request({
|
|
2494
|
+
path: urlPath,
|
|
2495
|
+
method: "POST",
|
|
2496
|
+
headers: headerParameters,
|
|
2497
|
+
query: queryParameters,
|
|
2498
|
+
body: FolderAssignUsersRequestToJSON(requestParameters["body"])
|
|
2499
|
+
}, initOverrides);
|
|
2500
|
+
return new VoidApiResponse(response);
|
|
2501
|
+
}
|
|
2502
|
+
async foldersAssignUsers(requestParameters = {}, initOverrides) {
|
|
2503
|
+
await this.foldersAssignUsersRaw(requestParameters, initOverrides);
|
|
2504
|
+
}
|
|
2505
|
+
async foldersDeleteByIdRaw(requestParameters, initOverrides) {
|
|
2506
|
+
if (requestParameters["key"] == null) {
|
|
2507
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersDeleteById().');
|
|
2508
|
+
}
|
|
2509
|
+
const queryParameters = {};
|
|
2510
|
+
const headerParameters = {};
|
|
2511
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2512
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2513
|
+
}
|
|
2514
|
+
let urlPath = `/odata/Folders({key})`;
|
|
2515
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2516
|
+
const response = await this.request({
|
|
2517
|
+
path: urlPath,
|
|
2518
|
+
method: "DELETE",
|
|
2519
|
+
headers: headerParameters,
|
|
2520
|
+
query: queryParameters
|
|
2521
|
+
}, initOverrides);
|
|
2522
|
+
return new VoidApiResponse(response);
|
|
2523
|
+
}
|
|
2524
|
+
async foldersDeleteById(requestParameters, initOverrides) {
|
|
2525
|
+
await this.foldersDeleteByIdRaw(requestParameters, initOverrides);
|
|
2526
|
+
}
|
|
2527
|
+
async foldersGetRaw(requestParameters, initOverrides) {
|
|
2528
|
+
const queryParameters = {};
|
|
2529
|
+
if (requestParameters["$select"] != null) {
|
|
2530
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2531
|
+
}
|
|
2532
|
+
if (requestParameters["$expand"] != null) {
|
|
2533
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2534
|
+
}
|
|
2535
|
+
if (requestParameters["$filter"] != null) {
|
|
2536
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2537
|
+
}
|
|
2538
|
+
if (requestParameters["$orderby"] != null) {
|
|
2539
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2540
|
+
}
|
|
2541
|
+
if (requestParameters["$top"] != null) {
|
|
2542
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2543
|
+
}
|
|
2544
|
+
if (requestParameters["$skip"] != null) {
|
|
2545
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2546
|
+
}
|
|
2547
|
+
if (requestParameters["$count"] != null) {
|
|
2548
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2549
|
+
}
|
|
2550
|
+
const headerParameters = {};
|
|
2551
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2552
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2553
|
+
}
|
|
2554
|
+
let urlPath = `/odata/Folders`;
|
|
2555
|
+
const response = await this.request({
|
|
2556
|
+
path: urlPath,
|
|
2557
|
+
method: "GET",
|
|
2558
|
+
headers: headerParameters,
|
|
2559
|
+
query: queryParameters
|
|
2560
|
+
}, initOverrides);
|
|
2561
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfFolderDtoFromJSON(jsonValue));
|
|
2562
|
+
}
|
|
2563
|
+
async foldersGet(requestParameters = {}, initOverrides) {
|
|
2564
|
+
const response = await this.foldersGetRaw(requestParameters, initOverrides);
|
|
2565
|
+
return await response.value();
|
|
2566
|
+
}
|
|
2567
|
+
async foldersGetAllForCurrentUserRaw(requestParameters, initOverrides) {
|
|
2568
|
+
const queryParameters = {};
|
|
2569
|
+
if (requestParameters["take"] != null) {
|
|
2570
|
+
queryParameters["take"] = requestParameters["take"];
|
|
2571
|
+
}
|
|
2572
|
+
if (requestParameters["skip"] != null) {
|
|
2573
|
+
queryParameters["skip"] = requestParameters["skip"];
|
|
2574
|
+
}
|
|
2575
|
+
const headerParameters = {};
|
|
2576
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2577
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2578
|
+
}
|
|
2579
|
+
let urlPath = `/api/Folders/GetAllForCurrentUser`;
|
|
2580
|
+
const response = await this.request({
|
|
2581
|
+
path: urlPath,
|
|
2582
|
+
method: "GET",
|
|
2583
|
+
headers: headerParameters,
|
|
2584
|
+
query: queryParameters
|
|
2585
|
+
}, initOverrides);
|
|
2586
|
+
return new JSONApiResponse(response, (jsonValue) => PageResultDtoOfCurrentUserFolderDtoFromJSON(jsonValue));
|
|
2587
|
+
}
|
|
2588
|
+
async foldersGetAllForCurrentUser(requestParameters = {}, initOverrides) {
|
|
2589
|
+
const response = await this.foldersGetAllForCurrentUserRaw(requestParameters, initOverrides);
|
|
2590
|
+
return await response.value();
|
|
2591
|
+
}
|
|
2592
|
+
async foldersGetAllRolesForUserByUsernameAndSkipAndTakeRaw(requestParameters, initOverrides) {
|
|
2593
|
+
if (requestParameters["username"] == null) {
|
|
2594
|
+
throw new RequiredError("username", 'Required parameter "username" was null or undefined when calling foldersGetAllRolesForUserByUsernameAndSkipAndTake().');
|
|
2595
|
+
}
|
|
2596
|
+
if (requestParameters["skip"] == null) {
|
|
2597
|
+
throw new RequiredError("skip", 'Required parameter "skip" was null or undefined when calling foldersGetAllRolesForUserByUsernameAndSkipAndTake().');
|
|
2598
|
+
}
|
|
2599
|
+
if (requestParameters["take"] == null) {
|
|
2600
|
+
throw new RequiredError("take", 'Required parameter "take" was null or undefined when calling foldersGetAllRolesForUserByUsernameAndSkipAndTake().');
|
|
2601
|
+
}
|
|
2602
|
+
const queryParameters = {};
|
|
2603
|
+
if (requestParameters["type"] != null) {
|
|
2604
|
+
queryParameters["type"] = requestParameters["type"];
|
|
2605
|
+
}
|
|
2606
|
+
if (requestParameters["searchText"] != null) {
|
|
2607
|
+
queryParameters["searchText"] = requestParameters["searchText"];
|
|
2608
|
+
}
|
|
2609
|
+
if (requestParameters["includeTenantRoles"] != null) {
|
|
2610
|
+
queryParameters["includeTenantRoles"] = requestParameters["includeTenantRoles"];
|
|
2611
|
+
}
|
|
2612
|
+
if (requestParameters["$select"] != null) {
|
|
2613
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2614
|
+
}
|
|
2615
|
+
if (requestParameters["$expand"] != null) {
|
|
2616
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2617
|
+
}
|
|
2618
|
+
const headerParameters = {};
|
|
2619
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2620
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2621
|
+
}
|
|
2622
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetAllRolesForUser(username='{username}',skip={skip},take={take})`;
|
|
2623
|
+
urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters["username"])));
|
|
2624
|
+
urlPath = urlPath.replace(`{${"skip"}}`, encodeURIComponent(String(requestParameters["skip"])));
|
|
2625
|
+
urlPath = urlPath.replace(`{${"take"}}`, encodeURIComponent(String(requestParameters["take"])));
|
|
2626
|
+
const response = await this.request({
|
|
2627
|
+
path: urlPath,
|
|
2628
|
+
method: "GET",
|
|
2629
|
+
headers: headerParameters,
|
|
2630
|
+
query: queryParameters
|
|
2631
|
+
}, initOverrides);
|
|
2632
|
+
return new JSONApiResponse(response, (jsonValue) => UserRoleAssignmentsDtoFromJSON(jsonValue));
|
|
2633
|
+
}
|
|
2634
|
+
async foldersGetAllRolesForUserByUsernameAndSkipAndTake(requestParameters, initOverrides) {
|
|
2635
|
+
const response = await this.foldersGetAllRolesForUserByUsernameAndSkipAndTakeRaw(requestParameters, initOverrides);
|
|
2636
|
+
return await response.value();
|
|
2637
|
+
}
|
|
2638
|
+
async foldersGetByIdRaw(requestParameters, initOverrides) {
|
|
2639
|
+
if (requestParameters["key"] == null) {
|
|
2640
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersGetById().');
|
|
2641
|
+
}
|
|
2642
|
+
const queryParameters = {};
|
|
2643
|
+
if (requestParameters["$select"] != null) {
|
|
2644
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2645
|
+
}
|
|
2646
|
+
if (requestParameters["$expand"] != null) {
|
|
2647
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2648
|
+
}
|
|
2649
|
+
const headerParameters = {};
|
|
2650
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2651
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2652
|
+
}
|
|
2653
|
+
let urlPath = `/odata/Folders({key})`;
|
|
2654
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2655
|
+
const response = await this.request({
|
|
2656
|
+
path: urlPath,
|
|
2657
|
+
method: "GET",
|
|
2658
|
+
headers: headerParameters,
|
|
2659
|
+
query: queryParameters
|
|
2660
|
+
}, initOverrides);
|
|
2661
|
+
return new JSONApiResponse(response, (jsonValue) => FolderDtoFromJSON(jsonValue));
|
|
2662
|
+
}
|
|
2663
|
+
async foldersGetById(requestParameters, initOverrides) {
|
|
2664
|
+
const response = await this.foldersGetByIdRaw(requestParameters, initOverrides);
|
|
2665
|
+
return await response.value();
|
|
2666
|
+
}
|
|
2667
|
+
async foldersGetByKeyByIdentifierRaw(requestParameters, initOverrides) {
|
|
2668
|
+
if (requestParameters["identifier"] == null) {
|
|
2669
|
+
throw new RequiredError("identifier", 'Required parameter "identifier" was null or undefined when calling foldersGetByKeyByIdentifier().');
|
|
2670
|
+
}
|
|
2671
|
+
const queryParameters = {};
|
|
2672
|
+
if (requestParameters["$select"] != null) {
|
|
2673
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2674
|
+
}
|
|
2675
|
+
if (requestParameters["$expand"] != null) {
|
|
2676
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2677
|
+
}
|
|
2678
|
+
if (requestParameters["$filter"] != null) {
|
|
2679
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2680
|
+
}
|
|
2681
|
+
if (requestParameters["$orderby"] != null) {
|
|
2682
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2683
|
+
}
|
|
2684
|
+
if (requestParameters["$top"] != null) {
|
|
2685
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2686
|
+
}
|
|
2687
|
+
if (requestParameters["$skip"] != null) {
|
|
2688
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2689
|
+
}
|
|
2690
|
+
if (requestParameters["$count"] != null) {
|
|
2691
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2692
|
+
}
|
|
2693
|
+
const headerParameters = {};
|
|
2694
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2695
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2696
|
+
}
|
|
2697
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetByKey(identifier={identifier})`;
|
|
2698
|
+
urlPath = urlPath.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters["identifier"])));
|
|
2699
|
+
const response = await this.request({
|
|
2700
|
+
path: urlPath,
|
|
2701
|
+
method: "GET",
|
|
2702
|
+
headers: headerParameters,
|
|
2703
|
+
query: queryParameters
|
|
2704
|
+
}, initOverrides);
|
|
2705
|
+
return new JSONApiResponse(response, (jsonValue) => FolderDtoFromJSON(jsonValue));
|
|
2706
|
+
}
|
|
2707
|
+
async foldersGetByKeyByIdentifier(requestParameters, initOverrides) {
|
|
2708
|
+
const response = await this.foldersGetByKeyByIdentifierRaw(requestParameters, initOverrides);
|
|
2709
|
+
return await response.value();
|
|
2710
|
+
}
|
|
2711
|
+
async foldersGetMachinesForFolderByKeyRaw(requestParameters, initOverrides) {
|
|
2712
|
+
if (requestParameters["key"] == null) {
|
|
2713
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersGetMachinesForFolderByKey().');
|
|
2714
|
+
}
|
|
2715
|
+
const queryParameters = {};
|
|
2716
|
+
if (requestParameters["$select"] != null) {
|
|
2717
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2718
|
+
}
|
|
2719
|
+
if (requestParameters["$expand"] != null) {
|
|
2720
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2721
|
+
}
|
|
2722
|
+
if (requestParameters["$filter"] != null) {
|
|
2723
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2724
|
+
}
|
|
2725
|
+
if (requestParameters["$orderby"] != null) {
|
|
2726
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2727
|
+
}
|
|
2728
|
+
if (requestParameters["$top"] != null) {
|
|
2729
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2730
|
+
}
|
|
2731
|
+
if (requestParameters["$skip"] != null) {
|
|
2732
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2733
|
+
}
|
|
2734
|
+
if (requestParameters["$count"] != null) {
|
|
2735
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2736
|
+
}
|
|
2737
|
+
const headerParameters = {};
|
|
2738
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2739
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2740
|
+
}
|
|
2741
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetMachinesForFolder(key={key})`;
|
|
2742
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2743
|
+
const response = await this.request({
|
|
2744
|
+
path: urlPath,
|
|
2745
|
+
method: "GET",
|
|
2746
|
+
headers: headerParameters,
|
|
2747
|
+
query: queryParameters
|
|
2748
|
+
}, initOverrides);
|
|
2749
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfMachineFolderDtoFromJSON(jsonValue));
|
|
2750
|
+
}
|
|
2751
|
+
async foldersGetMachinesForFolderByKey(requestParameters, initOverrides) {
|
|
2752
|
+
const response = await this.foldersGetMachinesForFolderByKeyRaw(requestParameters, initOverrides);
|
|
2753
|
+
return await response.value();
|
|
2754
|
+
}
|
|
2755
|
+
async foldersGetUsersForFolderByKeyAndIncludeinheritedRaw(requestParameters, initOverrides) {
|
|
2756
|
+
if (requestParameters["key"] == null) {
|
|
2757
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersGetUsersForFolderByKeyAndIncludeinherited().');
|
|
2758
|
+
}
|
|
2759
|
+
if (requestParameters["includeInherited"] == null) {
|
|
2760
|
+
throw new RequiredError("includeInherited", 'Required parameter "includeInherited" was null or undefined when calling foldersGetUsersForFolderByKeyAndIncludeinherited().');
|
|
2761
|
+
}
|
|
2762
|
+
const queryParameters = {};
|
|
2763
|
+
if (requestParameters["includeAlertsEnabled"] != null) {
|
|
2764
|
+
queryParameters["includeAlertsEnabled"] = requestParameters["includeAlertsEnabled"];
|
|
2765
|
+
}
|
|
2766
|
+
if (requestParameters["$select"] != null) {
|
|
2767
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2768
|
+
}
|
|
2769
|
+
if (requestParameters["$expand"] != null) {
|
|
2770
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2771
|
+
}
|
|
2772
|
+
if (requestParameters["$filter"] != null) {
|
|
2773
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2774
|
+
}
|
|
2775
|
+
if (requestParameters["$orderby"] != null) {
|
|
2776
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2777
|
+
}
|
|
2778
|
+
if (requestParameters["$top"] != null) {
|
|
2779
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2780
|
+
}
|
|
2781
|
+
if (requestParameters["$skip"] != null) {
|
|
2782
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2783
|
+
}
|
|
2784
|
+
if (requestParameters["$count"] != null) {
|
|
2785
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2786
|
+
}
|
|
2787
|
+
const headerParameters = {};
|
|
2788
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2789
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2790
|
+
}
|
|
2791
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetUsersForFolder(key={key},includeInherited={includeInherited})`;
|
|
2792
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2793
|
+
urlPath = urlPath.replace(`{${"includeInherited"}}`, encodeURIComponent(String(requestParameters["includeInherited"])));
|
|
2794
|
+
const response = await this.request({
|
|
2795
|
+
path: urlPath,
|
|
2796
|
+
method: "GET",
|
|
2797
|
+
headers: headerParameters,
|
|
2798
|
+
query: queryParameters
|
|
2799
|
+
}, initOverrides);
|
|
2800
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfUserRolesDtoFromJSON(jsonValue));
|
|
2801
|
+
}
|
|
2802
|
+
async foldersGetUsersForFolderByKeyAndIncludeinherited(requestParameters, initOverrides) {
|
|
2803
|
+
const response = await this.foldersGetUsersForFolderByKeyAndIncludeinheritedRaw(requestParameters, initOverrides);
|
|
2804
|
+
return await response.value();
|
|
2805
|
+
}
|
|
2806
|
+
async foldersGetUsersToAssignByFolderidRaw(requestParameters, initOverrides) {
|
|
2807
|
+
if (requestParameters["folderId"] == null) {
|
|
2808
|
+
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling foldersGetUsersToAssignByFolderid().');
|
|
2809
|
+
}
|
|
2810
|
+
const queryParameters = {};
|
|
2811
|
+
if (requestParameters["$select"] != null) {
|
|
2812
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2813
|
+
}
|
|
2814
|
+
if (requestParameters["$expand"] != null) {
|
|
2815
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2816
|
+
}
|
|
2817
|
+
if (requestParameters["$filter"] != null) {
|
|
2818
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2819
|
+
}
|
|
2820
|
+
if (requestParameters["$orderby"] != null) {
|
|
2821
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2822
|
+
}
|
|
2823
|
+
if (requestParameters["$top"] != null) {
|
|
2824
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2825
|
+
}
|
|
2826
|
+
if (requestParameters["$skip"] != null) {
|
|
2827
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
2828
|
+
}
|
|
2829
|
+
if (requestParameters["$count"] != null) {
|
|
2830
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
2831
|
+
}
|
|
2832
|
+
const headerParameters = {};
|
|
2833
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2834
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2835
|
+
}
|
|
2836
|
+
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetUsersToAssign(folderId={folderId})`;
|
|
2837
|
+
urlPath = urlPath.replace(`{${"folderId"}}`, encodeURIComponent(String(requestParameters["folderId"])));
|
|
2838
|
+
const response = await this.request({
|
|
2839
|
+
path: urlPath,
|
|
2840
|
+
method: "GET",
|
|
2841
|
+
headers: headerParameters,
|
|
2842
|
+
query: queryParameters
|
|
2843
|
+
}, initOverrides);
|
|
2844
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfSearchUserDtoFromJSON(jsonValue));
|
|
2845
|
+
}
|
|
2846
|
+
async foldersGetUsersToAssignByFolderid(requestParameters, initOverrides) {
|
|
2847
|
+
const response = await this.foldersGetUsersToAssignByFolderidRaw(requestParameters, initOverrides);
|
|
2848
|
+
return await response.value();
|
|
2849
|
+
}
|
|
2850
|
+
async foldersMoveFolderByFolderidRaw(requestParameters, initOverrides) {
|
|
2851
|
+
if (requestParameters["folderId"] == null) {
|
|
2852
|
+
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling foldersMoveFolderByFolderid().');
|
|
2853
|
+
}
|
|
2854
|
+
const queryParameters = {};
|
|
2855
|
+
if (requestParameters["targetParentId"] != null) {
|
|
2856
|
+
queryParameters["targetParentId"] = requestParameters["targetParentId"];
|
|
2857
|
+
}
|
|
2858
|
+
const headerParameters = {};
|
|
2859
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2860
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2861
|
+
}
|
|
2862
|
+
let urlPath = `/odata/Folders({folderId})/UiPath.Server.Configuration.OData.MoveFolder`;
|
|
2863
|
+
urlPath = urlPath.replace(`{${"folderId"}}`, encodeURIComponent(String(requestParameters["folderId"])));
|
|
2864
|
+
const response = await this.request({
|
|
2865
|
+
path: urlPath,
|
|
2866
|
+
method: "PUT",
|
|
2867
|
+
headers: headerParameters,
|
|
2868
|
+
query: queryParameters
|
|
2869
|
+
}, initOverrides);
|
|
2870
|
+
return new VoidApiResponse(response);
|
|
2871
|
+
}
|
|
2872
|
+
async foldersMoveFolderByFolderid(requestParameters, initOverrides) {
|
|
2873
|
+
await this.foldersMoveFolderByFolderidRaw(requestParameters, initOverrides);
|
|
2874
|
+
}
|
|
2875
|
+
async foldersPatchNameDescriptionRaw(requestParameters, initOverrides) {
|
|
2876
|
+
const queryParameters = {};
|
|
2877
|
+
if (requestParameters["key"] != null) {
|
|
2878
|
+
queryParameters["key"] = requestParameters["key"];
|
|
2879
|
+
}
|
|
2880
|
+
const headerParameters = {};
|
|
2881
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2882
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2883
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2884
|
+
}
|
|
2885
|
+
let urlPath = `/api/Folders/PatchNameDescription`;
|
|
2886
|
+
const response = await this.request({
|
|
2887
|
+
path: urlPath,
|
|
2888
|
+
method: "PATCH",
|
|
2889
|
+
headers: headerParameters,
|
|
2890
|
+
query: queryParameters,
|
|
2891
|
+
body: FolderUpdateNameDescriptionRequestToJSON(requestParameters["body"])
|
|
2892
|
+
}, initOverrides);
|
|
2893
|
+
return new VoidApiResponse(response);
|
|
2894
|
+
}
|
|
2895
|
+
async foldersPatchNameDescription(requestParameters = {}, initOverrides) {
|
|
2896
|
+
await this.foldersPatchNameDescriptionRaw(requestParameters, initOverrides);
|
|
2897
|
+
}
|
|
2898
|
+
async foldersPostRaw(requestParameters, initOverrides) {
|
|
2899
|
+
const queryParameters = {};
|
|
2900
|
+
const headerParameters = {};
|
|
2901
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2902
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2903
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2904
|
+
}
|
|
2905
|
+
let urlPath = `/odata/Folders`;
|
|
2906
|
+
const response = await this.request({
|
|
2907
|
+
path: urlPath,
|
|
2908
|
+
method: "POST",
|
|
2909
|
+
headers: headerParameters,
|
|
2910
|
+
query: queryParameters,
|
|
2911
|
+
body: FolderDtoToJSON(requestParameters["body"])
|
|
2912
|
+
}, initOverrides);
|
|
2913
|
+
return new JSONApiResponse(response, (jsonValue) => FolderDtoFromJSON(jsonValue));
|
|
2914
|
+
}
|
|
2915
|
+
async foldersPost(requestParameters = {}, initOverrides) {
|
|
2916
|
+
const response = await this.foldersPostRaw(requestParameters, initOverrides);
|
|
2917
|
+
return await response.value();
|
|
2918
|
+
}
|
|
2919
|
+
async foldersRemoveMachinesFromFolderByIdRaw(requestParameters, initOverrides) {
|
|
2920
|
+
if (requestParameters["key"] == null) {
|
|
2921
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersRemoveMachinesFromFolderById().');
|
|
2922
|
+
}
|
|
2923
|
+
const queryParameters = {};
|
|
2924
|
+
const headerParameters = {};
|
|
2925
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2926
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2927
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2928
|
+
}
|
|
2929
|
+
let urlPath = `/odata/Folders({key})/UiPath.Server.Configuration.OData.RemoveMachinesFromFolder`;
|
|
2930
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2931
|
+
const response = await this.request({
|
|
2932
|
+
path: urlPath,
|
|
2933
|
+
method: "POST",
|
|
2934
|
+
headers: headerParameters,
|
|
2935
|
+
query: queryParameters,
|
|
2936
|
+
body: RemoveMachinesFromFolderRequestToJSON(requestParameters["body"])
|
|
2937
|
+
}, initOverrides);
|
|
2938
|
+
return new VoidApiResponse(response);
|
|
2939
|
+
}
|
|
2940
|
+
async foldersRemoveMachinesFromFolderById(requestParameters, initOverrides) {
|
|
2941
|
+
await this.foldersRemoveMachinesFromFolderByIdRaw(requestParameters, initOverrides);
|
|
2942
|
+
}
|
|
2943
|
+
async foldersRemoveUserFromFolderByIdRaw(requestParameters, initOverrides) {
|
|
2944
|
+
if (requestParameters["key"] == null) {
|
|
2945
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersRemoveUserFromFolderById().');
|
|
2946
|
+
}
|
|
2947
|
+
const queryParameters = {};
|
|
2948
|
+
const headerParameters = {};
|
|
2949
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
2950
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2951
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
2952
|
+
}
|
|
2953
|
+
let urlPath = `/odata/Folders({key})/UiPath.Server.Configuration.OData.RemoveUserFromFolder`;
|
|
2954
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
2955
|
+
const response = await this.request({
|
|
2956
|
+
path: urlPath,
|
|
2957
|
+
method: "POST",
|
|
2958
|
+
headers: headerParameters,
|
|
2959
|
+
query: queryParameters,
|
|
2960
|
+
body: RemoveUserFromFolderRequestToJSON(requestParameters["body"])
|
|
2961
|
+
}, initOverrides);
|
|
2962
|
+
return new VoidApiResponse(response);
|
|
2963
|
+
}
|
|
2964
|
+
async foldersRemoveUserFromFolderById(requestParameters, initOverrides) {
|
|
2965
|
+
await this.foldersRemoveUserFromFolderByIdRaw(requestParameters, initOverrides);
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
// ../orchestrator-sdk/generated/src/apis/PersonalWorkspacesApi.ts
|
|
2970
|
+
class PersonalWorkspacesApi extends BaseAPI {
|
|
2971
|
+
async personalWorkspacesGetRaw(requestParameters, initOverrides) {
|
|
2972
|
+
const queryParameters = {};
|
|
2973
|
+
if (requestParameters["$select"] != null) {
|
|
2974
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
2975
|
+
}
|
|
2976
|
+
if (requestParameters["$expand"] != null) {
|
|
2977
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
2978
|
+
}
|
|
2979
|
+
if (requestParameters["$filter"] != null) {
|
|
2980
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
2981
|
+
}
|
|
2982
|
+
if (requestParameters["$orderby"] != null) {
|
|
2983
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
2984
|
+
}
|
|
2985
|
+
if (requestParameters["$top"] != null) {
|
|
2986
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
2987
|
+
}
|
|
2988
|
+
if (requestParameters["$skip"] != null) {
|
|
1252
2989
|
queryParameters["$skip"] = requestParameters["$skip"];
|
|
1253
2990
|
}
|
|
1254
2991
|
if (requestParameters["$count"] != null) {
|
|
@@ -1258,120 +2995,279 @@ class FoldersApi extends BaseAPI {
|
|
|
1258
2995
|
if (this.configuration && this.configuration.accessToken) {
|
|
1259
2996
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1260
2997
|
}
|
|
1261
|
-
let urlPath = `/odata/
|
|
2998
|
+
let urlPath = `/odata/PersonalWorkspaces`;
|
|
1262
2999
|
const response = await this.request({
|
|
1263
3000
|
path: urlPath,
|
|
1264
3001
|
method: "GET",
|
|
1265
3002
|
headers: headerParameters,
|
|
1266
3003
|
query: queryParameters
|
|
1267
3004
|
}, initOverrides);
|
|
1268
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3005
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSON(jsonValue));
|
|
1269
3006
|
}
|
|
1270
|
-
async
|
|
1271
|
-
const response = await this.
|
|
3007
|
+
async personalWorkspacesGet(requestParameters = {}, initOverrides) {
|
|
3008
|
+
const response = await this.personalWorkspacesGetRaw(requestParameters, initOverrides);
|
|
1272
3009
|
return await response.value();
|
|
1273
3010
|
}
|
|
1274
|
-
async
|
|
3011
|
+
async personalWorkspacesGetPersonalWorkspaceRaw(requestParameters, initOverrides) {
|
|
1275
3012
|
const queryParameters = {};
|
|
1276
|
-
if (requestParameters["
|
|
1277
|
-
queryParameters["
|
|
3013
|
+
if (requestParameters["$select"] != null) {
|
|
3014
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
1278
3015
|
}
|
|
1279
|
-
if (requestParameters["
|
|
1280
|
-
queryParameters["
|
|
3016
|
+
if (requestParameters["$expand"] != null) {
|
|
3017
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
1281
3018
|
}
|
|
1282
3019
|
const headerParameters = {};
|
|
1283
3020
|
if (this.configuration && this.configuration.accessToken) {
|
|
1284
3021
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1285
3022
|
}
|
|
1286
|
-
let urlPath = `/
|
|
3023
|
+
let urlPath = `/odata/PersonalWorkspaces/UiPath.Server.Configuration.OData.GetPersonalWorkspace`;
|
|
1287
3024
|
const response = await this.request({
|
|
1288
3025
|
path: urlPath,
|
|
1289
3026
|
method: "GET",
|
|
1290
3027
|
headers: headerParameters,
|
|
1291
3028
|
query: queryParameters
|
|
1292
3029
|
}, initOverrides);
|
|
1293
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3030
|
+
return new JSONApiResponse(response, (jsonValue) => PersonalWorkspaceDtoFromJSON(jsonValue));
|
|
1294
3031
|
}
|
|
1295
|
-
async
|
|
1296
|
-
const response = await this.
|
|
3032
|
+
async personalWorkspacesGetPersonalWorkspace(requestParameters = {}, initOverrides) {
|
|
3033
|
+
const response = await this.personalWorkspacesGetPersonalWorkspaceRaw(requestParameters, initOverrides);
|
|
1297
3034
|
return await response.value();
|
|
1298
3035
|
}
|
|
1299
|
-
async
|
|
1300
|
-
if (requestParameters["
|
|
1301
|
-
throw new RequiredError("
|
|
3036
|
+
async personalWorkspacesStartExploringByIdRaw(requestParameters, initOverrides) {
|
|
3037
|
+
if (requestParameters["key"] == null) {
|
|
3038
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling personalWorkspacesStartExploringById().');
|
|
1302
3039
|
}
|
|
1303
|
-
|
|
1304
|
-
|
|
3040
|
+
const queryParameters = {};
|
|
3041
|
+
const headerParameters = {};
|
|
3042
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3043
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1305
3044
|
}
|
|
1306
|
-
|
|
1307
|
-
|
|
3045
|
+
let urlPath = `/odata/PersonalWorkspaces({key})/UiPath.Server.Configuration.OData.StartExploring`;
|
|
3046
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3047
|
+
const response = await this.request({
|
|
3048
|
+
path: urlPath,
|
|
3049
|
+
method: "POST",
|
|
3050
|
+
headers: headerParameters,
|
|
3051
|
+
query: queryParameters
|
|
3052
|
+
}, initOverrides);
|
|
3053
|
+
return new VoidApiResponse(response);
|
|
3054
|
+
}
|
|
3055
|
+
async personalWorkspacesStartExploringById(requestParameters, initOverrides) {
|
|
3056
|
+
await this.personalWorkspacesStartExploringByIdRaw(requestParameters, initOverrides);
|
|
3057
|
+
}
|
|
3058
|
+
async personalWorkspacesStopExploringByIdRaw(requestParameters, initOverrides) {
|
|
3059
|
+
if (requestParameters["key"] == null) {
|
|
3060
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling personalWorkspacesStopExploringById().');
|
|
1308
3061
|
}
|
|
1309
3062
|
const queryParameters = {};
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
if (requestParameters["searchText"] != null) {
|
|
1314
|
-
queryParameters["searchText"] = requestParameters["searchText"];
|
|
3063
|
+
const headerParameters = {};
|
|
3064
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3065
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1315
3066
|
}
|
|
1316
|
-
|
|
1317
|
-
|
|
3067
|
+
let urlPath = `/odata/PersonalWorkspaces({key})/UiPath.Server.Configuration.OData.StopExploring`;
|
|
3068
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3069
|
+
const response = await this.request({
|
|
3070
|
+
path: urlPath,
|
|
3071
|
+
method: "POST",
|
|
3072
|
+
headers: headerParameters,
|
|
3073
|
+
query: queryParameters
|
|
3074
|
+
}, initOverrides);
|
|
3075
|
+
return new VoidApiResponse(response);
|
|
3076
|
+
}
|
|
3077
|
+
async personalWorkspacesStopExploringById(requestParameters, initOverrides) {
|
|
3078
|
+
await this.personalWorkspacesStopExploringByIdRaw(requestParameters, initOverrides);
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
|
|
3082
|
+
// ../orchestrator-sdk/src/folder-resolver.ts
|
|
3083
|
+
function folderNotFound(input) {
|
|
3084
|
+
return Object.assign(new Error(`Folder not found: '${input}'.`), {
|
|
3085
|
+
errorCode: "not_found",
|
|
3086
|
+
retry: "RetryWillNotFix"
|
|
3087
|
+
});
|
|
3088
|
+
}
|
|
3089
|
+
var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
3090
|
+
async function resolveFolder(input, options) {
|
|
3091
|
+
if (!input?.folderPath && !input?.folderKey) {
|
|
3092
|
+
return;
|
|
3093
|
+
}
|
|
3094
|
+
const config = await createOrchestratorConfig(options);
|
|
3095
|
+
const signal = options?.signal;
|
|
3096
|
+
const foldersApi = abortable(new FoldersApi(config), signal);
|
|
3097
|
+
if (input.folderKey) {
|
|
3098
|
+
if (!UUID_REGEX.test(input.folderKey)) {
|
|
3099
|
+
throw new Error(`Invalid folder key: '${input.folderKey}'. Expected a UUID (e.g. '12345678-1234-1234-1234-123456789abc').`);
|
|
1318
3100
|
}
|
|
1319
|
-
|
|
1320
|
-
|
|
3101
|
+
return resolveByKey(foldersApi, input.folderKey);
|
|
3102
|
+
}
|
|
3103
|
+
return resolveByPath(config, foldersApi, input.folderPath, signal);
|
|
3104
|
+
}
|
|
3105
|
+
function abortable(api, signal) {
|
|
3106
|
+
return signal ? api.withPreMiddleware(async ({ url, init }) => ({
|
|
3107
|
+
url,
|
|
3108
|
+
init: { ...init, signal }
|
|
3109
|
+
})) : api;
|
|
3110
|
+
}
|
|
3111
|
+
async function resolveByKey(foldersApi, folderKey) {
|
|
3112
|
+
const folder = await foldersApi.foldersGetByKeyByIdentifier({
|
|
3113
|
+
identifier: folderKey
|
|
3114
|
+
});
|
|
3115
|
+
if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
|
|
3116
|
+
throw folderNotFound(folderKey);
|
|
3117
|
+
}
|
|
3118
|
+
return {
|
|
3119
|
+
id: folder.id,
|
|
3120
|
+
key: folder.key,
|
|
3121
|
+
path: folder.fullyQualifiedName,
|
|
3122
|
+
displayName: folder.displayName,
|
|
3123
|
+
feedType: folder.feedType
|
|
3124
|
+
};
|
|
3125
|
+
}
|
|
3126
|
+
async function resolveByPath(config, foldersApi, folderPath, signal) {
|
|
3127
|
+
const response = await foldersApi.foldersGet({
|
|
3128
|
+
$filter: `FullyQualifiedName eq '${folderPath.replace(/'/g, "''")}'`,
|
|
3129
|
+
$top: 1
|
|
3130
|
+
});
|
|
3131
|
+
const folder = response.value?.[0] ?? await resolveInPersonalWorkspace(config, foldersApi, folderPath, signal);
|
|
3132
|
+
if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
|
|
3133
|
+
throw folderNotFound(folderPath);
|
|
3134
|
+
}
|
|
3135
|
+
return {
|
|
3136
|
+
id: folder.id,
|
|
3137
|
+
key: folder.key,
|
|
3138
|
+
path: folder.fullyQualifiedName,
|
|
3139
|
+
displayName: folder.displayName,
|
|
3140
|
+
feedType: folder.feedType
|
|
3141
|
+
};
|
|
3142
|
+
}
|
|
3143
|
+
var CURRENT_USER_FOLDER_PAGE_SIZE = 1000;
|
|
3144
|
+
var CURRENT_USER_FOLDER_PAGE_LIMIT = 50;
|
|
3145
|
+
async function resolveInPersonalWorkspace(config, foldersApi, folderPath, signal) {
|
|
3146
|
+
const workspace = await lookupOrMiss("GetPersonalWorkspace", folderPath, () => abortable(new PersonalWorkspacesApi(config), signal).personalWorkspacesGetPersonalWorkspace());
|
|
3147
|
+
if (!workspace?.key || !workspace.name) {
|
|
3148
|
+
return;
|
|
3149
|
+
}
|
|
3150
|
+
const wanted = folderPath.toLowerCase();
|
|
3151
|
+
const root = workspace.name.toLowerCase();
|
|
3152
|
+
let key;
|
|
3153
|
+
if (wanted === root) {
|
|
3154
|
+
key = workspace.key;
|
|
3155
|
+
} else if (wanted.startsWith(`${root}/`)) {
|
|
3156
|
+
key = await findKeyInCurrentUserFolders(foldersApi, folderPath);
|
|
3157
|
+
}
|
|
3158
|
+
if (!key) {
|
|
3159
|
+
return;
|
|
3160
|
+
}
|
|
3161
|
+
const folder = await foldersApi.foldersGetByKeyByIdentifier({
|
|
3162
|
+
identifier: key
|
|
3163
|
+
});
|
|
3164
|
+
return folder?.fullyQualifiedName?.toLowerCase() === wanted ? folder : undefined;
|
|
3165
|
+
}
|
|
3166
|
+
async function findKeyInCurrentUserFolders(foldersApi, folderPath) {
|
|
3167
|
+
const wanted = folderPath.toLowerCase();
|
|
3168
|
+
let skip = 0;
|
|
3169
|
+
for (let page = 0;page < CURRENT_USER_FOLDER_PAGE_LIMIT; page++) {
|
|
3170
|
+
const result = await lookupOrMiss("GetAllForCurrentUser", folderPath, () => foldersApi.foldersGetAllForCurrentUser({
|
|
3171
|
+
take: CURRENT_USER_FOLDER_PAGE_SIZE,
|
|
3172
|
+
skip
|
|
3173
|
+
}));
|
|
3174
|
+
const rows = result?.pageItems ?? [];
|
|
3175
|
+
const match = rows.find((row) => row.fullyQualifiedName?.toLowerCase() === wanted);
|
|
3176
|
+
if (match) {
|
|
3177
|
+
return match.key;
|
|
1321
3178
|
}
|
|
1322
|
-
|
|
1323
|
-
if (
|
|
1324
|
-
|
|
3179
|
+
skip += rows.length;
|
|
3180
|
+
if (rows.length === 0 || typeof result?.count === "number" && skip >= result.count) {
|
|
3181
|
+
return;
|
|
1325
3182
|
}
|
|
1326
|
-
let urlPath = `/odata/Folders/UiPath.Server.Configuration.OData.GetAllRolesForUser(username='{username}',skip={skip},take={take})`;
|
|
1327
|
-
urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters["username"])));
|
|
1328
|
-
urlPath = urlPath.replace(`{${"skip"}}`, encodeURIComponent(String(requestParameters["skip"])));
|
|
1329
|
-
urlPath = urlPath.replace(`{${"take"}}`, encodeURIComponent(String(requestParameters["take"])));
|
|
1330
|
-
const response = await this.request({
|
|
1331
|
-
path: urlPath,
|
|
1332
|
-
method: "GET",
|
|
1333
|
-
headers: headerParameters,
|
|
1334
|
-
query: queryParameters
|
|
1335
|
-
}, initOverrides);
|
|
1336
|
-
return new JSONApiResponse(response, (jsonValue) => UserRoleAssignmentsDtoFromJSON(jsonValue));
|
|
1337
3183
|
}
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
3184
|
+
logger.debug(`GetAllForCurrentUser: stopped after ${CURRENT_USER_FOLDER_PAGE_LIMIT} pages without finding '${folderPath}'.`);
|
|
3185
|
+
return;
|
|
3186
|
+
}
|
|
3187
|
+
async function lookupOrMiss(endpoint, folderPath, call) {
|
|
3188
|
+
const [error, value] = await catchError(call());
|
|
3189
|
+
if (!error) {
|
|
3190
|
+
return value;
|
|
1341
3191
|
}
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
3192
|
+
if (!isLookupMiss(error)) {
|
|
3193
|
+
throw error;
|
|
3194
|
+
}
|
|
3195
|
+
logger.debug(`${endpoint} lookup for '${folderPath}' failed: ${await extractErrorMessage(error)}`);
|
|
3196
|
+
return;
|
|
3197
|
+
}
|
|
3198
|
+
function isLookupMiss(error) {
|
|
3199
|
+
const failure = error;
|
|
3200
|
+
const status = failure?.response?.status ?? failure?.status;
|
|
3201
|
+
return typeof status === "number" && status >= 400 && status < 500 && status !== 408 && status !== 429;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
// ../orchestrator-sdk/src/folder-runtimes.ts
|
|
3205
|
+
function toProcessType(value) {
|
|
3206
|
+
if (!value) {
|
|
3207
|
+
return;
|
|
3208
|
+
}
|
|
3209
|
+
const wanted = value.toLowerCase();
|
|
3210
|
+
return Object.values(MachinesGetRuntimesForFolderByFolderidProcessTypeEnum).find((type) => type.toLowerCase() === wanted);
|
|
3211
|
+
}
|
|
3212
|
+
var FOLDER_RUNTIMES = {
|
|
3213
|
+
[MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.Process]: [
|
|
3214
|
+
MachineRuntimeDtoTypeEnum.Serverless,
|
|
3215
|
+
MachineRuntimeDtoTypeEnum.AutomationCloud,
|
|
3216
|
+
MachineRuntimeDtoTypeEnum.AutomationCloudTestAutomation,
|
|
3217
|
+
MachineRuntimeDtoTypeEnum.AppTest,
|
|
3218
|
+
MachineRuntimeDtoTypeEnum.PerformanceTest,
|
|
3219
|
+
MachineRuntimeDtoTypeEnum.Unattended,
|
|
3220
|
+
MachineRuntimeDtoTypeEnum.NonProduction,
|
|
3221
|
+
MachineRuntimeDtoTypeEnum.TestAutomation
|
|
3222
|
+
],
|
|
3223
|
+
[MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.TestAutomationProcess]: [
|
|
3224
|
+
MachineRuntimeDtoTypeEnum.Serverless,
|
|
3225
|
+
MachineRuntimeDtoTypeEnum.ServerlessTestAutomation,
|
|
3226
|
+
MachineRuntimeDtoTypeEnum.AutomationCloudTestAutomation,
|
|
3227
|
+
MachineRuntimeDtoTypeEnum.AutomationCloud,
|
|
3228
|
+
MachineRuntimeDtoTypeEnum.AppTest,
|
|
3229
|
+
MachineRuntimeDtoTypeEnum.TestAutomation,
|
|
3230
|
+
MachineRuntimeDtoTypeEnum.Unattended
|
|
3231
|
+
],
|
|
3232
|
+
[MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.McpServer]: [MachineRuntimeDtoTypeEnum.Serverless]
|
|
3233
|
+
};
|
|
3234
|
+
function folderRuntimeTypesFor(processType, options = {}) {
|
|
3235
|
+
const types = FOLDER_RUNTIMES[processType];
|
|
3236
|
+
if (types && options.personalWorkspace && processType === MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.Process) {
|
|
3237
|
+
return [...types, MachineRuntimeDtoTypeEnum.Development];
|
|
3238
|
+
}
|
|
3239
|
+
return types;
|
|
3240
|
+
}
|
|
3241
|
+
function usableFolderRuntimes(runtimes, types) {
|
|
3242
|
+
return runtimes.filter((row) => row.type !== undefined && types.includes(row.type) && (row.total ?? 0) > 0);
|
|
3243
|
+
}
|
|
3244
|
+
async function readFolderRuntimesAsync(api, folderId, processType, options = {}) {
|
|
3245
|
+
const result = await api.machinesGetRuntimesForFolderByFolderid({ folderId, processType }, options.signal ? { signal: options.signal } : undefined);
|
|
3246
|
+
return result.value ?? [];
|
|
3247
|
+
}
|
|
3248
|
+
// ../orchestrator-sdk/generated/src/apis/SessionsApi.ts
|
|
3249
|
+
class SessionsApi extends BaseAPI {
|
|
3250
|
+
async sessionsDeleteInactiveUnattendedSessionsRaw(requestParameters, initOverrides) {
|
|
1346
3251
|
const queryParameters = {};
|
|
1347
|
-
if (requestParameters["$select"] != null) {
|
|
1348
|
-
queryParameters["$select"] = requestParameters["$select"];
|
|
1349
|
-
}
|
|
1350
|
-
if (requestParameters["$expand"] != null) {
|
|
1351
|
-
queryParameters["$expand"] = requestParameters["$expand"];
|
|
1352
|
-
}
|
|
1353
3252
|
const headerParameters = {};
|
|
3253
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
1354
3254
|
if (this.configuration && this.configuration.accessToken) {
|
|
1355
3255
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1356
3256
|
}
|
|
1357
|
-
let urlPath = `/odata/
|
|
1358
|
-
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3257
|
+
let urlPath = `/odata/Sessions/UiPath.Server.Configuration.OData.DeleteInactiveUnattendedSessions`;
|
|
1359
3258
|
const response = await this.request({
|
|
1360
3259
|
path: urlPath,
|
|
1361
|
-
method: "
|
|
3260
|
+
method: "POST",
|
|
1362
3261
|
headers: headerParameters,
|
|
1363
|
-
query: queryParameters
|
|
3262
|
+
query: queryParameters,
|
|
3263
|
+
body: DeleteInactiveSessionsParametersToJSON(requestParameters["body"])
|
|
1364
3264
|
}, initOverrides);
|
|
1365
|
-
return new
|
|
3265
|
+
return new VoidApiResponse(response);
|
|
1366
3266
|
}
|
|
1367
|
-
async
|
|
1368
|
-
|
|
1369
|
-
return await response.value();
|
|
3267
|
+
async sessionsDeleteInactiveUnattendedSessions(requestParameters = {}, initOverrides) {
|
|
3268
|
+
await this.sessionsDeleteInactiveUnattendedSessionsRaw(requestParameters, initOverrides);
|
|
1370
3269
|
}
|
|
1371
|
-
async
|
|
1372
|
-
if (requestParameters["identifier"] == null) {
|
|
1373
|
-
throw new RequiredError("identifier", 'Required parameter "identifier" was null or undefined when calling foldersGetByKeyByIdentifier().');
|
|
1374
|
-
}
|
|
3270
|
+
async sessionsGetRaw(requestParameters, initOverrides) {
|
|
1375
3271
|
const queryParameters = {};
|
|
1376
3272
|
if (requestParameters["$select"] != null) {
|
|
1377
3273
|
queryParameters["$select"] = requestParameters["$select"];
|
|
@@ -1395,27 +3291,26 @@ class FoldersApi extends BaseAPI {
|
|
|
1395
3291
|
queryParameters["$count"] = requestParameters["$count"];
|
|
1396
3292
|
}
|
|
1397
3293
|
const headerParameters = {};
|
|
3294
|
+
if (requestParameters["xUIPATHOrganizationUnitId"] != null) {
|
|
3295
|
+
headerParameters["X-UIPATH-OrganizationUnitId"] = String(requestParameters["xUIPATHOrganizationUnitId"]);
|
|
3296
|
+
}
|
|
1398
3297
|
if (this.configuration && this.configuration.accessToken) {
|
|
1399
3298
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1400
3299
|
}
|
|
1401
|
-
let urlPath = `/odata/
|
|
1402
|
-
urlPath = urlPath.replace(`{${"identifier"}}`, encodeURIComponent(String(requestParameters["identifier"])));
|
|
3300
|
+
let urlPath = `/odata/Sessions`;
|
|
1403
3301
|
const response = await this.request({
|
|
1404
3302
|
path: urlPath,
|
|
1405
3303
|
method: "GET",
|
|
1406
3304
|
headers: headerParameters,
|
|
1407
3305
|
query: queryParameters
|
|
1408
3306
|
}, initOverrides);
|
|
1409
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3307
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfSessionDtoFromJSON(jsonValue));
|
|
1410
3308
|
}
|
|
1411
|
-
async
|
|
1412
|
-
const response = await this.
|
|
3309
|
+
async sessionsGet(requestParameters = {}, initOverrides) {
|
|
3310
|
+
const response = await this.sessionsGetRaw(requestParameters, initOverrides);
|
|
1413
3311
|
return await response.value();
|
|
1414
3312
|
}
|
|
1415
|
-
async
|
|
1416
|
-
if (requestParameters["key"] == null) {
|
|
1417
|
-
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersGetMachinesForFolderByKey().');
|
|
1418
|
-
}
|
|
3313
|
+
async sessionsGetGlobalSessionsRaw(requestParameters, initOverrides) {
|
|
1419
3314
|
const queryParameters = {};
|
|
1420
3315
|
if (requestParameters["$select"] != null) {
|
|
1421
3316
|
queryParameters["$select"] = requestParameters["$select"];
|
|
@@ -1442,30 +3337,23 @@ class FoldersApi extends BaseAPI {
|
|
|
1442
3337
|
if (this.configuration && this.configuration.accessToken) {
|
|
1443
3338
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1444
3339
|
}
|
|
1445
|
-
let urlPath = `/odata/
|
|
1446
|
-
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3340
|
+
let urlPath = `/odata/Sessions/UiPath.Server.Configuration.OData.GetGlobalSessions`;
|
|
1447
3341
|
const response = await this.request({
|
|
1448
3342
|
path: urlPath,
|
|
1449
3343
|
method: "GET",
|
|
1450
3344
|
headers: headerParameters,
|
|
1451
3345
|
query: queryParameters
|
|
1452
3346
|
}, initOverrides);
|
|
1453
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3347
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfSessionDtoFromJSON(jsonValue));
|
|
1454
3348
|
}
|
|
1455
|
-
async
|
|
1456
|
-
const response = await this.
|
|
3349
|
+
async sessionsGetGlobalSessions(requestParameters = {}, initOverrides) {
|
|
3350
|
+
const response = await this.sessionsGetGlobalSessionsRaw(requestParameters, initOverrides);
|
|
1457
3351
|
return await response.value();
|
|
1458
3352
|
}
|
|
1459
|
-
async
|
|
1460
|
-
if (requestParameters["key"] == null) {
|
|
1461
|
-
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersGetUsersForFolderByKeyAndIncludeinherited().');
|
|
1462
|
-
}
|
|
1463
|
-
if (requestParameters["includeInherited"] == null) {
|
|
1464
|
-
throw new RequiredError("includeInherited", 'Required parameter "includeInherited" was null or undefined when calling foldersGetUsersForFolderByKeyAndIncludeinherited().');
|
|
1465
|
-
}
|
|
3353
|
+
async sessionsGetMachineSessionRuntimesRaw(requestParameters, initOverrides) {
|
|
1466
3354
|
const queryParameters = {};
|
|
1467
|
-
if (requestParameters["
|
|
1468
|
-
queryParameters["
|
|
3355
|
+
if (requestParameters["runtimeType"] != null) {
|
|
3356
|
+
queryParameters["runtimeType"] = requestParameters["runtimeType"];
|
|
1469
3357
|
}
|
|
1470
3358
|
if (requestParameters["$select"] != null) {
|
|
1471
3359
|
queryParameters["$select"] = requestParameters["$select"];
|
|
@@ -1492,26 +3380,30 @@ class FoldersApi extends BaseAPI {
|
|
|
1492
3380
|
if (this.configuration && this.configuration.accessToken) {
|
|
1493
3381
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1494
3382
|
}
|
|
1495
|
-
let urlPath = `/odata/
|
|
1496
|
-
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
1497
|
-
urlPath = urlPath.replace(`{${"includeInherited"}}`, encodeURIComponent(String(requestParameters["includeInherited"])));
|
|
3383
|
+
let urlPath = `/odata/Sessions/UiPath.Server.Configuration.OData.GetMachineSessionRuntimes`;
|
|
1498
3384
|
const response = await this.request({
|
|
1499
3385
|
path: urlPath,
|
|
1500
3386
|
method: "GET",
|
|
1501
3387
|
headers: headerParameters,
|
|
1502
3388
|
query: queryParameters
|
|
1503
3389
|
}, initOverrides);
|
|
1504
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3390
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfMachineSessionRuntimeDtoFromJSON(jsonValue));
|
|
1505
3391
|
}
|
|
1506
|
-
async
|
|
1507
|
-
const response = await this.
|
|
3392
|
+
async sessionsGetMachineSessionRuntimes(requestParameters = {}, initOverrides) {
|
|
3393
|
+
const response = await this.sessionsGetMachineSessionRuntimesRaw(requestParameters, initOverrides);
|
|
1508
3394
|
return await response.value();
|
|
1509
3395
|
}
|
|
1510
|
-
async
|
|
3396
|
+
async sessionsGetMachineSessionRuntimesByFolderIdRaw(requestParameters, initOverrides) {
|
|
1511
3397
|
if (requestParameters["folderId"] == null) {
|
|
1512
|
-
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling
|
|
3398
|
+
throw new RequiredError("folderId", 'Required parameter "folderId" was null or undefined when calling sessionsGetMachineSessionRuntimesByFolderId().');
|
|
1513
3399
|
}
|
|
1514
3400
|
const queryParameters = {};
|
|
3401
|
+
if (requestParameters["robotId"] != null) {
|
|
3402
|
+
queryParameters["robotId"] = requestParameters["robotId"];
|
|
3403
|
+
}
|
|
3404
|
+
if (requestParameters["runtimeType"] != null) {
|
|
3405
|
+
queryParameters["runtimeType"] = requestParameters["runtimeType"];
|
|
3406
|
+
}
|
|
1515
3407
|
if (requestParameters["$select"] != null) {
|
|
1516
3408
|
queryParameters["$select"] = requestParameters["$select"];
|
|
1517
3409
|
}
|
|
@@ -1537,7 +3429,7 @@ class FoldersApi extends BaseAPI {
|
|
|
1537
3429
|
if (this.configuration && this.configuration.accessToken) {
|
|
1538
3430
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1539
3431
|
}
|
|
1540
|
-
let urlPath = `/odata/
|
|
3432
|
+
let urlPath = `/odata/Sessions/UiPath.Server.Configuration.OData.GetMachineSessionRuntimesByFolderId(folderId={folderId})`;
|
|
1541
3433
|
urlPath = urlPath.replace(`{${"folderId"}}`, encodeURIComponent(String(requestParameters["folderId"])));
|
|
1542
3434
|
const response = await this.request({
|
|
1543
3435
|
path: urlPath,
|
|
@@ -1545,134 +3437,57 @@ class FoldersApi extends BaseAPI {
|
|
|
1545
3437
|
headers: headerParameters,
|
|
1546
3438
|
query: queryParameters
|
|
1547
3439
|
}, initOverrides);
|
|
1548
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3440
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfMachineSessionRuntimeDtoFromJSON(jsonValue));
|
|
1549
3441
|
}
|
|
1550
|
-
async
|
|
1551
|
-
const response = await this.
|
|
3442
|
+
async sessionsGetMachineSessionRuntimesByFolderId(requestParameters, initOverrides) {
|
|
3443
|
+
const response = await this.sessionsGetMachineSessionRuntimesByFolderIdRaw(requestParameters, initOverrides);
|
|
1552
3444
|
return await response.value();
|
|
1553
3445
|
}
|
|
1554
|
-
async
|
|
1555
|
-
if (requestParameters["
|
|
1556
|
-
throw new RequiredError("
|
|
3446
|
+
async sessionsGetMachineSessionsByKeyRaw(requestParameters, initOverrides) {
|
|
3447
|
+
if (requestParameters["key"] == null) {
|
|
3448
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling sessionsGetMachineSessionsByKey().');
|
|
1557
3449
|
}
|
|
1558
3450
|
const queryParameters = {};
|
|
1559
|
-
if (requestParameters["
|
|
1560
|
-
queryParameters["
|
|
1561
|
-
}
|
|
1562
|
-
const headerParameters = {};
|
|
1563
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1564
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3451
|
+
if (requestParameters["$select"] != null) {
|
|
3452
|
+
queryParameters["$select"] = requestParameters["$select"];
|
|
1565
3453
|
}
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
const response = await this.request({
|
|
1569
|
-
path: urlPath,
|
|
1570
|
-
method: "PUT",
|
|
1571
|
-
headers: headerParameters,
|
|
1572
|
-
query: queryParameters
|
|
1573
|
-
}, initOverrides);
|
|
1574
|
-
return new VoidApiResponse(response);
|
|
1575
|
-
}
|
|
1576
|
-
async foldersMoveFolderByFolderid(requestParameters, initOverrides) {
|
|
1577
|
-
await this.foldersMoveFolderByFolderidRaw(requestParameters, initOverrides);
|
|
1578
|
-
}
|
|
1579
|
-
async foldersPatchNameDescriptionRaw(requestParameters, initOverrides) {
|
|
1580
|
-
const queryParameters = {};
|
|
1581
|
-
if (requestParameters["key"] != null) {
|
|
1582
|
-
queryParameters["key"] = requestParameters["key"];
|
|
3454
|
+
if (requestParameters["$expand"] != null) {
|
|
3455
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
1583
3456
|
}
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1587
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3457
|
+
if (requestParameters["$filter"] != null) {
|
|
3458
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
1588
3459
|
}
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
path: urlPath,
|
|
1592
|
-
method: "PATCH",
|
|
1593
|
-
headers: headerParameters,
|
|
1594
|
-
query: queryParameters,
|
|
1595
|
-
body: FolderUpdateNameDescriptionRequestToJSON(requestParameters["body"])
|
|
1596
|
-
}, initOverrides);
|
|
1597
|
-
return new VoidApiResponse(response);
|
|
1598
|
-
}
|
|
1599
|
-
async foldersPatchNameDescription(requestParameters = {}, initOverrides) {
|
|
1600
|
-
await this.foldersPatchNameDescriptionRaw(requestParameters, initOverrides);
|
|
1601
|
-
}
|
|
1602
|
-
async foldersPostRaw(requestParameters, initOverrides) {
|
|
1603
|
-
const queryParameters = {};
|
|
1604
|
-
const headerParameters = {};
|
|
1605
|
-
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
1606
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1607
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3460
|
+
if (requestParameters["$orderby"] != null) {
|
|
3461
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
1608
3462
|
}
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
path: urlPath,
|
|
1612
|
-
method: "POST",
|
|
1613
|
-
headers: headerParameters,
|
|
1614
|
-
query: queryParameters,
|
|
1615
|
-
body: FolderDtoToJSON(requestParameters["body"])
|
|
1616
|
-
}, initOverrides);
|
|
1617
|
-
return new JSONApiResponse(response, (jsonValue) => FolderDtoFromJSON(jsonValue));
|
|
1618
|
-
}
|
|
1619
|
-
async foldersPost(requestParameters = {}, initOverrides) {
|
|
1620
|
-
const response = await this.foldersPostRaw(requestParameters, initOverrides);
|
|
1621
|
-
return await response.value();
|
|
1622
|
-
}
|
|
1623
|
-
async foldersRemoveMachinesFromFolderByIdRaw(requestParameters, initOverrides) {
|
|
1624
|
-
if (requestParameters["key"] == null) {
|
|
1625
|
-
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersRemoveMachinesFromFolderById().');
|
|
3463
|
+
if (requestParameters["$top"] != null) {
|
|
3464
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
1626
3465
|
}
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
1630
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1631
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
3466
|
+
if (requestParameters["$skip"] != null) {
|
|
3467
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
1632
3468
|
}
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
const response = await this.request({
|
|
1636
|
-
path: urlPath,
|
|
1637
|
-
method: "POST",
|
|
1638
|
-
headers: headerParameters,
|
|
1639
|
-
query: queryParameters,
|
|
1640
|
-
body: RemoveMachinesFromFolderRequestToJSON(requestParameters["body"])
|
|
1641
|
-
}, initOverrides);
|
|
1642
|
-
return new VoidApiResponse(response);
|
|
1643
|
-
}
|
|
1644
|
-
async foldersRemoveMachinesFromFolderById(requestParameters, initOverrides) {
|
|
1645
|
-
await this.foldersRemoveMachinesFromFolderByIdRaw(requestParameters, initOverrides);
|
|
1646
|
-
}
|
|
1647
|
-
async foldersRemoveUserFromFolderByIdRaw(requestParameters, initOverrides) {
|
|
1648
|
-
if (requestParameters["key"] == null) {
|
|
1649
|
-
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling foldersRemoveUserFromFolderById().');
|
|
3469
|
+
if (requestParameters["$count"] != null) {
|
|
3470
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
1650
3471
|
}
|
|
1651
|
-
const queryParameters = {};
|
|
1652
3472
|
const headerParameters = {};
|
|
1653
|
-
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
1654
3473
|
if (this.configuration && this.configuration.accessToken) {
|
|
1655
3474
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1656
3475
|
}
|
|
1657
|
-
let urlPath = `/odata/
|
|
3476
|
+
let urlPath = `/odata/Sessions/UiPath.Server.Configuration.OData.GetMachineSessions(key={key})`;
|
|
1658
3477
|
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
1659
3478
|
const response = await this.request({
|
|
1660
3479
|
path: urlPath,
|
|
1661
|
-
method: "
|
|
3480
|
+
method: "GET",
|
|
1662
3481
|
headers: headerParameters,
|
|
1663
|
-
query: queryParameters
|
|
1664
|
-
body: RemoveUserFromFolderRequestToJSON(requestParameters["body"])
|
|
3482
|
+
query: queryParameters
|
|
1665
3483
|
}, initOverrides);
|
|
1666
|
-
return new
|
|
3484
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfMachineSessionDtoFromJSON(jsonValue));
|
|
1667
3485
|
}
|
|
1668
|
-
async
|
|
1669
|
-
await this.
|
|
3486
|
+
async sessionsGetMachineSessionsByKey(requestParameters, initOverrides) {
|
|
3487
|
+
const response = await this.sessionsGetMachineSessionsByKeyRaw(requestParameters, initOverrides);
|
|
3488
|
+
return await response.value();
|
|
1670
3489
|
}
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
// ../orchestrator-sdk/generated/src/apis/PersonalWorkspacesApi.ts
|
|
1674
|
-
class PersonalWorkspacesApi extends BaseAPI {
|
|
1675
|
-
async personalWorkspacesGetRaw(requestParameters, initOverrides) {
|
|
3490
|
+
async sessionsGetUserRobotsRaw(requestParameters, initOverrides) {
|
|
1676
3491
|
const queryParameters = {};
|
|
1677
3492
|
if (requestParameters["$select"] != null) {
|
|
1678
3493
|
queryParameters["$select"] = requestParameters["$select"];
|
|
@@ -1699,281 +3514,103 @@ class PersonalWorkspacesApi extends BaseAPI {
|
|
|
1699
3514
|
if (this.configuration && this.configuration.accessToken) {
|
|
1700
3515
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1701
3516
|
}
|
|
1702
|
-
let urlPath = `/odata/
|
|
3517
|
+
let urlPath = `/odata/Sessions/UiPath.Server.Configuration.OData.GetUserRobots`;
|
|
1703
3518
|
const response = await this.request({
|
|
1704
3519
|
path: urlPath,
|
|
1705
3520
|
method: "GET",
|
|
1706
3521
|
headers: headerParameters,
|
|
1707
3522
|
query: queryParameters
|
|
1708
3523
|
}, initOverrides);
|
|
1709
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3524
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfUserRobotsDtoFromJSON(jsonValue));
|
|
1710
3525
|
}
|
|
1711
|
-
async
|
|
1712
|
-
const response = await this.
|
|
3526
|
+
async sessionsGetUserRobots(requestParameters = {}, initOverrides) {
|
|
3527
|
+
const response = await this.sessionsGetUserRobotsRaw(requestParameters, initOverrides);
|
|
1713
3528
|
return await response.value();
|
|
1714
3529
|
}
|
|
1715
|
-
async
|
|
3530
|
+
async sessionsGetUsernamesRaw(requestParameters, initOverrides) {
|
|
1716
3531
|
const queryParameters = {};
|
|
1717
3532
|
if (requestParameters["$select"] != null) {
|
|
1718
3533
|
queryParameters["$select"] = requestParameters["$select"];
|
|
1719
3534
|
}
|
|
1720
|
-
if (requestParameters["$expand"] != null) {
|
|
1721
|
-
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3535
|
+
if (requestParameters["$expand"] != null) {
|
|
3536
|
+
queryParameters["$expand"] = requestParameters["$expand"];
|
|
3537
|
+
}
|
|
3538
|
+
if (requestParameters["$filter"] != null) {
|
|
3539
|
+
queryParameters["$filter"] = requestParameters["$filter"];
|
|
3540
|
+
}
|
|
3541
|
+
if (requestParameters["$orderby"] != null) {
|
|
3542
|
+
queryParameters["$orderby"] = requestParameters["$orderby"];
|
|
3543
|
+
}
|
|
3544
|
+
if (requestParameters["$top"] != null) {
|
|
3545
|
+
queryParameters["$top"] = requestParameters["$top"];
|
|
3546
|
+
}
|
|
3547
|
+
if (requestParameters["$skip"] != null) {
|
|
3548
|
+
queryParameters["$skip"] = requestParameters["$skip"];
|
|
3549
|
+
}
|
|
3550
|
+
if (requestParameters["$count"] != null) {
|
|
3551
|
+
queryParameters["$count"] = requestParameters["$count"];
|
|
1722
3552
|
}
|
|
1723
3553
|
const headerParameters = {};
|
|
1724
3554
|
if (this.configuration && this.configuration.accessToken) {
|
|
1725
3555
|
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1726
3556
|
}
|
|
1727
|
-
let urlPath = `/odata/
|
|
3557
|
+
let urlPath = `/odata/Sessions/UiPath.Server.Configuration.OData.GetUsernames`;
|
|
1728
3558
|
const response = await this.request({
|
|
1729
3559
|
path: urlPath,
|
|
1730
3560
|
method: "GET",
|
|
1731
3561
|
headers: headerParameters,
|
|
1732
3562
|
query: queryParameters
|
|
1733
3563
|
}, initOverrides);
|
|
1734
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
3564
|
+
return new JSONApiResponse(response, (jsonValue) => ODataValueOfIEnumerableOfStringFromJSON(jsonValue));
|
|
1735
3565
|
}
|
|
1736
|
-
async
|
|
1737
|
-
const response = await this.
|
|
3566
|
+
async sessionsGetUsernames(requestParameters = {}, initOverrides) {
|
|
3567
|
+
const response = await this.sessionsGetUsernamesRaw(requestParameters, initOverrides);
|
|
1738
3568
|
return await response.value();
|
|
1739
3569
|
}
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
return carrier;
|
|
1747
|
-
Object.defineProperty(carrier, SESSION_KIND_KEY, {
|
|
1748
|
-
value: {
|
|
1749
|
-
__brand: "SessionKind",
|
|
1750
|
-
type: kind.type,
|
|
1751
|
-
...kind.clientId ? { clientId: kind.clientId } : {},
|
|
1752
|
-
...kind.applicationSubtype ? { applicationSubtype: kind.applicationSubtype } : {}
|
|
1753
|
-
},
|
|
1754
|
-
enumerable: false,
|
|
1755
|
-
configurable: true
|
|
1756
|
-
});
|
|
1757
|
-
const clone = carrier.clone;
|
|
1758
|
-
if (typeof clone === "function") {
|
|
1759
|
-
Object.defineProperty(carrier, "clone", {
|
|
1760
|
-
value: function stampedClone(...args) {
|
|
1761
|
-
const copy = clone.apply(this, args);
|
|
1762
|
-
return typeof copy === "object" && copy !== null ? attachSessionKind(copy, kind) : copy;
|
|
1763
|
-
},
|
|
1764
|
-
enumerable: false,
|
|
1765
|
-
configurable: true,
|
|
1766
|
-
writable: true
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
return carrier;
|
|
1770
|
-
}
|
|
1771
|
-
// ../orchestrator-sdk/package.json
|
|
1772
|
-
var package_default = {
|
|
1773
|
-
name: "@uipath/orchestrator-sdk",
|
|
1774
|
-
author: "UiPath",
|
|
1775
|
-
license: "SEE LICENSE IN LICENSE.txt",
|
|
1776
|
-
version: "1.206.0",
|
|
1777
|
-
repository: {
|
|
1778
|
-
type: "git",
|
|
1779
|
-
url: "https://github.com/UiPath/cli.git",
|
|
1780
|
-
directory: "packages/orchestrator-sdk"
|
|
1781
|
-
},
|
|
1782
|
-
publishConfig: {
|
|
1783
|
-
registry: "https://npm.pkg.github.com/@uipath"
|
|
1784
|
-
},
|
|
1785
|
-
keywords: [
|
|
1786
|
-
"uipath",
|
|
1787
|
-
"orchestrator",
|
|
1788
|
-
"sdk"
|
|
1789
|
-
],
|
|
1790
|
-
type: "module",
|
|
1791
|
-
main: "./dist/index.js",
|
|
1792
|
-
types: "./dist/src/index.d.ts",
|
|
1793
|
-
exports: {
|
|
1794
|
-
".": {
|
|
1795
|
-
browser: {
|
|
1796
|
-
types: "./dist/src/index.browser.d.ts",
|
|
1797
|
-
default: "./dist/index.browser.js"
|
|
1798
|
-
},
|
|
1799
|
-
default: {
|
|
1800
|
-
types: "./dist/src/index.d.ts",
|
|
1801
|
-
default: "./dist/index.js"
|
|
1802
|
-
}
|
|
1803
|
-
},
|
|
1804
|
-
"./folder-feed": {
|
|
1805
|
-
types: "./dist/src/folder-feed.d.ts",
|
|
1806
|
-
default: "./dist/folder-feed.js"
|
|
1807
|
-
}
|
|
1808
|
-
},
|
|
1809
|
-
files: [
|
|
1810
|
-
"dist"
|
|
1811
|
-
],
|
|
1812
|
-
private: true,
|
|
1813
|
-
scripts: {
|
|
1814
|
-
build: "bun build ./src/index.ts ./src/folder-feed.ts --outdir dist --format esm --target node --sourcemap=linked && bun build ./src/index.browser.ts --outdir dist --format esm --target browser --external @uipath/auth --external @uipath/common --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
1815
|
-
generate: "bun run src/scripts/generate-sdk.ts",
|
|
1816
|
-
lint: "biome check .",
|
|
1817
|
-
test: "vitest run",
|
|
1818
|
-
"test:coverage": "vitest run --coverage",
|
|
1819
|
-
typecheck: "tsc --noEmit"
|
|
1820
|
-
},
|
|
1821
|
-
devDependencies: {
|
|
1822
|
-
"@uipath/auth": "workspace:*",
|
|
1823
|
-
"@uipath/common": "workspace:*",
|
|
1824
|
-
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
1825
|
-
"@types/node": "^25.5.2",
|
|
1826
|
-
typescript: "^7.0.2"
|
|
1827
|
-
}
|
|
1828
|
-
};
|
|
1829
|
-
|
|
1830
|
-
// ../orchestrator-sdk/src/user-agent.ts
|
|
1831
|
-
var SDK_USER_AGENT = getSdkUserAgentToken(package_default);
|
|
1832
|
-
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
1833
|
-
|
|
1834
|
-
// ../orchestrator-sdk/src/client-factory.ts
|
|
1835
|
-
async function createOrchestratorConfig(options) {
|
|
1836
|
-
const ctx = await getAuthContext({
|
|
1837
|
-
tenant: options?.tenant,
|
|
1838
|
-
ensureTokenValidityMinutes: options?.loginValidity,
|
|
1839
|
-
envFilePath: options?.envFilePath
|
|
1840
|
-
});
|
|
1841
|
-
const orchestratorBasePath = ctx.organizationId && ctx.tenantName ? `${ctx.baseUrl}/${ctx.organizationId}/${ctx.tenantName}/orchestrator_` : ctx.baseUrl;
|
|
1842
|
-
const headers = addSdkUserAgentHeader({
|
|
1843
|
-
Authorization: `Bearer ${ctx.accessToken}`
|
|
1844
|
-
}, SDK_USER_AGENT);
|
|
1845
|
-
if (options?.folderId) {
|
|
1846
|
-
headers["X-UIPATH-OrganizationUnitId"] = options.folderId;
|
|
1847
|
-
} else if (options?.folderKey && options?.folderPath) {
|
|
1848
|
-
throw new Error("Provide either folderKey or folderPath, not both.");
|
|
1849
|
-
} else if (options?.folderKey) {
|
|
1850
|
-
headers["X-UIPATH-FolderKey"] = options.folderKey;
|
|
1851
|
-
} else if (options?.folderPath) {
|
|
1852
|
-
headers["X-UIPATH-FolderPath"] = options.folderPath;
|
|
1853
|
-
}
|
|
1854
|
-
return new Configuration({
|
|
1855
|
-
basePath: orchestratorBasePath,
|
|
1856
|
-
headers,
|
|
1857
|
-
fetchApi: sessionKindStampingFetch(ctx.identity ?? resolveSessionIdentity(ctx.accessToken))
|
|
1858
|
-
});
|
|
1859
|
-
}
|
|
1860
|
-
function sessionKindStampingFetch(kind) {
|
|
1861
|
-
if (!kind)
|
|
1862
|
-
return;
|
|
1863
|
-
return async (...args) => attachSessionKind(await fetch(...args), kind);
|
|
1864
|
-
}
|
|
1865
|
-
async function createApiClient(ApiClass, options) {
|
|
1866
|
-
const config = await createOrchestratorConfig(options);
|
|
1867
|
-
return new ApiClass(config);
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
// ../orchestrator-sdk/src/folder-resolver.ts
|
|
1871
|
-
var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1872
|
-
async function resolveFolder(input, options) {
|
|
1873
|
-
if (!input?.folderPath && !input?.folderKey) {
|
|
1874
|
-
return;
|
|
1875
|
-
}
|
|
1876
|
-
const config = await createOrchestratorConfig(options);
|
|
1877
|
-
const foldersApi = new FoldersApi(config);
|
|
1878
|
-
if (input.folderKey) {
|
|
1879
|
-
if (!UUID_REGEX.test(input.folderKey)) {
|
|
1880
|
-
throw new Error(`Invalid folder key: '${input.folderKey}'. Expected a UUID (e.g. '12345678-1234-1234-1234-123456789abc').`);
|
|
3570
|
+
async sessionsSetMaintenanceModeRaw(requestParameters, initOverrides) {
|
|
3571
|
+
const queryParameters = {};
|
|
3572
|
+
const headerParameters = {};
|
|
3573
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3574
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3575
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1881
3576
|
}
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
throw new Error(`Folder not found: '${folderKey}'.`);
|
|
1892
|
-
}
|
|
1893
|
-
return {
|
|
1894
|
-
id: folder.id,
|
|
1895
|
-
key: folder.key,
|
|
1896
|
-
path: folder.fullyQualifiedName,
|
|
1897
|
-
displayName: folder.displayName,
|
|
1898
|
-
feedType: folder.feedType
|
|
1899
|
-
};
|
|
1900
|
-
}
|
|
1901
|
-
async function resolveByPath(config, foldersApi, folderPath) {
|
|
1902
|
-
const response = await foldersApi.foldersGet({
|
|
1903
|
-
$filter: `FullyQualifiedName eq '${folderPath.replace(/'/g, "''")}'`,
|
|
1904
|
-
$top: 1
|
|
1905
|
-
});
|
|
1906
|
-
const folder = response.value?.[0] ?? await resolveInPersonalWorkspace(config, foldersApi, folderPath);
|
|
1907
|
-
if (!folder?.id || !folder.key || !folder.fullyQualifiedName || !folder.displayName) {
|
|
1908
|
-
throw new Error(`Folder not found: '${folderPath}'.`);
|
|
1909
|
-
}
|
|
1910
|
-
return {
|
|
1911
|
-
id: folder.id,
|
|
1912
|
-
key: folder.key,
|
|
1913
|
-
path: folder.fullyQualifiedName,
|
|
1914
|
-
displayName: folder.displayName,
|
|
1915
|
-
feedType: folder.feedType
|
|
1916
|
-
};
|
|
1917
|
-
}
|
|
1918
|
-
var CURRENT_USER_FOLDER_PAGE_SIZE = 1000;
|
|
1919
|
-
var CURRENT_USER_FOLDER_PAGE_LIMIT = 50;
|
|
1920
|
-
async function resolveInPersonalWorkspace(config, foldersApi, folderPath) {
|
|
1921
|
-
const workspace = await lookupOrMiss("GetPersonalWorkspace", folderPath, () => new PersonalWorkspacesApi(config).personalWorkspacesGetPersonalWorkspace());
|
|
1922
|
-
if (!workspace?.key || !workspace.name) {
|
|
1923
|
-
return;
|
|
1924
|
-
}
|
|
1925
|
-
const wanted = folderPath.toLowerCase();
|
|
1926
|
-
const root = workspace.name.toLowerCase();
|
|
1927
|
-
let key;
|
|
1928
|
-
if (wanted === root) {
|
|
1929
|
-
key = workspace.key;
|
|
1930
|
-
} else if (wanted.startsWith(`${root}/`)) {
|
|
1931
|
-
key = await findKeyInCurrentUserFolders(foldersApi, folderPath);
|
|
3577
|
+
let urlPath = `/odata/Sessions/UiPath.Server.Configuration.OData.SetMaintenanceMode`;
|
|
3578
|
+
const response = await this.request({
|
|
3579
|
+
path: urlPath,
|
|
3580
|
+
method: "POST",
|
|
3581
|
+
headers: headerParameters,
|
|
3582
|
+
query: queryParameters,
|
|
3583
|
+
body: SessionMaintenanceModeParametersToJSON(requestParameters["body"])
|
|
3584
|
+
}, initOverrides);
|
|
3585
|
+
return new VoidApiResponse(response);
|
|
1932
3586
|
}
|
|
1933
|
-
|
|
1934
|
-
|
|
3587
|
+
async sessionsSetMaintenanceMode(requestParameters = {}, initOverrides) {
|
|
3588
|
+
await this.sessionsSetMaintenanceModeRaw(requestParameters, initOverrides);
|
|
1935
3589
|
}
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
return folder?.fullyQualifiedName?.toLowerCase() === wanted ? folder : undefined;
|
|
1940
|
-
}
|
|
1941
|
-
async function findKeyInCurrentUserFolders(foldersApi, folderPath) {
|
|
1942
|
-
const wanted = folderPath.toLowerCase();
|
|
1943
|
-
let skip = 0;
|
|
1944
|
-
for (let page = 0;page < CURRENT_USER_FOLDER_PAGE_LIMIT; page++) {
|
|
1945
|
-
const result = await lookupOrMiss("GetAllForCurrentUser", folderPath, () => foldersApi.foldersGetAllForCurrentUser({
|
|
1946
|
-
take: CURRENT_USER_FOLDER_PAGE_SIZE,
|
|
1947
|
-
skip
|
|
1948
|
-
}));
|
|
1949
|
-
const rows = result?.pageItems ?? [];
|
|
1950
|
-
const match = rows.find((row) => row.fullyQualifiedName?.toLowerCase() === wanted);
|
|
1951
|
-
if (match) {
|
|
1952
|
-
return match.key;
|
|
3590
|
+
async sessionsToggleMachineSessionDebugModeByIdRaw(requestParameters, initOverrides) {
|
|
3591
|
+
if (requestParameters["key"] == null) {
|
|
3592
|
+
throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling sessionsToggleMachineSessionDebugModeById().');
|
|
1953
3593
|
}
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
3594
|
+
const queryParameters = {};
|
|
3595
|
+
const headerParameters = {};
|
|
3596
|
+
headerParameters["Content-Type"] = "application/json;odata.metadata=minimal;odata.streaming=true";
|
|
3597
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3598
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
|
|
1957
3599
|
}
|
|
3600
|
+
let urlPath = `/odata/Sessions({key})/UiPath.Server.Configuration.OData.ToggleMachineSessionDebugMode`;
|
|
3601
|
+
urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
|
|
3602
|
+
const response = await this.request({
|
|
3603
|
+
path: urlPath,
|
|
3604
|
+
method: "POST",
|
|
3605
|
+
headers: headerParameters,
|
|
3606
|
+
query: queryParameters,
|
|
3607
|
+
body: SessionsToggleMachineSessionDebugModeRequestToJSON(requestParameters["body"])
|
|
3608
|
+
}, initOverrides);
|
|
3609
|
+
return new VoidApiResponse(response);
|
|
1958
3610
|
}
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
}
|
|
1962
|
-
async function lookupOrMiss(endpoint, folderPath, call) {
|
|
1963
|
-
const [error, value] = await catchError(call());
|
|
1964
|
-
if (!error) {
|
|
1965
|
-
return value;
|
|
1966
|
-
}
|
|
1967
|
-
if (!isLookupMiss(error)) {
|
|
1968
|
-
throw error;
|
|
3611
|
+
async sessionsToggleMachineSessionDebugModeById(requestParameters, initOverrides) {
|
|
3612
|
+
await this.sessionsToggleMachineSessionDebugModeByIdRaw(requestParameters, initOverrides);
|
|
1969
3613
|
}
|
|
1970
|
-
logger.debug(`${endpoint} lookup for '${folderPath}' failed: ${await extractErrorMessage(error)}`);
|
|
1971
|
-
return;
|
|
1972
|
-
}
|
|
1973
|
-
function isLookupMiss(error) {
|
|
1974
|
-
const failure = error;
|
|
1975
|
-
const status = failure?.response?.status ?? failure?.status;
|
|
1976
|
-
return typeof status === "number" && status >= 400 && status < 500 && status !== 408 && status !== 429;
|
|
1977
3614
|
}
|
|
1978
3615
|
// ../orchestrator-sdk/generated/src/apis/UsersApi.ts
|
|
1979
3616
|
class UsersApi extends BaseAPI {
|
|
@@ -2198,6 +3835,6 @@ var KB_INLINE_LIMITS = {
|
|
|
2198
3835
|
maxBodyBytes: 100 * 1024 * 1024,
|
|
2199
3836
|
maxParts: 1e4
|
|
2200
3837
|
};
|
|
2201
|
-
export { PersonalWorkspacesApi, UsersApi, createOrchestratorConfig, createApiClient, resolveFolder };
|
|
3838
|
+
export { MachinesApi, PersonalWorkspacesApi, SessionsApi, UsersApi, createOrchestratorConfig, createApiClient, resolveFolder, toProcessType, folderRuntimeTypesFor, usableFolderRuntimes, readFolderRuntimesAsync };
|
|
2202
3839
|
|
|
2203
|
-
//# debugId=
|
|
3840
|
+
//# debugId=EBC02EA5E566990164756E2164756E21
|