@uipath/uipath-typescript 1.3.2 → 1.3.4
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/assets/index.cjs +21 -8
- package/dist/assets/index.mjs +21 -8
- package/dist/attachments/index.cjs +21 -8
- package/dist/attachments/index.mjs +21 -8
- package/dist/buckets/index.cjs +21 -8
- package/dist/buckets/index.mjs +21 -8
- package/dist/cases/index.cjs +41 -13
- package/dist/cases/index.d.ts +15 -0
- package/dist/cases/index.mjs +41 -13
- package/dist/conversational-agent/index.cjs +39 -8
- package/dist/conversational-agent/index.d.ts +55 -2
- package/dist/conversational-agent/index.mjs +39 -8
- package/dist/core/index.cjs +16 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +16 -1
- package/dist/entities/index.cjs +55 -8
- package/dist/entities/index.d.ts +54 -0
- package/dist/entities/index.mjs +55 -8
- package/dist/feedback/index.cjs +1911 -0
- package/dist/feedback/index.d.ts +475 -0
- package/dist/feedback/index.mjs +1909 -0
- package/dist/index.cjs +451 -189
- package/dist/index.d.ts +388 -13
- package/dist/index.mjs +452 -190
- package/dist/index.umd.js +451 -189
- package/dist/jobs/index.cjs +384 -8
- package/dist/jobs/index.d.ts +220 -2
- package/dist/jobs/index.mjs +385 -9
- package/dist/maestro-processes/index.cjs +21 -8
- package/dist/maestro-processes/index.mjs +21 -8
- package/dist/processes/index.cjs +21 -8
- package/dist/processes/index.mjs +21 -8
- package/dist/queues/index.cjs +21 -8
- package/dist/queues/index.mjs +21 -8
- package/dist/tasks/index.cjs +41 -13
- package/dist/tasks/index.d.ts +25 -10
- package/dist/tasks/index.mjs +42 -14
- package/package.json +13 -2
package/dist/index.mjs
CHANGED
|
@@ -4385,6 +4385,21 @@ function getErrorDetails(error) {
|
|
|
4385
4385
|
};
|
|
4386
4386
|
}
|
|
4387
4387
|
|
|
4388
|
+
var TaskUserType;
|
|
4389
|
+
(function (TaskUserType) {
|
|
4390
|
+
/** A user of this type is supposed to be used by a human. */
|
|
4391
|
+
TaskUserType["User"] = "User";
|
|
4392
|
+
/** A user of this type is automatically created when adding a robot, is associated with Robot role and it is used by a robot when communicating with Orchestrator. */
|
|
4393
|
+
TaskUserType["Robot"] = "Robot";
|
|
4394
|
+
/** A user of type Directory User */
|
|
4395
|
+
TaskUserType["DirectoryUser"] = "DirectoryUser";
|
|
4396
|
+
/** A user of type Directory Group */
|
|
4397
|
+
TaskUserType["DirectoryGroup"] = "DirectoryGroup";
|
|
4398
|
+
/** A user of type Directory Robot Account */
|
|
4399
|
+
TaskUserType["DirectoryRobot"] = "DirectoryRobot";
|
|
4400
|
+
/** A user of type Directory External Application */
|
|
4401
|
+
TaskUserType["DirectoryExternalApplication"] = "DirectoryExternalApplication";
|
|
4402
|
+
})(TaskUserType || (TaskUserType = {}));
|
|
4388
4403
|
/**
|
|
4389
4404
|
* Types of tasks available in Action Center.
|
|
4390
4405
|
* Each type determines the task's behavior, UI rendering, and completion requirements.
|
|
@@ -4519,6 +4534,9 @@ const QUEUE_ENDPOINTS = {
|
|
|
4519
4534
|
const JOB_ENDPOINTS = {
|
|
4520
4535
|
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Jobs`,
|
|
4521
4536
|
GET_BY_KEY: (identifier) => `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.GetByKey(identifier=${identifier})`,
|
|
4537
|
+
STOP: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StopJobs`,
|
|
4538
|
+
RESUME: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.ResumeJob`,
|
|
4539
|
+
RESTART: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.RestartJob`,
|
|
4522
4540
|
};
|
|
4523
4541
|
/**
|
|
4524
4542
|
* Orchestrator Asset Service Endpoints
|
|
@@ -4590,6 +4608,7 @@ const DATA_FABRIC_ENDPOINTS = {
|
|
|
4590
4608
|
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
4591
4609
|
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
4592
4610
|
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
4611
|
+
DELETE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete/${recordId}`,
|
|
4593
4612
|
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
4594
4613
|
UPSERT: `${DATAFABRIC_BASE}/api/Entity`,
|
|
4595
4614
|
DELETE: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
@@ -5431,7 +5450,7 @@ function normalizeBaseUrl(url) {
|
|
|
5431
5450
|
// Connection string placeholder that will be replaced during build
|
|
5432
5451
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
5433
5452
|
// SDK Version placeholder
|
|
5434
|
-
const SDK_VERSION = "1.3.
|
|
5453
|
+
const SDK_VERSION = "1.3.4";
|
|
5435
5454
|
const VERSION = "Version";
|
|
5436
5455
|
const SERVICE = "Service";
|
|
5437
5456
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -6266,6 +6285,8 @@ class ErrorFactory {
|
|
|
6266
6285
|
|
|
6267
6286
|
const FOLDER_KEY = 'X-UIPATH-FolderKey';
|
|
6268
6287
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
6288
|
+
const TRACEPARENT = 'traceparent';
|
|
6289
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
6269
6290
|
/**
|
|
6270
6291
|
* Content type constants for HTTP requests/responses
|
|
6271
6292
|
*/
|
|
@@ -6319,8 +6340,13 @@ class ApiClient {
|
|
|
6319
6340
|
if (isFormData) {
|
|
6320
6341
|
delete defaultHeaders['Content-Type'];
|
|
6321
6342
|
}
|
|
6343
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
6344
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
6345
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
6322
6346
|
const headers = {
|
|
6323
6347
|
...defaultHeaders,
|
|
6348
|
+
[TRACEPARENT]: traceparentValue,
|
|
6349
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
6324
6350
|
...options.headers
|
|
6325
6351
|
};
|
|
6326
6352
|
// Convert params to URLSearchParams
|
|
@@ -6360,7 +6386,11 @@ class ApiClient {
|
|
|
6360
6386
|
const text = await response.text();
|
|
6361
6387
|
return text;
|
|
6362
6388
|
}
|
|
6363
|
-
|
|
6389
|
+
const text = await response.text();
|
|
6390
|
+
if (!text) {
|
|
6391
|
+
return undefined;
|
|
6392
|
+
}
|
|
6393
|
+
return JSON.parse(text);
|
|
6364
6394
|
}
|
|
6365
6395
|
catch (error) {
|
|
6366
6396
|
// If it's already one of our errors, re-throw it
|
|
@@ -7263,8 +7293,9 @@ class PaginationHelpers {
|
|
|
7263
7293
|
});
|
|
7264
7294
|
}
|
|
7265
7295
|
// Extract and transform items from response
|
|
7266
|
-
|
|
7267
|
-
const
|
|
7296
|
+
// Handle both plain array responses and envelope responses ({ value: [...], totalRecordCount: N })
|
|
7297
|
+
const rawItems = Array.isArray(response.data) ? response.data : response.data?.[itemsField];
|
|
7298
|
+
const totalCount = Array.isArray(response.data) ? undefined : response.data?.[totalCountField];
|
|
7268
7299
|
// Parse items - automatically handle JSON string responses
|
|
7269
7300
|
const parsedItems = typeof rawItems === 'string' ? JSON.parse(rawItems) : (rawItems || []);
|
|
7270
7301
|
const items = transformFn ? parsedItems.map(transformFn) : parsedItems;
|
|
@@ -7460,7 +7491,7 @@ class BaseService {
|
|
|
7460
7491
|
const params = this.validateAndPreparePaginationParams(paginationType, paginationOptions);
|
|
7461
7492
|
// Prepare request parameters based on pagination type
|
|
7462
7493
|
const requestParams = this.preparePaginationRequestParams(paginationType, params, options.pagination);
|
|
7463
|
-
// For POST requests, merge pagination params into body; for GET, use query params
|
|
7494
|
+
// For POST requests, merge pagination params into body and set params to undefined; for GET, use query params
|
|
7464
7495
|
if (method.toUpperCase() === 'POST') {
|
|
7465
7496
|
const existingBody = (options.body && typeof options.body === 'object') ? options.body : {};
|
|
7466
7497
|
options.body = {
|
|
@@ -7468,6 +7499,7 @@ class BaseService {
|
|
|
7468
7499
|
...options.params,
|
|
7469
7500
|
...requestParams
|
|
7470
7501
|
};
|
|
7502
|
+
options.params = undefined;
|
|
7471
7503
|
}
|
|
7472
7504
|
else {
|
|
7473
7505
|
// Merge pagination parameters with existing parameters
|
|
@@ -7508,7 +7540,6 @@ class BaseService {
|
|
|
7508
7540
|
if (params.pageNumber && params.pageNumber > 1) {
|
|
7509
7541
|
requestParams[offsetParam] = (params.pageNumber - 1) * limitedPageSize;
|
|
7510
7542
|
}
|
|
7511
|
-
// Include total count for ODATA APIs
|
|
7512
7543
|
{
|
|
7513
7544
|
requestParams[countParam] = true;
|
|
7514
7545
|
}
|
|
@@ -7536,8 +7567,9 @@ class BaseService {
|
|
|
7536
7567
|
const totalCountField = fields.totalCountField || 'totalRecordCount';
|
|
7537
7568
|
const continuationTokenField = fields.continuationTokenField || 'continuationToken';
|
|
7538
7569
|
// Extract items and metadata
|
|
7539
|
-
|
|
7540
|
-
const
|
|
7570
|
+
// Handle both plain array responses and envelope responses ({ value: [...], totalRecordCount: N })
|
|
7571
|
+
const items = Array.isArray(response.data) ? response.data : (response.data[itemsField] || []);
|
|
7572
|
+
const totalCount = Array.isArray(response.data) ? undefined : response.data[totalCountField];
|
|
7541
7573
|
const continuationToken = response.data[continuationTokenField];
|
|
7542
7574
|
// Determine if there are more pages
|
|
7543
7575
|
const hasMore = this.determineHasMorePages(paginationType, {
|
|
@@ -7618,6 +7650,13 @@ function createEntityMethods(entityData, service) {
|
|
|
7618
7650
|
throw new Error('Entity ID is undefined');
|
|
7619
7651
|
return service.deleteRecordsById(entityData.id, recordIds, options);
|
|
7620
7652
|
},
|
|
7653
|
+
async deleteRecord(recordId) {
|
|
7654
|
+
if (!entityData.id)
|
|
7655
|
+
throw new Error('Entity ID is undefined');
|
|
7656
|
+
if (!recordId)
|
|
7657
|
+
throw new Error('Record ID is undefined');
|
|
7658
|
+
return service.deleteRecordById(entityData.id, recordId);
|
|
7659
|
+
},
|
|
7621
7660
|
async getAllRecords(options) {
|
|
7622
7661
|
if (!entityData.id)
|
|
7623
7662
|
throw new Error('Entity ID is undefined');
|
|
@@ -8170,6 +8209,8 @@ class EntityService extends BaseService {
|
|
|
8170
8209
|
/**
|
|
8171
8210
|
* Deletes data from an entity by entity ID
|
|
8172
8211
|
*
|
|
8212
|
+
* Note: Records deleted using deleteRecordsById will not trigger Data Fabric trigger events. Use {@link deleteRecordById} if you need trigger events to fire for the deleted record.
|
|
8213
|
+
*
|
|
8173
8214
|
* @param entityId - UUID of the entity
|
|
8174
8215
|
* @param recordIds - Array of record UUIDs to delete
|
|
8175
8216
|
* @param options - Delete options
|
|
@@ -8197,6 +8238,27 @@ class EntityService extends BaseService {
|
|
|
8197
8238
|
});
|
|
8198
8239
|
return response.data;
|
|
8199
8240
|
}
|
|
8241
|
+
/**
|
|
8242
|
+
* Deletes a single record from an entity by entity ID and record ID
|
|
8243
|
+
*
|
|
8244
|
+
* Note: Data Fabric supports trigger events only on individual deletes, not on deleting multiple records.
|
|
8245
|
+
* Use this method if you need trigger events to fire for the deleted record.
|
|
8246
|
+
*
|
|
8247
|
+
* @param entityId - UUID of the entity
|
|
8248
|
+
* @param recordId - UUID of the record to delete
|
|
8249
|
+
* @returns Promise resolving to void on success
|
|
8250
|
+
* @example
|
|
8251
|
+
* ```typescript
|
|
8252
|
+
* import { Entities } from '@uipath/uipath-typescript/entities';
|
|
8253
|
+
*
|
|
8254
|
+
* const entities = new Entities(sdk);
|
|
8255
|
+
*
|
|
8256
|
+
* await entities.deleteRecordById("<entityId>", "<recordId>");
|
|
8257
|
+
* ```
|
|
8258
|
+
*/
|
|
8259
|
+
async deleteRecordById(entityId, recordId) {
|
|
8260
|
+
await this.delete(DATA_FABRIC_ENDPOINTS.ENTITY.DELETE_RECORD_BY_ID(entityId, recordId));
|
|
8261
|
+
}
|
|
8200
8262
|
/**
|
|
8201
8263
|
* Gets all entities in the system
|
|
8202
8264
|
*
|
|
@@ -8749,6 +8811,9 @@ __decorate([
|
|
|
8749
8811
|
__decorate([
|
|
8750
8812
|
track('Entities.DeleteRecordsById')
|
|
8751
8813
|
], EntityService.prototype, "deleteRecordsById", null);
|
|
8814
|
+
__decorate([
|
|
8815
|
+
track('Entities.DeleteRecordById')
|
|
8816
|
+
], EntityService.prototype, "deleteRecordById", null);
|
|
8752
8817
|
__decorate([
|
|
8753
8818
|
track('Entities.GetAll')
|
|
8754
8819
|
], EntityService.prototype, "getAll", null);
|
|
@@ -9934,15 +9999,15 @@ class TaskService extends BaseService {
|
|
|
9934
9999
|
return createTaskWithMethods(transformedData, this);
|
|
9935
10000
|
}
|
|
9936
10001
|
/**
|
|
9937
|
-
* Gets users in the given folder who have Tasks.View and Tasks.Edit permissions
|
|
10002
|
+
* Gets task users (users, robots, groups etc) in the given folder who have Tasks.View and Tasks.Edit permissions
|
|
9938
10003
|
*
|
|
9939
10004
|
* The method returns either:
|
|
9940
|
-
* - An array of users (when no pagination parameters are provided)
|
|
10005
|
+
* - An array of task users (when no pagination parameters are provided)
|
|
9941
10006
|
* - A paginated result with navigation cursors (when any pagination parameter is provided)
|
|
9942
10007
|
*
|
|
9943
|
-
* @param folderId - The folder ID to get users from
|
|
10008
|
+
* @param folderId - The folder ID to get task users from
|
|
9944
10009
|
* @param options - Optional query and pagination parameters
|
|
9945
|
-
* @returns Promise resolving to an array of users or paginated result
|
|
10010
|
+
* @returns Promise resolving to an array of task users or paginated result
|
|
9946
10011
|
*
|
|
9947
10012
|
* @example
|
|
9948
10013
|
* ```typescript
|
|
@@ -9953,7 +10018,7 @@ class TaskService extends BaseService {
|
|
|
9953
10018
|
* // Standard array return
|
|
9954
10019
|
* const users = await tasks.getUsers(123);
|
|
9955
10020
|
*
|
|
9956
|
-
* // Get users with filtering
|
|
10021
|
+
* // Get task users with filtering
|
|
9957
10022
|
* const users = await tasks.getUsers(123, {
|
|
9958
10023
|
* filter: "name eq 'abc'"
|
|
9959
10024
|
* });
|
|
@@ -11359,6 +11424,27 @@ function createJobMethods(jobData, service) {
|
|
|
11359
11424
|
throw new Error('Job folderId is undefined');
|
|
11360
11425
|
return service.getOutput(jobData.key, jobData.folderId);
|
|
11361
11426
|
},
|
|
11427
|
+
async stop(options) {
|
|
11428
|
+
if (!jobData.key)
|
|
11429
|
+
throw new Error('Job key is undefined');
|
|
11430
|
+
if (!jobData.folderId)
|
|
11431
|
+
throw new Error('Job folderId is undefined');
|
|
11432
|
+
return service.stop([jobData.key], jobData.folderId, options);
|
|
11433
|
+
},
|
|
11434
|
+
async resume(options) {
|
|
11435
|
+
if (!jobData.key)
|
|
11436
|
+
throw new Error('Job key is undefined');
|
|
11437
|
+
if (!jobData.folderId)
|
|
11438
|
+
throw new Error('Job folderId is undefined');
|
|
11439
|
+
return service.resume(jobData.key, jobData.folderId, options);
|
|
11440
|
+
},
|
|
11441
|
+
async restart() {
|
|
11442
|
+
if (!jobData.key)
|
|
11443
|
+
throw new Error('Job key is undefined');
|
|
11444
|
+
if (!jobData.folderId)
|
|
11445
|
+
throw new Error('Job folderId is undefined');
|
|
11446
|
+
return service.restart(jobData.key, jobData.folderId);
|
|
11447
|
+
},
|
|
11362
11448
|
};
|
|
11363
11449
|
}
|
|
11364
11450
|
/**
|
|
@@ -11373,6 +11459,8 @@ function createJobWithMethods(jobData, service) {
|
|
|
11373
11459
|
return Object.assign({}, jobData, methods);
|
|
11374
11460
|
}
|
|
11375
11461
|
|
|
11462
|
+
/** Maximum number of job keys to resolve in a single OData filter query */
|
|
11463
|
+
const JOB_KEY_RESOLUTION_CHUNK_SIZE = 50;
|
|
11376
11464
|
/**
|
|
11377
11465
|
* Maps fields for Job entities to ensure consistent naming
|
|
11378
11466
|
* Semantic renames only — case conversion handled by pascalToCamelCaseKeys()
|
|
@@ -11431,6 +11519,182 @@ __decorate([
|
|
|
11431
11519
|
track('Attachments.GetById')
|
|
11432
11520
|
], AttachmentService.prototype, "getById", null);
|
|
11433
11521
|
|
|
11522
|
+
/**
|
|
11523
|
+
* Enum for package types
|
|
11524
|
+
*/
|
|
11525
|
+
var PackageType;
|
|
11526
|
+
(function (PackageType) {
|
|
11527
|
+
PackageType["Undefined"] = "Undefined";
|
|
11528
|
+
PackageType["Process"] = "Process";
|
|
11529
|
+
PackageType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11530
|
+
PackageType["WebApp"] = "WebApp";
|
|
11531
|
+
PackageType["Agent"] = "Agent";
|
|
11532
|
+
PackageType["TestAutomationProcess"] = "TestAutomationProcess";
|
|
11533
|
+
PackageType["Api"] = "Api";
|
|
11534
|
+
PackageType["MCPServer"] = "MCPServer";
|
|
11535
|
+
PackageType["BusinessRules"] = "BusinessRules";
|
|
11536
|
+
PackageType["CaseManagement"] = "CaseManagement";
|
|
11537
|
+
PackageType["Flow"] = "Flow";
|
|
11538
|
+
PackageType["Function"] = "Function";
|
|
11539
|
+
})(PackageType || (PackageType = {}));
|
|
11540
|
+
/**
|
|
11541
|
+
* Enum for job priority
|
|
11542
|
+
*/
|
|
11543
|
+
var JobPriority;
|
|
11544
|
+
(function (JobPriority) {
|
|
11545
|
+
JobPriority["Low"] = "Low";
|
|
11546
|
+
JobPriority["Normal"] = "Normal";
|
|
11547
|
+
JobPriority["High"] = "High";
|
|
11548
|
+
})(JobPriority || (JobPriority = {}));
|
|
11549
|
+
/**
|
|
11550
|
+
* Enum for target framework
|
|
11551
|
+
*/
|
|
11552
|
+
var TargetFramework;
|
|
11553
|
+
(function (TargetFramework) {
|
|
11554
|
+
TargetFramework["Legacy"] = "Legacy";
|
|
11555
|
+
TargetFramework["Windows"] = "Windows";
|
|
11556
|
+
TargetFramework["Portable"] = "Portable";
|
|
11557
|
+
})(TargetFramework || (TargetFramework = {}));
|
|
11558
|
+
/**
|
|
11559
|
+
* Enum for robot size
|
|
11560
|
+
*/
|
|
11561
|
+
var RobotSize;
|
|
11562
|
+
(function (RobotSize) {
|
|
11563
|
+
RobotSize["Small"] = "Small";
|
|
11564
|
+
RobotSize["Standard"] = "Standard";
|
|
11565
|
+
RobotSize["Medium"] = "Medium";
|
|
11566
|
+
RobotSize["Large"] = "Large";
|
|
11567
|
+
})(RobotSize || (RobotSize = {}));
|
|
11568
|
+
/**
|
|
11569
|
+
* Enum for remote control access
|
|
11570
|
+
*/
|
|
11571
|
+
var RemoteControlAccess;
|
|
11572
|
+
(function (RemoteControlAccess) {
|
|
11573
|
+
RemoteControlAccess["None"] = "None";
|
|
11574
|
+
RemoteControlAccess["ReadOnly"] = "ReadOnly";
|
|
11575
|
+
RemoteControlAccess["Full"] = "Full";
|
|
11576
|
+
})(RemoteControlAccess || (RemoteControlAccess = {}));
|
|
11577
|
+
/**
|
|
11578
|
+
* Enum for process start strategy
|
|
11579
|
+
*/
|
|
11580
|
+
var StartStrategy;
|
|
11581
|
+
(function (StartStrategy) {
|
|
11582
|
+
StartStrategy["All"] = "All";
|
|
11583
|
+
StartStrategy["Specific"] = "Specific";
|
|
11584
|
+
StartStrategy["RobotCount"] = "RobotCount";
|
|
11585
|
+
StartStrategy["JobsCount"] = "JobsCount";
|
|
11586
|
+
StartStrategy["ModernJobsCount"] = "ModernJobsCount";
|
|
11587
|
+
})(StartStrategy || (StartStrategy = {}));
|
|
11588
|
+
/**
|
|
11589
|
+
* Enum for package source type
|
|
11590
|
+
*/
|
|
11591
|
+
var PackageSourceType;
|
|
11592
|
+
(function (PackageSourceType) {
|
|
11593
|
+
PackageSourceType["Manual"] = "Manual";
|
|
11594
|
+
PackageSourceType["Schedule"] = "Schedule";
|
|
11595
|
+
PackageSourceType["Queue"] = "Queue";
|
|
11596
|
+
PackageSourceType["StudioWeb"] = "StudioWeb";
|
|
11597
|
+
PackageSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
11598
|
+
PackageSourceType["StudioDesktop"] = "StudioDesktop";
|
|
11599
|
+
PackageSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
11600
|
+
PackageSourceType["Apps"] = "Apps";
|
|
11601
|
+
PackageSourceType["SAP"] = "SAP";
|
|
11602
|
+
PackageSourceType["HttpTrigger"] = "HttpTrigger";
|
|
11603
|
+
PackageSourceType["HttpTriggerWithCallback"] = "HttpTriggerWithCallback";
|
|
11604
|
+
PackageSourceType["RobotAPI"] = "RobotAPI";
|
|
11605
|
+
PackageSourceType["Assistant"] = "Assistant";
|
|
11606
|
+
PackageSourceType["CommandLine"] = "CommandLine";
|
|
11607
|
+
PackageSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
11608
|
+
PackageSourceType["Autopilot"] = "Autopilot";
|
|
11609
|
+
PackageSourceType["TestManager"] = "TestManager";
|
|
11610
|
+
PackageSourceType["AgentService"] = "AgentService";
|
|
11611
|
+
PackageSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11612
|
+
PackageSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
11613
|
+
PackageSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
11614
|
+
PackageSourceType["AgentHub"] = "AgentHub";
|
|
11615
|
+
PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11616
|
+
})(PackageSourceType || (PackageSourceType = {}));
|
|
11617
|
+
/**
|
|
11618
|
+
* Enum for job source type
|
|
11619
|
+
*/
|
|
11620
|
+
var JobSourceType;
|
|
11621
|
+
(function (JobSourceType) {
|
|
11622
|
+
JobSourceType["Manual"] = "Manual";
|
|
11623
|
+
JobSourceType["Schedule"] = "Schedule";
|
|
11624
|
+
JobSourceType["Agent"] = "Agent";
|
|
11625
|
+
JobSourceType["Queue"] = "Queue";
|
|
11626
|
+
JobSourceType["StudioWeb"] = "StudioWeb";
|
|
11627
|
+
JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
11628
|
+
JobSourceType["StudioDesktop"] = "StudioDesktop";
|
|
11629
|
+
JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
11630
|
+
JobSourceType["Apps"] = "Apps";
|
|
11631
|
+
JobSourceType["SAP"] = "SAP";
|
|
11632
|
+
JobSourceType["HttpTrigger"] = "HttpTrigger";
|
|
11633
|
+
JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
11634
|
+
JobSourceType["RobotAPI"] = "RobotAPI";
|
|
11635
|
+
JobSourceType["CommandLine"] = "CommandLine";
|
|
11636
|
+
JobSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
11637
|
+
JobSourceType["Autopilot"] = "Autopilot";
|
|
11638
|
+
JobSourceType["TestManager"] = "TestManager";
|
|
11639
|
+
JobSourceType["AgentService"] = "AgentService";
|
|
11640
|
+
JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11641
|
+
JobSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
11642
|
+
JobSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
11643
|
+
JobSourceType["AgentHub"] = "AgentHub";
|
|
11644
|
+
JobSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11645
|
+
JobSourceType["CaseManagement"] = "CaseManagement";
|
|
11646
|
+
})(JobSourceType || (JobSourceType = {}));
|
|
11647
|
+
/**
|
|
11648
|
+
* Enum for stop strategy
|
|
11649
|
+
*/
|
|
11650
|
+
var StopStrategy;
|
|
11651
|
+
(function (StopStrategy) {
|
|
11652
|
+
StopStrategy["SoftStop"] = "SoftStop";
|
|
11653
|
+
StopStrategy["Kill"] = "Kill";
|
|
11654
|
+
})(StopStrategy || (StopStrategy = {}));
|
|
11655
|
+
/**
|
|
11656
|
+
* Enum for runtime type
|
|
11657
|
+
*/
|
|
11658
|
+
var RuntimeType;
|
|
11659
|
+
(function (RuntimeType) {
|
|
11660
|
+
RuntimeType["NonProduction"] = "NonProduction";
|
|
11661
|
+
RuntimeType["Attended"] = "Attended";
|
|
11662
|
+
RuntimeType["Unattended"] = "Unattended";
|
|
11663
|
+
RuntimeType["Development"] = "Development";
|
|
11664
|
+
RuntimeType["Studio"] = "Studio";
|
|
11665
|
+
RuntimeType["RpaDeveloper"] = "RpaDeveloper";
|
|
11666
|
+
RuntimeType["StudioX"] = "StudioX";
|
|
11667
|
+
RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
|
|
11668
|
+
RuntimeType["Headless"] = "Headless";
|
|
11669
|
+
RuntimeType["StudioPro"] = "StudioPro";
|
|
11670
|
+
RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
11671
|
+
RuntimeType["TestAutomation"] = "TestAutomation";
|
|
11672
|
+
RuntimeType["AutomationCloud"] = "AutomationCloud";
|
|
11673
|
+
RuntimeType["Serverless"] = "Serverless";
|
|
11674
|
+
RuntimeType["AutomationKit"] = "AutomationKit";
|
|
11675
|
+
RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
11676
|
+
RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
11677
|
+
RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
11678
|
+
RuntimeType["Hosting"] = "Hosting";
|
|
11679
|
+
RuntimeType["AssistantWeb"] = "AssistantWeb";
|
|
11680
|
+
RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11681
|
+
RuntimeType["AgentService"] = "AgentService";
|
|
11682
|
+
RuntimeType["AppTest"] = "AppTest";
|
|
11683
|
+
RuntimeType["PerformanceTest"] = "PerformanceTest";
|
|
11684
|
+
RuntimeType["BusinessRule"] = "BusinessRule";
|
|
11685
|
+
RuntimeType["CaseManagement"] = "CaseManagement";
|
|
11686
|
+
RuntimeType["Flow"] = "Flow";
|
|
11687
|
+
})(RuntimeType || (RuntimeType = {}));
|
|
11688
|
+
/**
|
|
11689
|
+
* Enum for job type
|
|
11690
|
+
*/
|
|
11691
|
+
var JobType;
|
|
11692
|
+
(function (JobType) {
|
|
11693
|
+
JobType["Unattended"] = "Unattended";
|
|
11694
|
+
JobType["Attended"] = "Attended";
|
|
11695
|
+
JobType["ServerlessGeneric"] = "ServerlessGeneric";
|
|
11696
|
+
})(JobType || (JobType = {}));
|
|
11697
|
+
|
|
11434
11698
|
/**
|
|
11435
11699
|
* Service for interacting with UiPath Orchestrator Jobs API
|
|
11436
11700
|
*/
|
|
@@ -11600,6 +11864,121 @@ class JobService extends FolderScopedService {
|
|
|
11600
11864
|
}
|
|
11601
11865
|
return null;
|
|
11602
11866
|
}
|
|
11867
|
+
/**
|
|
11868
|
+
* Stops one or more jobs by their UUID keys.
|
|
11869
|
+
*
|
|
11870
|
+
* Sends a stop request for the specified jobs to the Orchestrator. Throws if any keys cannot be resolved.
|
|
11871
|
+
*
|
|
11872
|
+
* @param jobKeys - Array of job UUID keys to stop (e.g., from {@link JobGetResponse}.key)
|
|
11873
|
+
* @param folderId - The folder ID where the jobs reside (required)
|
|
11874
|
+
* @param options - Optional {@link JobStopOptions} including stop strategy
|
|
11875
|
+
* @returns Promise that resolves when the jobs are stopped successfully, or rejects on failure
|
|
11876
|
+
*
|
|
11877
|
+
* @example
|
|
11878
|
+
* ```typescript
|
|
11879
|
+
* // Stop a single job with default soft stop
|
|
11880
|
+
* await jobs.stop([<jobKey>], <folderId>);
|
|
11881
|
+
* ```
|
|
11882
|
+
*
|
|
11883
|
+
* @example
|
|
11884
|
+
* ```typescript
|
|
11885
|
+
* import { StopStrategy } from '@uipath/uipath-typescript/jobs';
|
|
11886
|
+
*
|
|
11887
|
+
* // Force-kill multiple jobs
|
|
11888
|
+
* await jobs.stop(
|
|
11889
|
+
* [<jobKey1>, <jobKey2>],
|
|
11890
|
+
* <folderId>,
|
|
11891
|
+
* { strategy: StopStrategy.Kill }
|
|
11892
|
+
* );
|
|
11893
|
+
* ```
|
|
11894
|
+
*/
|
|
11895
|
+
async stop(jobKeys, folderId, options) {
|
|
11896
|
+
if (jobKeys.length === 0) {
|
|
11897
|
+
return;
|
|
11898
|
+
}
|
|
11899
|
+
if (!folderId) {
|
|
11900
|
+
throw new ValidationError({ message: 'folderId is required for stop' });
|
|
11901
|
+
}
|
|
11902
|
+
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
11903
|
+
const strategy = options?.strategy ?? StopStrategy.SoftStop;
|
|
11904
|
+
const jobIds = await this.resolveJobKeys(jobKeys, folderId);
|
|
11905
|
+
await this.stopJobsByIds(jobIds, strategy, headers);
|
|
11906
|
+
}
|
|
11907
|
+
/**
|
|
11908
|
+
* Resumes a suspended job.
|
|
11909
|
+
*
|
|
11910
|
+
* Sends a resume request to a job that is currently in the `Suspended` state.
|
|
11911
|
+
* The job transitions to `Resumed` and then to `Running` as it continues execution. Optionally pass
|
|
11912
|
+
* input arguments to provide data for the resumed workflow.
|
|
11913
|
+
*
|
|
11914
|
+
* @param jobKey - The unique key (GUID) of the suspended job to resume
|
|
11915
|
+
* @param folderId - The folder ID where the job resides
|
|
11916
|
+
* @param options - Optional parameters including input arguments
|
|
11917
|
+
* @returns Promise that resolves when the job is resumed successfully, or rejects on failure
|
|
11918
|
+
*
|
|
11919
|
+
* @example
|
|
11920
|
+
* ```typescript
|
|
11921
|
+
* // Resume a suspended job
|
|
11922
|
+
* await jobs.resume(<jobKey>, <folderId>);
|
|
11923
|
+
* ```
|
|
11924
|
+
*
|
|
11925
|
+
* @example
|
|
11926
|
+
* ```typescript
|
|
11927
|
+
* // Resume with input arguments
|
|
11928
|
+
* await jobs.resume(<jobKey>, <folderId>, {
|
|
11929
|
+
* inputArguments: { approved: true }
|
|
11930
|
+
* });
|
|
11931
|
+
* ```
|
|
11932
|
+
*/
|
|
11933
|
+
async resume(jobKey, folderId, options) {
|
|
11934
|
+
if (!jobKey) {
|
|
11935
|
+
throw new ValidationError({ message: 'jobKey is required for resume' });
|
|
11936
|
+
}
|
|
11937
|
+
if (!folderId) {
|
|
11938
|
+
throw new ValidationError({ message: 'folderId is required for resume' });
|
|
11939
|
+
}
|
|
11940
|
+
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
11941
|
+
const body = { jobKey };
|
|
11942
|
+
if (options?.inputArguments) {
|
|
11943
|
+
body.inputArguments = JSON.stringify(options.inputArguments);
|
|
11944
|
+
}
|
|
11945
|
+
await this.post(JOB_ENDPOINTS.RESUME, body, { headers });
|
|
11946
|
+
}
|
|
11947
|
+
/**
|
|
11948
|
+
* Restarts a job in a final state (Successful, Faulted, or Stopped).
|
|
11949
|
+
*
|
|
11950
|
+
* Creates a **new** job execution from a previously successful, faulted, or stopped job.
|
|
11951
|
+
* The new job has its own unique `key`, starts in `Pending` state, and uses
|
|
11952
|
+
* the same process and input arguments as the original job.
|
|
11953
|
+
*
|
|
11954
|
+
* To monitor the new job's progress, poll with {@link getById}
|
|
11955
|
+
* using the returned job's key until the state reaches a final value.
|
|
11956
|
+
*
|
|
11957
|
+
* @param jobKey - The unique key (GUID) of the job to restart
|
|
11958
|
+
* @param folderId - The folder ID where the job resides
|
|
11959
|
+
* @returns Promise resolving to the new {@link JobGetResponse} with full job details
|
|
11960
|
+
*
|
|
11961
|
+
* @example
|
|
11962
|
+
* ```typescript
|
|
11963
|
+
* // Restart a faulted job
|
|
11964
|
+
* const newJob = await jobs.restart(<jobKey>, <folderId>);
|
|
11965
|
+
* console.log(newJob.state); // 'Pending'
|
|
11966
|
+
* console.log(newJob.key); // new job key (different from original)
|
|
11967
|
+
* ```
|
|
11968
|
+
*/
|
|
11969
|
+
async restart(jobKey, folderId) {
|
|
11970
|
+
if (!jobKey) {
|
|
11971
|
+
throw new ValidationError({ message: 'jobKey is required for restart' });
|
|
11972
|
+
}
|
|
11973
|
+
if (!folderId) {
|
|
11974
|
+
throw new ValidationError({ message: 'folderId is required for restart' });
|
|
11975
|
+
}
|
|
11976
|
+
const [jobId] = await this.resolveJobKeys([jobKey], folderId);
|
|
11977
|
+
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
11978
|
+
const response = await this.post(JOB_ENDPOINTS.RESTART, { jobId }, { headers });
|
|
11979
|
+
const rawJob = transformData(pascalToCamelCaseKeys(response.data), JobMap);
|
|
11980
|
+
return createJobWithMethods(rawJob, this);
|
|
11981
|
+
}
|
|
11603
11982
|
/**
|
|
11604
11983
|
* Downloads the output file content via the Attachments API.
|
|
11605
11984
|
* 1. Fetches blob access info from the attachment using AttachmentService
|
|
@@ -11634,6 +12013,43 @@ class JobService extends FolderScopedService {
|
|
|
11634
12013
|
throw new ServerError({ message: 'Failed to parse job output file as JSON' });
|
|
11635
12014
|
}
|
|
11636
12015
|
}
|
|
12016
|
+
/**
|
|
12017
|
+
* Resolves job UUID keys to integer IDs via the getAll method.
|
|
12018
|
+
* Chunks keys into batches to avoid URL length limits.
|
|
12019
|
+
*/
|
|
12020
|
+
async resolveJobKeys(jobKeys, folderId) {
|
|
12021
|
+
const uniqueKeys = [...new Set(jobKeys)];
|
|
12022
|
+
const keyToIdMap = new Map();
|
|
12023
|
+
const chunks = [];
|
|
12024
|
+
for (let i = 0; i < uniqueKeys.length; i += JOB_KEY_RESOLUTION_CHUNK_SIZE) {
|
|
12025
|
+
chunks.push(uniqueKeys.slice(i, i + JOB_KEY_RESOLUTION_CHUNK_SIZE));
|
|
12026
|
+
}
|
|
12027
|
+
const results = await Promise.all(chunks.map((chunk) => {
|
|
12028
|
+
const filterValues = chunk.map((key) => `'${key}'`).join(',');
|
|
12029
|
+
return this.getAll({
|
|
12030
|
+
folderId,
|
|
12031
|
+
filter: `key in (${filterValues})`,
|
|
12032
|
+
select: 'id,key',
|
|
12033
|
+
pageSize: chunk.length,
|
|
12034
|
+
});
|
|
12035
|
+
}));
|
|
12036
|
+
for (const response of results) {
|
|
12037
|
+
for (const job of response.items) {
|
|
12038
|
+
keyToIdMap.set(job.key, job.id);
|
|
12039
|
+
}
|
|
12040
|
+
}
|
|
12041
|
+
const missingKeys = uniqueKeys.filter((key) => !keyToIdMap.has(key));
|
|
12042
|
+
if (missingKeys.length > 0) {
|
|
12043
|
+
throw new ValidationError({ message: `Jobs not found for keys: ${missingKeys.join(', ')}` });
|
|
12044
|
+
}
|
|
12045
|
+
return uniqueKeys.map((key) => keyToIdMap.get(key));
|
|
12046
|
+
}
|
|
12047
|
+
/**
|
|
12048
|
+
* Calls the StopJobs OData action with resolved integer IDs.
|
|
12049
|
+
*/
|
|
12050
|
+
async stopJobsByIds(jobIds, strategy, headers) {
|
|
12051
|
+
await this.post(JOB_ENDPOINTS.STOP, { jobIds, strategy }, { headers });
|
|
12052
|
+
}
|
|
11637
12053
|
}
|
|
11638
12054
|
__decorate([
|
|
11639
12055
|
track('Jobs.GetAll')
|
|
@@ -11644,6 +12060,15 @@ __decorate([
|
|
|
11644
12060
|
__decorate([
|
|
11645
12061
|
track('Jobs.GetOutput')
|
|
11646
12062
|
], JobService.prototype, "getOutput", null);
|
|
12063
|
+
__decorate([
|
|
12064
|
+
track('Jobs.Stop')
|
|
12065
|
+
], JobService.prototype, "stop", null);
|
|
12066
|
+
__decorate([
|
|
12067
|
+
track('Jobs.Resume')
|
|
12068
|
+
], JobService.prototype, "resume", null);
|
|
12069
|
+
__decorate([
|
|
12070
|
+
track('Jobs.Restart')
|
|
12071
|
+
], JobService.prototype, "restart", null);
|
|
11647
12072
|
|
|
11648
12073
|
/**
|
|
11649
12074
|
* Enum for job sub-state
|
|
@@ -11854,182 +12279,6 @@ __decorate([
|
|
|
11854
12279
|
track('Processes.GetById')
|
|
11855
12280
|
], ProcessService.prototype, "getById", null);
|
|
11856
12281
|
|
|
11857
|
-
/**
|
|
11858
|
-
* Enum for package types
|
|
11859
|
-
*/
|
|
11860
|
-
var PackageType;
|
|
11861
|
-
(function (PackageType) {
|
|
11862
|
-
PackageType["Undefined"] = "Undefined";
|
|
11863
|
-
PackageType["Process"] = "Process";
|
|
11864
|
-
PackageType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11865
|
-
PackageType["WebApp"] = "WebApp";
|
|
11866
|
-
PackageType["Agent"] = "Agent";
|
|
11867
|
-
PackageType["TestAutomationProcess"] = "TestAutomationProcess";
|
|
11868
|
-
PackageType["Api"] = "Api";
|
|
11869
|
-
PackageType["MCPServer"] = "MCPServer";
|
|
11870
|
-
PackageType["BusinessRules"] = "BusinessRules";
|
|
11871
|
-
PackageType["CaseManagement"] = "CaseManagement";
|
|
11872
|
-
PackageType["Flow"] = "Flow";
|
|
11873
|
-
PackageType["Function"] = "Function";
|
|
11874
|
-
})(PackageType || (PackageType = {}));
|
|
11875
|
-
/**
|
|
11876
|
-
* Enum for job priority
|
|
11877
|
-
*/
|
|
11878
|
-
var JobPriority;
|
|
11879
|
-
(function (JobPriority) {
|
|
11880
|
-
JobPriority["Low"] = "Low";
|
|
11881
|
-
JobPriority["Normal"] = "Normal";
|
|
11882
|
-
JobPriority["High"] = "High";
|
|
11883
|
-
})(JobPriority || (JobPriority = {}));
|
|
11884
|
-
/**
|
|
11885
|
-
* Enum for target framework
|
|
11886
|
-
*/
|
|
11887
|
-
var TargetFramework;
|
|
11888
|
-
(function (TargetFramework) {
|
|
11889
|
-
TargetFramework["Legacy"] = "Legacy";
|
|
11890
|
-
TargetFramework["Windows"] = "Windows";
|
|
11891
|
-
TargetFramework["Portable"] = "Portable";
|
|
11892
|
-
})(TargetFramework || (TargetFramework = {}));
|
|
11893
|
-
/**
|
|
11894
|
-
* Enum for robot size
|
|
11895
|
-
*/
|
|
11896
|
-
var RobotSize;
|
|
11897
|
-
(function (RobotSize) {
|
|
11898
|
-
RobotSize["Small"] = "Small";
|
|
11899
|
-
RobotSize["Standard"] = "Standard";
|
|
11900
|
-
RobotSize["Medium"] = "Medium";
|
|
11901
|
-
RobotSize["Large"] = "Large";
|
|
11902
|
-
})(RobotSize || (RobotSize = {}));
|
|
11903
|
-
/**
|
|
11904
|
-
* Enum for remote control access
|
|
11905
|
-
*/
|
|
11906
|
-
var RemoteControlAccess;
|
|
11907
|
-
(function (RemoteControlAccess) {
|
|
11908
|
-
RemoteControlAccess["None"] = "None";
|
|
11909
|
-
RemoteControlAccess["ReadOnly"] = "ReadOnly";
|
|
11910
|
-
RemoteControlAccess["Full"] = "Full";
|
|
11911
|
-
})(RemoteControlAccess || (RemoteControlAccess = {}));
|
|
11912
|
-
/**
|
|
11913
|
-
* Enum for process start strategy
|
|
11914
|
-
*/
|
|
11915
|
-
var StartStrategy;
|
|
11916
|
-
(function (StartStrategy) {
|
|
11917
|
-
StartStrategy["All"] = "All";
|
|
11918
|
-
StartStrategy["Specific"] = "Specific";
|
|
11919
|
-
StartStrategy["RobotCount"] = "RobotCount";
|
|
11920
|
-
StartStrategy["JobsCount"] = "JobsCount";
|
|
11921
|
-
StartStrategy["ModernJobsCount"] = "ModernJobsCount";
|
|
11922
|
-
})(StartStrategy || (StartStrategy = {}));
|
|
11923
|
-
/**
|
|
11924
|
-
* Enum for package source type
|
|
11925
|
-
*/
|
|
11926
|
-
var PackageSourceType;
|
|
11927
|
-
(function (PackageSourceType) {
|
|
11928
|
-
PackageSourceType["Manual"] = "Manual";
|
|
11929
|
-
PackageSourceType["Schedule"] = "Schedule";
|
|
11930
|
-
PackageSourceType["Queue"] = "Queue";
|
|
11931
|
-
PackageSourceType["StudioWeb"] = "StudioWeb";
|
|
11932
|
-
PackageSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
11933
|
-
PackageSourceType["StudioDesktop"] = "StudioDesktop";
|
|
11934
|
-
PackageSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
11935
|
-
PackageSourceType["Apps"] = "Apps";
|
|
11936
|
-
PackageSourceType["SAP"] = "SAP";
|
|
11937
|
-
PackageSourceType["HttpTrigger"] = "HttpTrigger";
|
|
11938
|
-
PackageSourceType["HttpTriggerWithCallback"] = "HttpTriggerWithCallback";
|
|
11939
|
-
PackageSourceType["RobotAPI"] = "RobotAPI";
|
|
11940
|
-
PackageSourceType["Assistant"] = "Assistant";
|
|
11941
|
-
PackageSourceType["CommandLine"] = "CommandLine";
|
|
11942
|
-
PackageSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
11943
|
-
PackageSourceType["Autopilot"] = "Autopilot";
|
|
11944
|
-
PackageSourceType["TestManager"] = "TestManager";
|
|
11945
|
-
PackageSourceType["AgentService"] = "AgentService";
|
|
11946
|
-
PackageSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11947
|
-
PackageSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
11948
|
-
PackageSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
11949
|
-
PackageSourceType["AgentHub"] = "AgentHub";
|
|
11950
|
-
PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11951
|
-
})(PackageSourceType || (PackageSourceType = {}));
|
|
11952
|
-
/**
|
|
11953
|
-
* Enum for job source type
|
|
11954
|
-
*/
|
|
11955
|
-
var JobSourceType;
|
|
11956
|
-
(function (JobSourceType) {
|
|
11957
|
-
JobSourceType["Manual"] = "Manual";
|
|
11958
|
-
JobSourceType["Schedule"] = "Schedule";
|
|
11959
|
-
JobSourceType["Agent"] = "Agent";
|
|
11960
|
-
JobSourceType["Queue"] = "Queue";
|
|
11961
|
-
JobSourceType["StudioWeb"] = "StudioWeb";
|
|
11962
|
-
JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
11963
|
-
JobSourceType["StudioDesktop"] = "StudioDesktop";
|
|
11964
|
-
JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
11965
|
-
JobSourceType["Apps"] = "Apps";
|
|
11966
|
-
JobSourceType["SAP"] = "SAP";
|
|
11967
|
-
JobSourceType["HttpTrigger"] = "HttpTrigger";
|
|
11968
|
-
JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
11969
|
-
JobSourceType["RobotAPI"] = "RobotAPI";
|
|
11970
|
-
JobSourceType["CommandLine"] = "CommandLine";
|
|
11971
|
-
JobSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
11972
|
-
JobSourceType["Autopilot"] = "Autopilot";
|
|
11973
|
-
JobSourceType["TestManager"] = "TestManager";
|
|
11974
|
-
JobSourceType["AgentService"] = "AgentService";
|
|
11975
|
-
JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11976
|
-
JobSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
11977
|
-
JobSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
11978
|
-
JobSourceType["AgentHub"] = "AgentHub";
|
|
11979
|
-
JobSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11980
|
-
JobSourceType["CaseManagement"] = "CaseManagement";
|
|
11981
|
-
})(JobSourceType || (JobSourceType = {}));
|
|
11982
|
-
/**
|
|
11983
|
-
* Enum for stop strategy
|
|
11984
|
-
*/
|
|
11985
|
-
var StopStrategy;
|
|
11986
|
-
(function (StopStrategy) {
|
|
11987
|
-
StopStrategy["SoftStop"] = "SoftStop";
|
|
11988
|
-
StopStrategy["Kill"] = "Kill";
|
|
11989
|
-
})(StopStrategy || (StopStrategy = {}));
|
|
11990
|
-
/**
|
|
11991
|
-
* Enum for runtime type
|
|
11992
|
-
*/
|
|
11993
|
-
var RuntimeType;
|
|
11994
|
-
(function (RuntimeType) {
|
|
11995
|
-
RuntimeType["NonProduction"] = "NonProduction";
|
|
11996
|
-
RuntimeType["Attended"] = "Attended";
|
|
11997
|
-
RuntimeType["Unattended"] = "Unattended";
|
|
11998
|
-
RuntimeType["Development"] = "Development";
|
|
11999
|
-
RuntimeType["Studio"] = "Studio";
|
|
12000
|
-
RuntimeType["RpaDeveloper"] = "RpaDeveloper";
|
|
12001
|
-
RuntimeType["StudioX"] = "StudioX";
|
|
12002
|
-
RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
|
|
12003
|
-
RuntimeType["Headless"] = "Headless";
|
|
12004
|
-
RuntimeType["StudioPro"] = "StudioPro";
|
|
12005
|
-
RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
12006
|
-
RuntimeType["TestAutomation"] = "TestAutomation";
|
|
12007
|
-
RuntimeType["AutomationCloud"] = "AutomationCloud";
|
|
12008
|
-
RuntimeType["Serverless"] = "Serverless";
|
|
12009
|
-
RuntimeType["AutomationKit"] = "AutomationKit";
|
|
12010
|
-
RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
12011
|
-
RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
12012
|
-
RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
12013
|
-
RuntimeType["Hosting"] = "Hosting";
|
|
12014
|
-
RuntimeType["AssistantWeb"] = "AssistantWeb";
|
|
12015
|
-
RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
12016
|
-
RuntimeType["AgentService"] = "AgentService";
|
|
12017
|
-
RuntimeType["AppTest"] = "AppTest";
|
|
12018
|
-
RuntimeType["PerformanceTest"] = "PerformanceTest";
|
|
12019
|
-
RuntimeType["BusinessRule"] = "BusinessRule";
|
|
12020
|
-
RuntimeType["CaseManagement"] = "CaseManagement";
|
|
12021
|
-
RuntimeType["Flow"] = "Flow";
|
|
12022
|
-
})(RuntimeType || (RuntimeType = {}));
|
|
12023
|
-
/**
|
|
12024
|
-
* Enum for job type
|
|
12025
|
-
*/
|
|
12026
|
-
var JobType;
|
|
12027
|
-
(function (JobType) {
|
|
12028
|
-
JobType["Unattended"] = "Unattended";
|
|
12029
|
-
JobType["Attended"] = "Attended";
|
|
12030
|
-
JobType["ServerlessGeneric"] = "ServerlessGeneric";
|
|
12031
|
-
})(JobType || (JobType = {}));
|
|
12032
|
-
|
|
12033
12282
|
/**
|
|
12034
12283
|
* Maps fields for Queue entities to ensure consistent naming
|
|
12035
12284
|
*/
|
|
@@ -12515,6 +12764,19 @@ const UserSettingsMap = {
|
|
|
12515
12764
|
...CommonFieldMap
|
|
12516
12765
|
};
|
|
12517
12766
|
|
|
12767
|
+
/**
|
|
12768
|
+
* Status of a feedback entry in the review workflow
|
|
12769
|
+
*/
|
|
12770
|
+
var FeedbackStatus;
|
|
12771
|
+
(function (FeedbackStatus) {
|
|
12772
|
+
/** Feedback is awaiting review */
|
|
12773
|
+
FeedbackStatus[FeedbackStatus["Pending"] = 0] = "Pending";
|
|
12774
|
+
/** Feedback has been approved and confirmed */
|
|
12775
|
+
FeedbackStatus[FeedbackStatus["Approved"] = 1] = "Approved";
|
|
12776
|
+
/** Feedback has been dismissed */
|
|
12777
|
+
FeedbackStatus[FeedbackStatus["Dismissed"] = 2] = "Dismissed";
|
|
12778
|
+
})(FeedbackStatus || (FeedbackStatus = {}));
|
|
12779
|
+
|
|
12518
12780
|
/**
|
|
12519
12781
|
* Asset resolution utilities for UiPath Coded Apps
|
|
12520
12782
|
*
|
|
@@ -12590,4 +12852,4 @@ function getAppBase() {
|
|
|
12590
12852
|
return getMetaTagContent(UiPathMetaTags.APP_BASE) || '/';
|
|
12591
12853
|
}
|
|
12592
12854
|
|
|
12593
|
-
export { APP_NAME, AgentMap, AssetValueScope, AssetValueType, AuthenticationError, AuthorizationError, BucketOptions, CLOUD_CLIENT_ID, CLOUD_ORGANIZATION_NAME, CLOUD_REDIRECT_URI, CLOUD_ROLE_NAME, CLOUD_TENANT_NAME, CLOUD_URL, CONNECTION_STRING, CitationErrorType, ConversationMap, DEFAULT_ITEMS_FIELD, DEFAULT_PAGE_SIZE, DEFAULT_TOTAL_COUNT_FIELD, DataDirectionType, DebugMode, EntityFieldDataType, EntityType, ErrorType, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, ExchangeMap, FeedbackRating, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InterruptType, JobPriority, JobSourceType, JobState, JobSubState, JobType, JoinType, LogicalOperator, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, QueryFilterOperator, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, RuntimeType, SDK_LOGGER_NAME, SDK_RUN_EVENT, SDK_SERVICE_NAME, SDK_VERSION, SERVICE, SLADurationUnit, ServerError, ServerlessJobType, SortOrder, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, UNKNOWN$1 as UNKNOWN, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, VERSION, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createConversationWithMethods, createEntityWithMethods, createJobWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|
|
12855
|
+
export { APP_NAME, AgentMap, AssetValueScope, AssetValueType, AuthenticationError, AuthorizationError, BucketOptions, CLOUD_CLIENT_ID, CLOUD_ORGANIZATION_NAME, CLOUD_REDIRECT_URI, CLOUD_ROLE_NAME, CLOUD_TENANT_NAME, CLOUD_URL, CONNECTION_STRING, CitationErrorType, ConversationMap, DEFAULT_ITEMS_FIELD, DEFAULT_PAGE_SIZE, DEFAULT_TOTAL_COUNT_FIELD, DataDirectionType, DebugMode, EntityFieldDataType, EntityType, ErrorType, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, ExchangeMap, FeedbackRating, FeedbackStatus, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InterruptType, JobPriority, JobSourceType, JobState, JobSubState, JobType, JoinType, LogicalOperator, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, QueryFilterOperator, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, RuntimeType, SDK_LOGGER_NAME, SDK_RUN_EVENT, SDK_SERVICE_NAME, SDK_VERSION, SERVICE, SLADurationUnit, ServerError, ServerlessJobType, SortOrder, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, TaskUserType, UNKNOWN$1 as UNKNOWN, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, VERSION, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createConversationWithMethods, createEntityWithMethods, createJobWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|