@uipath/uipath-typescript 1.2.1 → 1.2.2
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 +1 -1
- package/dist/assets/index.d.ts +2 -1
- package/dist/assets/index.mjs +1 -1
- package/dist/attachments/index.cjs +1944 -0
- package/dist/attachments/index.d.ts +399 -0
- package/dist/attachments/index.mjs +1941 -0
- package/dist/buckets/index.cjs +1 -1
- package/dist/buckets/index.d.ts +4 -2
- package/dist/buckets/index.mjs +1 -1
- package/dist/cases/index.cjs +95 -48
- package/dist/cases/index.d.ts +31 -2
- package/dist/cases/index.mjs +95 -48
- package/dist/conversational-agent/index.cjs +1 -1
- package/dist/conversational-agent/index.d.ts +10 -5
- package/dist/conversational-agent/index.mjs +1 -1
- package/dist/core/index.cjs +109 -17
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +109 -17
- package/dist/entities/index.cjs +1 -1
- package/dist/entities/index.d.ts +33 -21
- package/dist/entities/index.mjs +1 -1
- package/dist/index.cjs +569 -307
- package/dist/index.d.ts +468 -70
- package/dist/index.mjs +570 -308
- package/dist/index.umd.js +566 -304
- package/dist/jobs/index.cjs +2036 -0
- package/dist/jobs/index.d.ts +724 -0
- package/dist/jobs/index.mjs +2033 -0
- package/dist/maestro-processes/index.cjs +1 -1
- package/dist/maestro-processes/index.mjs +1 -1
- package/dist/processes/index.cjs +67 -1
- package/dist/processes/index.d.ts +80 -15
- package/dist/processes/index.mjs +68 -2
- package/dist/queues/index.cjs +1 -1
- package/dist/queues/index.d.ts +2 -1
- package/dist/queues/index.mjs +1 -1
- package/dist/tasks/index.cjs +1319 -1272
- package/dist/tasks/index.d.ts +331 -287
- package/dist/tasks/index.mjs +1319 -1272
- package/package.json +23 -2
package/dist/index.mjs
CHANGED
|
@@ -4385,6 +4385,234 @@ function getErrorDetails(error) {
|
|
|
4385
4385
|
};
|
|
4386
4386
|
}
|
|
4387
4387
|
|
|
4388
|
+
/**
|
|
4389
|
+
* Types of tasks available in Action Center.
|
|
4390
|
+
* Each type determines the task's behavior, UI rendering, and completion requirements.
|
|
4391
|
+
*/
|
|
4392
|
+
var TaskType;
|
|
4393
|
+
(function (TaskType) {
|
|
4394
|
+
/** A form-based task that renders a UiPath form layout for user input */
|
|
4395
|
+
TaskType["Form"] = "FormTask";
|
|
4396
|
+
/** An externally managed task handled outside of Action Center */
|
|
4397
|
+
TaskType["External"] = "ExternalTask";
|
|
4398
|
+
/** A task powered by a UiPath App */
|
|
4399
|
+
TaskType["App"] = "AppTask";
|
|
4400
|
+
/** A document validation task for reviewing and correcting extracted document data */
|
|
4401
|
+
TaskType["DocumentValidation"] = "DocumentValidationTask";
|
|
4402
|
+
/** A document classification task for categorizing documents */
|
|
4403
|
+
TaskType["DocumentClassification"] = "DocumentClassificationTask";
|
|
4404
|
+
/** A data labeling task for annotating training data */
|
|
4405
|
+
TaskType["DataLabeling"] = "DataLabelingTask";
|
|
4406
|
+
})(TaskType || (TaskType = {}));
|
|
4407
|
+
var TaskPriority;
|
|
4408
|
+
(function (TaskPriority) {
|
|
4409
|
+
TaskPriority["Low"] = "Low";
|
|
4410
|
+
TaskPriority["Medium"] = "Medium";
|
|
4411
|
+
TaskPriority["High"] = "High";
|
|
4412
|
+
TaskPriority["Critical"] = "Critical";
|
|
4413
|
+
})(TaskPriority || (TaskPriority = {}));
|
|
4414
|
+
var TaskStatus;
|
|
4415
|
+
(function (TaskStatus) {
|
|
4416
|
+
TaskStatus["Unassigned"] = "Unassigned";
|
|
4417
|
+
TaskStatus["Pending"] = "Pending";
|
|
4418
|
+
TaskStatus["Completed"] = "Completed";
|
|
4419
|
+
})(TaskStatus || (TaskStatus = {}));
|
|
4420
|
+
var TaskSlaCriteria;
|
|
4421
|
+
(function (TaskSlaCriteria) {
|
|
4422
|
+
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
4423
|
+
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
4424
|
+
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
4425
|
+
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
4426
|
+
var TaskSlaStatus;
|
|
4427
|
+
(function (TaskSlaStatus) {
|
|
4428
|
+
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
4429
|
+
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
4430
|
+
TaskSlaStatus["Overdue"] = "Overdue";
|
|
4431
|
+
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
4432
|
+
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
4433
|
+
var TaskSourceName;
|
|
4434
|
+
(function (TaskSourceName) {
|
|
4435
|
+
TaskSourceName["Agent"] = "Agent";
|
|
4436
|
+
TaskSourceName["Workflow"] = "Workflow";
|
|
4437
|
+
TaskSourceName["Maestro"] = "Maestro";
|
|
4438
|
+
TaskSourceName["Default"] = "Default";
|
|
4439
|
+
})(TaskSourceName || (TaskSourceName = {}));
|
|
4440
|
+
/**
|
|
4441
|
+
* Task activity types
|
|
4442
|
+
*/
|
|
4443
|
+
var TaskActivityType;
|
|
4444
|
+
(function (TaskActivityType) {
|
|
4445
|
+
TaskActivityType["Created"] = "Created";
|
|
4446
|
+
TaskActivityType["Assigned"] = "Assigned";
|
|
4447
|
+
TaskActivityType["Reassigned"] = "Reassigned";
|
|
4448
|
+
TaskActivityType["Unassigned"] = "Unassigned";
|
|
4449
|
+
TaskActivityType["Saved"] = "Saved";
|
|
4450
|
+
TaskActivityType["Forwarded"] = "Forwarded";
|
|
4451
|
+
TaskActivityType["Completed"] = "Completed";
|
|
4452
|
+
TaskActivityType["Commented"] = "Commented";
|
|
4453
|
+
TaskActivityType["Deleted"] = "Deleted";
|
|
4454
|
+
TaskActivityType["BulkSaved"] = "BulkSaved";
|
|
4455
|
+
TaskActivityType["BulkCompleted"] = "BulkCompleted";
|
|
4456
|
+
TaskActivityType["FirstOpened"] = "FirstOpened";
|
|
4457
|
+
})(TaskActivityType || (TaskActivityType = {}));
|
|
4458
|
+
|
|
4459
|
+
/**
|
|
4460
|
+
* Base path constants for different services
|
|
4461
|
+
*/
|
|
4462
|
+
const ORCHESTRATOR_BASE = 'orchestrator_';
|
|
4463
|
+
const PIMS_BASE = 'pims_';
|
|
4464
|
+
const DATAFABRIC_BASE = 'datafabric_';
|
|
4465
|
+
const IDENTITY_BASE = 'identity_';
|
|
4466
|
+
|
|
4467
|
+
/**
|
|
4468
|
+
* Orchestrator Service Endpoints
|
|
4469
|
+
*/
|
|
4470
|
+
/**
|
|
4471
|
+
* Task Service (Action Center) Endpoints
|
|
4472
|
+
*/
|
|
4473
|
+
const TASK_ENDPOINTS = {
|
|
4474
|
+
CREATE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CreateTask`,
|
|
4475
|
+
GET_TASK_USERS: (folderId) => `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
|
|
4476
|
+
GET_TASKS_ACROSS_FOLDERS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders`,
|
|
4477
|
+
GET_TASKS_ACROSS_FOLDERS_ADMIN: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFoldersForAdmin`,
|
|
4478
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Tasks(${id})`,
|
|
4479
|
+
ASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks`,
|
|
4480
|
+
REASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks`,
|
|
4481
|
+
UNASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks`,
|
|
4482
|
+
COMPLETE_FORM_TASK: `${ORCHESTRATOR_BASE}/forms/TaskForms/CompleteTask`,
|
|
4483
|
+
COMPLETE_APP_TASK: `${ORCHESTRATOR_BASE}/tasks/AppTasks/CompleteAppTask`,
|
|
4484
|
+
COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
|
|
4485
|
+
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
4486
|
+
GET_GENERIC_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/GetTaskDataById`,
|
|
4487
|
+
GET_APP_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/AppTasks/GetAppTaskById`,
|
|
4488
|
+
};
|
|
4489
|
+
/**
|
|
4490
|
+
* Orchestrator Bucket Endpoints
|
|
4491
|
+
*/
|
|
4492
|
+
const BUCKET_ENDPOINTS = {
|
|
4493
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
|
|
4494
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders`,
|
|
4495
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})`,
|
|
4496
|
+
GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
|
|
4497
|
+
GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
4498
|
+
GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`,
|
|
4499
|
+
};
|
|
4500
|
+
/**
|
|
4501
|
+
* Orchestrator Process Service Endpoints
|
|
4502
|
+
*/
|
|
4503
|
+
const PROCESS_ENDPOINTS = {
|
|
4504
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Releases`,
|
|
4505
|
+
START_PROCESS: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`,
|
|
4506
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Releases(${id})`,
|
|
4507
|
+
};
|
|
4508
|
+
/**
|
|
4509
|
+
* Orchestrator Queue Service Endpoints
|
|
4510
|
+
*/
|
|
4511
|
+
const QUEUE_ENDPOINTS = {
|
|
4512
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions`,
|
|
4513
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders`,
|
|
4514
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/QueueDefinitions(${id})`,
|
|
4515
|
+
};
|
|
4516
|
+
/**
|
|
4517
|
+
* Orchestrator Job Service Endpoints
|
|
4518
|
+
*/
|
|
4519
|
+
const JOB_ENDPOINTS = {
|
|
4520
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Jobs`,
|
|
4521
|
+
};
|
|
4522
|
+
/**
|
|
4523
|
+
* Orchestrator Asset Service Endpoints
|
|
4524
|
+
*/
|
|
4525
|
+
const ASSET_ENDPOINTS = {
|
|
4526
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
4527
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
|
|
4528
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`,
|
|
4529
|
+
};
|
|
4530
|
+
/**
|
|
4531
|
+
* Orchestrator Attachment Service Endpoints
|
|
4532
|
+
*/
|
|
4533
|
+
const ORCHESTRATOR_ATTACHMENT_ENDPOINTS = {
|
|
4534
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Attachments(${id})`,
|
|
4535
|
+
};
|
|
4536
|
+
|
|
4537
|
+
/**
|
|
4538
|
+
* Maestro Service Endpoints
|
|
4539
|
+
*/
|
|
4540
|
+
/**
|
|
4541
|
+
* Maestro Process Service Endpoints
|
|
4542
|
+
*/
|
|
4543
|
+
const MAESTRO_ENDPOINTS = {
|
|
4544
|
+
PROCESSES: {
|
|
4545
|
+
GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
|
|
4546
|
+
GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`,
|
|
4547
|
+
},
|
|
4548
|
+
INSTANCES: {
|
|
4549
|
+
GET_ALL: `${PIMS_BASE}/api/v1/instances`,
|
|
4550
|
+
GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
|
|
4551
|
+
GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
|
|
4552
|
+
GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
|
|
4553
|
+
GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
|
|
4554
|
+
CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
|
|
4555
|
+
PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
|
|
4556
|
+
RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`,
|
|
4557
|
+
},
|
|
4558
|
+
INCIDENTS: {
|
|
4559
|
+
GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
|
|
4560
|
+
GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
|
|
4561
|
+
GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`,
|
|
4562
|
+
},
|
|
4563
|
+
CASES: {
|
|
4564
|
+
GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
|
|
4565
|
+
GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
|
|
4566
|
+
REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`,
|
|
4567
|
+
},
|
|
4568
|
+
};
|
|
4569
|
+
|
|
4570
|
+
/**
|
|
4571
|
+
* Data Fabric Service Endpoints
|
|
4572
|
+
*/
|
|
4573
|
+
/**
|
|
4574
|
+
* Data Fabric Entity Service Endpoints
|
|
4575
|
+
*/
|
|
4576
|
+
const DATA_FABRIC_ENDPOINTS = {
|
|
4577
|
+
ENTITY: {
|
|
4578
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
|
|
4579
|
+
GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
|
|
4580
|
+
GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
4581
|
+
GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
|
|
4582
|
+
INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
|
|
4583
|
+
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
4584
|
+
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
4585
|
+
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
4586
|
+
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
4587
|
+
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4588
|
+
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4589
|
+
DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4590
|
+
},
|
|
4591
|
+
CHOICESETS: {
|
|
4592
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
4593
|
+
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`,
|
|
4594
|
+
},
|
|
4595
|
+
};
|
|
4596
|
+
|
|
4597
|
+
/**
|
|
4598
|
+
* Identity/Authentication Endpoints
|
|
4599
|
+
*/
|
|
4600
|
+
/**
|
|
4601
|
+
* Identity Service Endpoints
|
|
4602
|
+
*/
|
|
4603
|
+
const IDENTITY_ENDPOINTS = {
|
|
4604
|
+
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4605
|
+
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4606
|
+
};
|
|
4607
|
+
|
|
4608
|
+
const TASK_TYPE_ENDPOINTS = {
|
|
4609
|
+
[TaskType.Form]: TASK_ENDPOINTS.GET_TASK_FORM_BY_ID,
|
|
4610
|
+
[TaskType.App]: TASK_ENDPOINTS.GET_APP_TASK_BY_ID,
|
|
4611
|
+
[TaskType.DocumentValidation]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4612
|
+
[TaskType.DocumentClassification]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4613
|
+
[TaskType.External]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4614
|
+
[TaskType.DataLabeling]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4615
|
+
};
|
|
4388
4616
|
var ActionCenterEventNames;
|
|
4389
4617
|
(function (ActionCenterEventNames) {
|
|
4390
4618
|
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
@@ -4692,210 +4920,75 @@ class TokenManager {
|
|
|
4692
4920
|
* Updates execution context with token information
|
|
4693
4921
|
*/
|
|
4694
4922
|
_updateExecutionContext(tokenInfo) {
|
|
4695
|
-
this.executionContext.set('tokenInfo', tokenInfo);
|
|
4696
|
-
}
|
|
4697
|
-
/**
|
|
4698
|
-
* Refreshes the access token using the stored refresh token.
|
|
4699
|
-
* This method only works for OAuth flow.
|
|
4700
|
-
* Uses a lock mechanism to prevent multiple simultaneous refreshes.
|
|
4701
|
-
* @returns A promise that resolves to the new AuthToken
|
|
4702
|
-
* @throws Error if not in OAuth flow, refresh token is missing, or the request fails
|
|
4703
|
-
*/
|
|
4704
|
-
async refreshAccessToken() {
|
|
4705
|
-
// If there's already a refresh in progress, return that promise
|
|
4706
|
-
if (this.refreshPromise) {
|
|
4707
|
-
return this.refreshPromise;
|
|
4708
|
-
}
|
|
4709
|
-
try {
|
|
4710
|
-
// Create new refresh promise
|
|
4711
|
-
this.refreshPromise = this._doRefreshToken();
|
|
4712
|
-
// Wait for refresh to complete
|
|
4713
|
-
const result = await this.refreshPromise;
|
|
4714
|
-
return result;
|
|
4715
|
-
}
|
|
4716
|
-
finally {
|
|
4717
|
-
// Clear the refresh promise when done (success or failure)
|
|
4718
|
-
this.refreshPromise = null;
|
|
4719
|
-
}
|
|
4720
|
-
}
|
|
4721
|
-
/**
|
|
4722
|
-
* Internal method to perform the actual token refresh
|
|
4723
|
-
*/
|
|
4724
|
-
async _doRefreshToken() {
|
|
4725
|
-
// Check if we're in OAuth flow
|
|
4726
|
-
if (!hasOAuthConfig(this.config)) {
|
|
4727
|
-
throw new Error('refreshAccessToken is only available in OAuth flow');
|
|
4728
|
-
}
|
|
4729
|
-
// Get current token info from token manager
|
|
4730
|
-
const tokenInfo = this.getTokenInfo();
|
|
4731
|
-
if (!tokenInfo?.refreshToken) {
|
|
4732
|
-
throw new Error('No refresh token available. User may need to re-authenticate.');
|
|
4733
|
-
}
|
|
4734
|
-
const orgName = this.config.orgName;
|
|
4735
|
-
const body = new URLSearchParams({
|
|
4736
|
-
grant_type: 'refresh_token',
|
|
4737
|
-
client_id: this.config.clientId,
|
|
4738
|
-
refresh_token: tokenInfo.refreshToken
|
|
4739
|
-
});
|
|
4740
|
-
const response = await fetch(`${this.config.baseUrl}/${orgName}/identity_/connect/token`, {
|
|
4741
|
-
method: 'POST',
|
|
4742
|
-
headers: {
|
|
4743
|
-
'Content-Type': 'application/x-www-form-urlencoded'
|
|
4744
|
-
},
|
|
4745
|
-
body: body.toString()
|
|
4746
|
-
});
|
|
4747
|
-
if (!response.ok) {
|
|
4748
|
-
const errorData = await response.json().catch(() => ({ message: response.statusText }));
|
|
4749
|
-
console.error("Token refresh error:", errorData);
|
|
4750
|
-
// Clear the invalid token to prevent further failed requests
|
|
4751
|
-
this.clearToken();
|
|
4752
|
-
throw new Error(`Failed to refresh access token: ${JSON.stringify(errorData)}`);
|
|
4753
|
-
}
|
|
4754
|
-
const token = await response.json();
|
|
4755
|
-
this.setToken({
|
|
4756
|
-
token: token.access_token,
|
|
4757
|
-
type: 'oauth',
|
|
4758
|
-
expiresAt: new Date(Date.now() + token.expires_in * 1000),
|
|
4759
|
-
refreshToken: token.refresh_token
|
|
4760
|
-
});
|
|
4761
|
-
return token;
|
|
4762
|
-
}
|
|
4763
|
-
}
|
|
4764
|
-
|
|
4765
|
-
/**
|
|
4766
|
-
* Base path constants for different services
|
|
4767
|
-
*/
|
|
4768
|
-
const ORCHESTRATOR_BASE = 'orchestrator_';
|
|
4769
|
-
const PIMS_BASE = 'pims_';
|
|
4770
|
-
const DATAFABRIC_BASE = 'datafabric_';
|
|
4771
|
-
const IDENTITY_BASE = 'identity_';
|
|
4772
|
-
|
|
4773
|
-
/**
|
|
4774
|
-
* Orchestrator Service Endpoints
|
|
4775
|
-
*/
|
|
4776
|
-
/**
|
|
4777
|
-
* Task Service (Action Center) Endpoints
|
|
4778
|
-
*/
|
|
4779
|
-
const TASK_ENDPOINTS = {
|
|
4780
|
-
CREATE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CreateTask`,
|
|
4781
|
-
GET_TASK_USERS: (folderId) => `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
|
|
4782
|
-
GET_TASKS_ACROSS_FOLDERS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders`,
|
|
4783
|
-
GET_TASKS_ACROSS_FOLDERS_ADMIN: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFoldersForAdmin`,
|
|
4784
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Tasks(${id})`,
|
|
4785
|
-
ASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks`,
|
|
4786
|
-
REASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks`,
|
|
4787
|
-
UNASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks`,
|
|
4788
|
-
COMPLETE_FORM_TASK: `${ORCHESTRATOR_BASE}/forms/TaskForms/CompleteTask`,
|
|
4789
|
-
COMPLETE_APP_TASK: `${ORCHESTRATOR_BASE}/tasks/AppTasks/CompleteAppTask`,
|
|
4790
|
-
COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
|
|
4791
|
-
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
4792
|
-
};
|
|
4793
|
-
/**
|
|
4794
|
-
* Orchestrator Bucket Endpoints
|
|
4795
|
-
*/
|
|
4796
|
-
const BUCKET_ENDPOINTS = {
|
|
4797
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
|
|
4798
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders`,
|
|
4799
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})`,
|
|
4800
|
-
GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
|
|
4801
|
-
GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
4802
|
-
GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`,
|
|
4803
|
-
};
|
|
4804
|
-
/**
|
|
4805
|
-
* Orchestrator Process Service Endpoints
|
|
4806
|
-
*/
|
|
4807
|
-
const PROCESS_ENDPOINTS = {
|
|
4808
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Releases`,
|
|
4809
|
-
START_PROCESS: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`,
|
|
4810
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Releases(${id})`,
|
|
4811
|
-
};
|
|
4812
|
-
/**
|
|
4813
|
-
* Orchestrator Queue Service Endpoints
|
|
4814
|
-
*/
|
|
4815
|
-
const QUEUE_ENDPOINTS = {
|
|
4816
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions`,
|
|
4817
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders`,
|
|
4818
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/QueueDefinitions(${id})`,
|
|
4819
|
-
};
|
|
4820
|
-
/**
|
|
4821
|
-
* Orchestrator Asset Service Endpoints
|
|
4822
|
-
*/
|
|
4823
|
-
const ASSET_ENDPOINTS = {
|
|
4824
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
4825
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
|
|
4826
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`,
|
|
4827
|
-
};
|
|
4828
|
-
|
|
4829
|
-
/**
|
|
4830
|
-
* Maestro Service Endpoints
|
|
4831
|
-
*/
|
|
4832
|
-
/**
|
|
4833
|
-
* Maestro Process Service Endpoints
|
|
4834
|
-
*/
|
|
4835
|
-
const MAESTRO_ENDPOINTS = {
|
|
4836
|
-
PROCESSES: {
|
|
4837
|
-
GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
|
|
4838
|
-
GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`,
|
|
4839
|
-
},
|
|
4840
|
-
INSTANCES: {
|
|
4841
|
-
GET_ALL: `${PIMS_BASE}/api/v1/instances`,
|
|
4842
|
-
GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
|
|
4843
|
-
GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
|
|
4844
|
-
GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
|
|
4845
|
-
GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
|
|
4846
|
-
CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
|
|
4847
|
-
PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
|
|
4848
|
-
RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`,
|
|
4849
|
-
},
|
|
4850
|
-
INCIDENTS: {
|
|
4851
|
-
GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
|
|
4852
|
-
GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
|
|
4853
|
-
GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`,
|
|
4854
|
-
},
|
|
4855
|
-
CASES: {
|
|
4856
|
-
GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
|
|
4857
|
-
GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
|
|
4858
|
-
REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`,
|
|
4859
|
-
},
|
|
4860
|
-
};
|
|
4861
|
-
|
|
4862
|
-
/**
|
|
4863
|
-
* Data Fabric Service Endpoints
|
|
4864
|
-
*/
|
|
4865
|
-
/**
|
|
4866
|
-
* Data Fabric Entity Service Endpoints
|
|
4867
|
-
*/
|
|
4868
|
-
const DATA_FABRIC_ENDPOINTS = {
|
|
4869
|
-
ENTITY: {
|
|
4870
|
-
GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
|
|
4871
|
-
GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
|
|
4872
|
-
GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
4873
|
-
GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
|
|
4874
|
-
INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
|
|
4875
|
-
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
4876
|
-
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
4877
|
-
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
4878
|
-
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
4879
|
-
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4880
|
-
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4881
|
-
DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4882
|
-
},
|
|
4883
|
-
CHOICESETS: {
|
|
4884
|
-
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
4885
|
-
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`,
|
|
4886
|
-
},
|
|
4887
|
-
};
|
|
4888
|
-
|
|
4889
|
-
/**
|
|
4890
|
-
* Identity/Authentication Endpoints
|
|
4891
|
-
*/
|
|
4892
|
-
/**
|
|
4893
|
-
* Identity Service Endpoints
|
|
4894
|
-
*/
|
|
4895
|
-
const IDENTITY_ENDPOINTS = {
|
|
4896
|
-
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4897
|
-
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4898
|
-
};
|
|
4923
|
+
this.executionContext.set('tokenInfo', tokenInfo);
|
|
4924
|
+
}
|
|
4925
|
+
/**
|
|
4926
|
+
* Refreshes the access token using the stored refresh token.
|
|
4927
|
+
* This method only works for OAuth flow.
|
|
4928
|
+
* Uses a lock mechanism to prevent multiple simultaneous refreshes.
|
|
4929
|
+
* @returns A promise that resolves to the new AuthToken
|
|
4930
|
+
* @throws Error if not in OAuth flow, refresh token is missing, or the request fails
|
|
4931
|
+
*/
|
|
4932
|
+
async refreshAccessToken() {
|
|
4933
|
+
// If there's already a refresh in progress, return that promise
|
|
4934
|
+
if (this.refreshPromise) {
|
|
4935
|
+
return this.refreshPromise;
|
|
4936
|
+
}
|
|
4937
|
+
try {
|
|
4938
|
+
// Create new refresh promise
|
|
4939
|
+
this.refreshPromise = this._doRefreshToken();
|
|
4940
|
+
// Wait for refresh to complete
|
|
4941
|
+
const result = await this.refreshPromise;
|
|
4942
|
+
return result;
|
|
4943
|
+
}
|
|
4944
|
+
finally {
|
|
4945
|
+
// Clear the refresh promise when done (success or failure)
|
|
4946
|
+
this.refreshPromise = null;
|
|
4947
|
+
}
|
|
4948
|
+
}
|
|
4949
|
+
/**
|
|
4950
|
+
* Internal method to perform the actual token refresh
|
|
4951
|
+
*/
|
|
4952
|
+
async _doRefreshToken() {
|
|
4953
|
+
// Check if we're in OAuth flow
|
|
4954
|
+
if (!hasOAuthConfig(this.config)) {
|
|
4955
|
+
throw new Error('refreshAccessToken is only available in OAuth flow');
|
|
4956
|
+
}
|
|
4957
|
+
// Get current token info from token manager
|
|
4958
|
+
const tokenInfo = this.getTokenInfo();
|
|
4959
|
+
if (!tokenInfo?.refreshToken) {
|
|
4960
|
+
throw new Error('No refresh token available. User may need to re-authenticate.');
|
|
4961
|
+
}
|
|
4962
|
+
const orgName = this.config.orgName;
|
|
4963
|
+
const body = new URLSearchParams({
|
|
4964
|
+
grant_type: 'refresh_token',
|
|
4965
|
+
client_id: this.config.clientId,
|
|
4966
|
+
refresh_token: tokenInfo.refreshToken
|
|
4967
|
+
});
|
|
4968
|
+
const response = await fetch(`${this.config.baseUrl}/${orgName}/identity_/connect/token`, {
|
|
4969
|
+
method: 'POST',
|
|
4970
|
+
headers: {
|
|
4971
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
4972
|
+
},
|
|
4973
|
+
body: body.toString()
|
|
4974
|
+
});
|
|
4975
|
+
if (!response.ok) {
|
|
4976
|
+
const errorData = await response.json().catch(() => ({ message: response.statusText }));
|
|
4977
|
+
console.error("Token refresh error:", errorData);
|
|
4978
|
+
// Clear the invalid token to prevent further failed requests
|
|
4979
|
+
this.clearToken();
|
|
4980
|
+
throw new Error(`Failed to refresh access token: ${JSON.stringify(errorData)}`);
|
|
4981
|
+
}
|
|
4982
|
+
const token = await response.json();
|
|
4983
|
+
this.setToken({
|
|
4984
|
+
token: token.access_token,
|
|
4985
|
+
type: 'oauth',
|
|
4986
|
+
expiresAt: new Date(Date.now() + token.expires_in * 1000),
|
|
4987
|
+
refreshToken: token.refresh_token
|
|
4988
|
+
});
|
|
4989
|
+
return token;
|
|
4990
|
+
}
|
|
4991
|
+
}
|
|
4899
4992
|
|
|
4900
4993
|
class AuthService {
|
|
4901
4994
|
constructor(config, executionContext) {
|
|
@@ -5324,7 +5417,7 @@ function normalizeBaseUrl(url) {
|
|
|
5324
5417
|
// Connection string placeholder that will be replaced during build
|
|
5325
5418
|
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";
|
|
5326
5419
|
// SDK Version placeholder
|
|
5327
|
-
const SDK_VERSION = "1.2.
|
|
5420
|
+
const SDK_VERSION = "1.2.2";
|
|
5328
5421
|
const VERSION = "Version";
|
|
5329
5422
|
const SERVICE = "Service";
|
|
5330
5423
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -9320,63 +9413,27 @@ const CASE_INSTANCE_TASK_FILTER = (caseInstanceId) => `Tags/any(tags:tags/Displa
|
|
|
9320
9413
|
*/
|
|
9321
9414
|
const CASE_INSTANCE_TASK_EXPAND = 'AssignedToUser,Activities';
|
|
9322
9415
|
|
|
9323
|
-
var TaskType;
|
|
9324
|
-
(function (TaskType) {
|
|
9325
|
-
TaskType["Form"] = "FormTask";
|
|
9326
|
-
TaskType["External"] = "ExternalTask";
|
|
9327
|
-
TaskType["App"] = "AppTask";
|
|
9328
|
-
})(TaskType || (TaskType = {}));
|
|
9329
|
-
var TaskPriority;
|
|
9330
|
-
(function (TaskPriority) {
|
|
9331
|
-
TaskPriority["Low"] = "Low";
|
|
9332
|
-
TaskPriority["Medium"] = "Medium";
|
|
9333
|
-
TaskPriority["High"] = "High";
|
|
9334
|
-
TaskPriority["Critical"] = "Critical";
|
|
9335
|
-
})(TaskPriority || (TaskPriority = {}));
|
|
9336
|
-
var TaskStatus;
|
|
9337
|
-
(function (TaskStatus) {
|
|
9338
|
-
TaskStatus["Unassigned"] = "Unassigned";
|
|
9339
|
-
TaskStatus["Pending"] = "Pending";
|
|
9340
|
-
TaskStatus["Completed"] = "Completed";
|
|
9341
|
-
})(TaskStatus || (TaskStatus = {}));
|
|
9342
|
-
var TaskSlaCriteria;
|
|
9343
|
-
(function (TaskSlaCriteria) {
|
|
9344
|
-
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
9345
|
-
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
9346
|
-
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
9347
|
-
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
9348
|
-
var TaskSlaStatus;
|
|
9349
|
-
(function (TaskSlaStatus) {
|
|
9350
|
-
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
9351
|
-
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
9352
|
-
TaskSlaStatus["Overdue"] = "Overdue";
|
|
9353
|
-
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
9354
|
-
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
9355
|
-
var TaskSourceName;
|
|
9356
|
-
(function (TaskSourceName) {
|
|
9357
|
-
TaskSourceName["Agent"] = "Agent";
|
|
9358
|
-
TaskSourceName["Workflow"] = "Workflow";
|
|
9359
|
-
TaskSourceName["Maestro"] = "Maestro";
|
|
9360
|
-
TaskSourceName["Default"] = "Default";
|
|
9361
|
-
})(TaskSourceName || (TaskSourceName = {}));
|
|
9362
9416
|
/**
|
|
9363
|
-
*
|
|
9417
|
+
* Maps numeric TaskStatus values (from API) to TaskStatus enum values.
|
|
9418
|
+
* Extend this file with additional field mappings as needed.
|
|
9364
9419
|
*/
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9420
|
+
const TaskStatusMap = {
|
|
9421
|
+
0: TaskStatus.Unassigned,
|
|
9422
|
+
1: TaskStatus.Pending,
|
|
9423
|
+
2: TaskStatus.Completed,
|
|
9424
|
+
};
|
|
9425
|
+
// Field mapping for time-related fields to ensure consistent naming
|
|
9426
|
+
const TaskMap = {
|
|
9427
|
+
completionTime: 'completedTime',
|
|
9428
|
+
deletionTime: 'deletedTime',
|
|
9429
|
+
lastModificationTime: 'lastModifiedTime',
|
|
9430
|
+
creationTime: 'createdTime',
|
|
9431
|
+
organizationUnitId: 'folderId'
|
|
9432
|
+
};
|
|
9433
|
+
/**
|
|
9434
|
+
* Default expand parameters
|
|
9435
|
+
*/
|
|
9436
|
+
const DEFAULT_TASK_EXPAND = 'AssignedToUser,CreatorUser,LastModifierUser';
|
|
9380
9437
|
|
|
9381
9438
|
/**
|
|
9382
9439
|
* Creates methods for a task
|
|
@@ -9435,28 +9492,6 @@ function createTaskWithMethods(taskData, service) {
|
|
|
9435
9492
|
return Object.assign({}, taskData, methods);
|
|
9436
9493
|
}
|
|
9437
9494
|
|
|
9438
|
-
/**
|
|
9439
|
-
* Maps numeric TaskStatus values (from API) to TaskStatus enum values.
|
|
9440
|
-
* Extend this file with additional field mappings as needed.
|
|
9441
|
-
*/
|
|
9442
|
-
const TaskStatusMap = {
|
|
9443
|
-
0: TaskStatus.Unassigned,
|
|
9444
|
-
1: TaskStatus.Pending,
|
|
9445
|
-
2: TaskStatus.Completed,
|
|
9446
|
-
};
|
|
9447
|
-
// Field mapping for time-related fields to ensure consistent naming
|
|
9448
|
-
const TaskMap = {
|
|
9449
|
-
completionTime: 'completedTime',
|
|
9450
|
-
deletionTime: 'deletedTime',
|
|
9451
|
-
lastModificationTime: 'lastModifiedTime',
|
|
9452
|
-
creationTime: 'createdTime',
|
|
9453
|
-
organizationUnitId: 'folderId'
|
|
9454
|
-
};
|
|
9455
|
-
/**
|
|
9456
|
-
* Default expand parameters
|
|
9457
|
-
*/
|
|
9458
|
-
const DEFAULT_TASK_EXPAND = 'AssignedToUser,CreatorUser,LastModifierUser';
|
|
9459
|
-
|
|
9460
9495
|
/**
|
|
9461
9496
|
* Service for interacting with UiPath Tasks API
|
|
9462
9497
|
*/
|
|
@@ -9651,29 +9686,38 @@ class TaskService extends BaseService {
|
|
|
9651
9686
|
}
|
|
9652
9687
|
/**
|
|
9653
9688
|
* Gets a task by ID
|
|
9654
|
-
* IMPORTANT: For form tasks, folderId must be provided.
|
|
9655
|
-
*
|
|
9656
9689
|
* @param id - The ID of the task to retrieve
|
|
9657
|
-
* @param options - Optional query parameters
|
|
9658
|
-
* @param folderId - Optional folder ID (REQUIRED
|
|
9659
|
-
* @returns Promise resolving to the task
|
|
9660
|
-
*
|
|
9690
|
+
* @param options - Optional query parameters including taskType for faster retrieval {@link TaskGetByIdOptions}
|
|
9691
|
+
* @param folderId - Optional folder ID (REQUIRED when options.taskType is provided)
|
|
9692
|
+
* @returns Promise resolving to the task
|
|
9693
|
+
* {@link TaskGetResponse}
|
|
9661
9694
|
* @example
|
|
9662
9695
|
* ```typescript
|
|
9663
|
-
*
|
|
9696
|
+
* // Get a task by ID
|
|
9697
|
+
* const task = await tasks.getById(<taskId>);
|
|
9664
9698
|
*
|
|
9665
|
-
*
|
|
9699
|
+
* // Get a form task by ID
|
|
9700
|
+
* const formTask = await tasks.getById(<taskId>, {}, <folderId>);
|
|
9666
9701
|
*
|
|
9667
|
-
* //
|
|
9668
|
-
*
|
|
9702
|
+
* // Access form task properties
|
|
9703
|
+
* console.log(formTask.formLayout);
|
|
9669
9704
|
*
|
|
9670
|
-
* //
|
|
9705
|
+
* // Get a document validation task by ID (faster with taskType provided in the options)
|
|
9706
|
+
* const dvTask = await tasks.getById(<taskId>, { taskType: TaskType.DocumentValidation }, <folderId>);
|
|
9671
9707
|
* ```
|
|
9672
9708
|
*/
|
|
9673
9709
|
async getById(id, options = {}, folderId) {
|
|
9710
|
+
const { taskType, ...restOptions } = options;
|
|
9711
|
+
// If taskType is provided, skip the generic GET_BY_ID call and go directly to the type-specific endpoint
|
|
9712
|
+
if (taskType && taskType in TASK_TYPE_ENDPOINTS) {
|
|
9713
|
+
if (!folderId) {
|
|
9714
|
+
throw new ValidationError({ message: 'folderId is required when taskType is provided' });
|
|
9715
|
+
}
|
|
9716
|
+
return this.getByTaskType(id, folderId, taskType, restOptions);
|
|
9717
|
+
}
|
|
9674
9718
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
9675
9719
|
// Add default expand parameters
|
|
9676
|
-
const modifiedOptions = this.addDefaultExpand(
|
|
9720
|
+
const modifiedOptions = this.addDefaultExpand(restOptions);
|
|
9677
9721
|
// prefix all keys in options
|
|
9678
9722
|
const keysToPrefix = Object.keys(modifiedOptions);
|
|
9679
9723
|
const apiOptions = addPrefixToKeys(modifiedOptions, ODATA_PREFIX, keysToPrefix);
|
|
@@ -9683,10 +9727,10 @@ class TaskService extends BaseService {
|
|
|
9683
9727
|
});
|
|
9684
9728
|
// Transform response from PascalCase to camelCase and normalize time fields
|
|
9685
9729
|
const transformedTask = transformData(pascalToCamelCaseKeys(response.data), TaskMap);
|
|
9686
|
-
//
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
return this.
|
|
9730
|
+
// Get task type from response and fetch type-specific data
|
|
9731
|
+
const resolvedFolderId = folderId || transformedTask.folderId;
|
|
9732
|
+
if (transformedTask.type in TASK_TYPE_ENDPOINTS) {
|
|
9733
|
+
return this.getByTaskType(id, resolvedFolderId, transformedTask.type, restOptions);
|
|
9690
9734
|
}
|
|
9691
9735
|
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: 'status', valueMap: TaskStatusMap }), this);
|
|
9692
9736
|
}
|
|
@@ -9875,24 +9919,33 @@ class TaskService extends BaseService {
|
|
|
9875
9919
|
};
|
|
9876
9920
|
}
|
|
9877
9921
|
/**
|
|
9878
|
-
*
|
|
9922
|
+
* Routes to the type-specific endpoint based on task type.
|
|
9923
|
+
*/
|
|
9924
|
+
getByTaskType(id, folderId, taskType, options = {}) {
|
|
9925
|
+
const endpoint = TASK_TYPE_ENDPOINTS[taskType];
|
|
9926
|
+
const extraParams = taskType === TaskType.Form ? { expandOnFormLayout: true, ...options } : options;
|
|
9927
|
+
return this.getTaskByTypeEndpoint(id, folderId, endpoint, extraParams);
|
|
9928
|
+
}
|
|
9929
|
+
/**
|
|
9930
|
+
* Fetches a task from a type-specific endpoint.
|
|
9879
9931
|
*
|
|
9880
|
-
* @param id - The
|
|
9932
|
+
* @param id - The task ID
|
|
9881
9933
|
* @param folderId - Required folder ID
|
|
9882
|
-
* @param
|
|
9883
|
-
* @
|
|
9934
|
+
* @param endpoint - The type-specific endpoint to call
|
|
9935
|
+
* @param extraParams - Additional query parameters (e.g. form options)
|
|
9936
|
+
* @returns Promise resolving to the task
|
|
9884
9937
|
*/
|
|
9885
|
-
async
|
|
9938
|
+
async getTaskByTypeEndpoint(id, folderId, endpoint, extraParams = {}) {
|
|
9886
9939
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
9887
|
-
const response = await this.get(
|
|
9940
|
+
const response = await this.get(endpoint, {
|
|
9888
9941
|
params: {
|
|
9889
9942
|
taskId: id,
|
|
9890
|
-
...
|
|
9943
|
+
...extraParams
|
|
9891
9944
|
},
|
|
9892
9945
|
headers
|
|
9893
9946
|
});
|
|
9894
|
-
const
|
|
9895
|
-
return createTaskWithMethods(applyDataTransforms(
|
|
9947
|
+
const transformedTask = transformData(response.data, TaskMap);
|
|
9948
|
+
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: 'status', valueMap: TaskStatusMap }), this);
|
|
9896
9949
|
}
|
|
9897
9950
|
/**
|
|
9898
9951
|
* Adds default expand parameters to options
|
|
@@ -10907,6 +10960,106 @@ var BucketOptions;
|
|
|
10907
10960
|
BucketOptions["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
|
|
10908
10961
|
})(BucketOptions || (BucketOptions = {}));
|
|
10909
10962
|
|
|
10963
|
+
/**
|
|
10964
|
+
* Maps fields for Job entities to ensure consistent naming
|
|
10965
|
+
* Semantic renames only — case conversion handled by pascalToCamelCaseKeys()
|
|
10966
|
+
*/
|
|
10967
|
+
const JobMap = {
|
|
10968
|
+
creationTime: 'createdTime',
|
|
10969
|
+
lastModificationTime: 'lastModifiedTime',
|
|
10970
|
+
organizationUnitId: 'folderId',
|
|
10971
|
+
organizationUnitFullyQualifiedName: 'folderName',
|
|
10972
|
+
releaseName: 'processName',
|
|
10973
|
+
releaseVersionId: 'processVersionId',
|
|
10974
|
+
processType: 'packageType',
|
|
10975
|
+
release: 'process',
|
|
10976
|
+
};
|
|
10977
|
+
|
|
10978
|
+
/**
|
|
10979
|
+
* Service for interacting with UiPath Orchestrator Jobs API
|
|
10980
|
+
*/
|
|
10981
|
+
class JobService extends FolderScopedService {
|
|
10982
|
+
/**
|
|
10983
|
+
* Gets all jobs across folders with optional filtering
|
|
10984
|
+
*
|
|
10985
|
+
* @param options - Query options including optional folderId and pagination options
|
|
10986
|
+
* @returns Promise resolving to array of jobs or paginated response
|
|
10987
|
+
*
|
|
10988
|
+
* @example
|
|
10989
|
+
* ```typescript
|
|
10990
|
+
* import { Jobs } from '@uipath/uipath-typescript/jobs';
|
|
10991
|
+
*
|
|
10992
|
+
* const jobs = new Jobs(sdk);
|
|
10993
|
+
*
|
|
10994
|
+
* // Get all jobs
|
|
10995
|
+
* const allJobs = await jobs.getAll();
|
|
10996
|
+
*
|
|
10997
|
+
* // Get all jobs in a specific folder
|
|
10998
|
+
* const folderJobs = await jobs.getAll({ folderId: 123 });
|
|
10999
|
+
*
|
|
11000
|
+
* // With filtering
|
|
11001
|
+
* const runningJobs = await jobs.getAll({
|
|
11002
|
+
* filter: "state eq 'Running'"
|
|
11003
|
+
* });
|
|
11004
|
+
*
|
|
11005
|
+
* // First page with pagination
|
|
11006
|
+
* const page1 = await jobs.getAll({ pageSize: 10 });
|
|
11007
|
+
*
|
|
11008
|
+
* // Navigate using cursor
|
|
11009
|
+
* if (page1.hasNextPage) {
|
|
11010
|
+
* const page2 = await jobs.getAll({ cursor: page1.nextCursor });
|
|
11011
|
+
* }
|
|
11012
|
+
* ```
|
|
11013
|
+
*/
|
|
11014
|
+
async getAll(options) {
|
|
11015
|
+
const transformJobResponse = (job) => transformData(pascalToCamelCaseKeys(job), JobMap);
|
|
11016
|
+
return PaginationHelpers.getAll({
|
|
11017
|
+
serviceAccess: this.createPaginationServiceAccess(),
|
|
11018
|
+
getEndpoint: () => JOB_ENDPOINTS.GET_ALL,
|
|
11019
|
+
getByFolderEndpoint: JOB_ENDPOINTS.GET_ALL,
|
|
11020
|
+
transformFn: transformJobResponse,
|
|
11021
|
+
pagination: {
|
|
11022
|
+
paginationType: PaginationType.OFFSET,
|
|
11023
|
+
itemsField: ODATA_PAGINATION.ITEMS_FIELD,
|
|
11024
|
+
totalCountField: ODATA_PAGINATION.TOTAL_COUNT_FIELD,
|
|
11025
|
+
paginationParams: {
|
|
11026
|
+
pageSizeParam: ODATA_OFFSET_PARAMS.PAGE_SIZE_PARAM,
|
|
11027
|
+
offsetParam: ODATA_OFFSET_PARAMS.OFFSET_PARAM,
|
|
11028
|
+
countParam: ODATA_OFFSET_PARAMS.COUNT_PARAM,
|
|
11029
|
+
},
|
|
11030
|
+
},
|
|
11031
|
+
}, options);
|
|
11032
|
+
}
|
|
11033
|
+
}
|
|
11034
|
+
__decorate([
|
|
11035
|
+
track('Jobs.GetAll')
|
|
11036
|
+
], JobService.prototype, "getAll", null);
|
|
11037
|
+
|
|
11038
|
+
/**
|
|
11039
|
+
* Enum for job sub-state
|
|
11040
|
+
*/
|
|
11041
|
+
var JobSubState;
|
|
11042
|
+
(function (JobSubState) {
|
|
11043
|
+
JobSubState["WithFaults"] = "WITH_FAULTS";
|
|
11044
|
+
JobSubState["Manually"] = "MANUALLY";
|
|
11045
|
+
})(JobSubState || (JobSubState = {}));
|
|
11046
|
+
/**
|
|
11047
|
+
* Enum for serverless job type
|
|
11048
|
+
*/
|
|
11049
|
+
var ServerlessJobType;
|
|
11050
|
+
(function (ServerlessJobType) {
|
|
11051
|
+
ServerlessJobType["RobotJob"] = "RobotJob";
|
|
11052
|
+
ServerlessJobType["WebApp"] = "WebApp";
|
|
11053
|
+
ServerlessJobType["LoadTest"] = "LoadTest";
|
|
11054
|
+
ServerlessJobType["StudioWebDesigner"] = "StudioWebDesigner";
|
|
11055
|
+
ServerlessJobType["PublishStudioProject"] = "PublishStudioProject";
|
|
11056
|
+
ServerlessJobType["JsApi"] = "JsApi";
|
|
11057
|
+
ServerlessJobType["PythonCodedAgent"] = "PythonCodedAgent";
|
|
11058
|
+
ServerlessJobType["MCPServer"] = "MCPServer";
|
|
11059
|
+
ServerlessJobType["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
|
|
11060
|
+
ServerlessJobType["PythonAgent"] = "PythonAgent";
|
|
11061
|
+
})(ServerlessJobType || (ServerlessJobType = {}));
|
|
11062
|
+
|
|
10910
11063
|
/**
|
|
10911
11064
|
* Maps fields for Process entities to ensure consistent naming
|
|
10912
11065
|
*/
|
|
@@ -11089,6 +11242,9 @@ var PackageType;
|
|
|
11089
11242
|
PackageType["Api"] = "Api";
|
|
11090
11243
|
PackageType["MCPServer"] = "MCPServer";
|
|
11091
11244
|
PackageType["BusinessRules"] = "BusinessRules";
|
|
11245
|
+
PackageType["CaseManagement"] = "CaseManagement";
|
|
11246
|
+
PackageType["Flow"] = "Flow";
|
|
11247
|
+
PackageType["Function"] = "Function";
|
|
11092
11248
|
})(PackageType || (PackageType = {}));
|
|
11093
11249
|
/**
|
|
11094
11250
|
* Enum for job priority
|
|
@@ -11167,6 +11323,36 @@ var PackageSourceType;
|
|
|
11167
11323
|
PackageSourceType["AgentHub"] = "AgentHub";
|
|
11168
11324
|
PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11169
11325
|
})(PackageSourceType || (PackageSourceType = {}));
|
|
11326
|
+
/**
|
|
11327
|
+
* Enum for job source type
|
|
11328
|
+
*/
|
|
11329
|
+
var JobSourceType;
|
|
11330
|
+
(function (JobSourceType) {
|
|
11331
|
+
JobSourceType["Manual"] = "Manual";
|
|
11332
|
+
JobSourceType["Schedule"] = "Schedule";
|
|
11333
|
+
JobSourceType["Agent"] = "Agent";
|
|
11334
|
+
JobSourceType["Queue"] = "Queue";
|
|
11335
|
+
JobSourceType["StudioWeb"] = "StudioWeb";
|
|
11336
|
+
JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
11337
|
+
JobSourceType["StudioDesktop"] = "StudioDesktop";
|
|
11338
|
+
JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
11339
|
+
JobSourceType["Apps"] = "Apps";
|
|
11340
|
+
JobSourceType["SAP"] = "SAP";
|
|
11341
|
+
JobSourceType["HttpTrigger"] = "HttpTrigger";
|
|
11342
|
+
JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
11343
|
+
JobSourceType["RobotAPI"] = "RobotAPI";
|
|
11344
|
+
JobSourceType["CommandLine"] = "CommandLine";
|
|
11345
|
+
JobSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
11346
|
+
JobSourceType["Autopilot"] = "Autopilot";
|
|
11347
|
+
JobSourceType["TestManager"] = "TestManager";
|
|
11348
|
+
JobSourceType["AgentService"] = "AgentService";
|
|
11349
|
+
JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11350
|
+
JobSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
11351
|
+
JobSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
11352
|
+
JobSourceType["AgentHub"] = "AgentHub";
|
|
11353
|
+
JobSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11354
|
+
JobSourceType["CaseManagement"] = "CaseManagement";
|
|
11355
|
+
})(JobSourceType || (JobSourceType = {}));
|
|
11170
11356
|
/**
|
|
11171
11357
|
* Enum for stop strategy
|
|
11172
11358
|
*/
|
|
@@ -11175,6 +11361,39 @@ var StopStrategy;
|
|
|
11175
11361
|
StopStrategy["SoftStop"] = "SoftStop";
|
|
11176
11362
|
StopStrategy["Kill"] = "Kill";
|
|
11177
11363
|
})(StopStrategy || (StopStrategy = {}));
|
|
11364
|
+
/**
|
|
11365
|
+
* Enum for runtime type
|
|
11366
|
+
*/
|
|
11367
|
+
var RuntimeType;
|
|
11368
|
+
(function (RuntimeType) {
|
|
11369
|
+
RuntimeType["NonProduction"] = "NonProduction";
|
|
11370
|
+
RuntimeType["Attended"] = "Attended";
|
|
11371
|
+
RuntimeType["Unattended"] = "Unattended";
|
|
11372
|
+
RuntimeType["Development"] = "Development";
|
|
11373
|
+
RuntimeType["Studio"] = "Studio";
|
|
11374
|
+
RuntimeType["RpaDeveloper"] = "RpaDeveloper";
|
|
11375
|
+
RuntimeType["StudioX"] = "StudioX";
|
|
11376
|
+
RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
|
|
11377
|
+
RuntimeType["Headless"] = "Headless";
|
|
11378
|
+
RuntimeType["StudioPro"] = "StudioPro";
|
|
11379
|
+
RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
11380
|
+
RuntimeType["TestAutomation"] = "TestAutomation";
|
|
11381
|
+
RuntimeType["AutomationCloud"] = "AutomationCloud";
|
|
11382
|
+
RuntimeType["Serverless"] = "Serverless";
|
|
11383
|
+
RuntimeType["AutomationKit"] = "AutomationKit";
|
|
11384
|
+
RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
11385
|
+
RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
11386
|
+
RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
11387
|
+
RuntimeType["Hosting"] = "Hosting";
|
|
11388
|
+
RuntimeType["AssistantWeb"] = "AssistantWeb";
|
|
11389
|
+
RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11390
|
+
RuntimeType["AgentService"] = "AgentService";
|
|
11391
|
+
RuntimeType["AppTest"] = "AppTest";
|
|
11392
|
+
RuntimeType["PerformanceTest"] = "PerformanceTest";
|
|
11393
|
+
RuntimeType["BusinessRule"] = "BusinessRule";
|
|
11394
|
+
RuntimeType["CaseManagement"] = "CaseManagement";
|
|
11395
|
+
RuntimeType["Flow"] = "Flow";
|
|
11396
|
+
})(RuntimeType || (RuntimeType = {}));
|
|
11178
11397
|
/**
|
|
11179
11398
|
* Enum for job type
|
|
11180
11399
|
*/
|
|
@@ -11297,6 +11516,49 @@ __decorate([
|
|
|
11297
11516
|
track('Queues.GetById')
|
|
11298
11517
|
], QueueService.prototype, "getById", null);
|
|
11299
11518
|
|
|
11519
|
+
/**
|
|
11520
|
+
* Maps fields for Attachment entities to ensure consistent naming
|
|
11521
|
+
*/
|
|
11522
|
+
const AttachmentsMap = {
|
|
11523
|
+
creationTime: 'createdTime',
|
|
11524
|
+
lastModificationTime: 'lastModifiedTime'
|
|
11525
|
+
};
|
|
11526
|
+
|
|
11527
|
+
class AttachmentService extends BaseService {
|
|
11528
|
+
/**
|
|
11529
|
+
* Gets an attachment by ID
|
|
11530
|
+
* @param id - The UUID of the attachment to retrieve
|
|
11531
|
+
* @param options - Optional query parameters (expand, select)
|
|
11532
|
+
* @returns Promise resolving to the attachment
|
|
11533
|
+
*
|
|
11534
|
+
* @example
|
|
11535
|
+
* ```typescript
|
|
11536
|
+
* import { Attachments } from '@uipath/uipath-typescript/attachments';
|
|
11537
|
+
*
|
|
11538
|
+
* const attachments = new Attachments(sdk);
|
|
11539
|
+
* const attachment = await attachments.getById('12345678-1234-1234-1234-123456789abc');
|
|
11540
|
+
* ```
|
|
11541
|
+
*/
|
|
11542
|
+
async getById(id, options = {}) {
|
|
11543
|
+
if (!id) {
|
|
11544
|
+
throw new ValidationError({ message: 'id is required for getById' });
|
|
11545
|
+
}
|
|
11546
|
+
// Prefix all keys in options with $ for OData
|
|
11547
|
+
const keysToPrefix = Object.keys(options);
|
|
11548
|
+
const apiOptions = addPrefixToKeys(options, ODATA_PREFIX, keysToPrefix);
|
|
11549
|
+
const response = await this.get(ORCHESTRATOR_ATTACHMENT_ENDPOINTS.GET_BY_ID(id), {
|
|
11550
|
+
params: apiOptions,
|
|
11551
|
+
});
|
|
11552
|
+
// Transform response from PascalCase to camelCase, then apply field maps
|
|
11553
|
+
const camelCased = pascalToCamelCaseKeys(response.data);
|
|
11554
|
+
camelCased.blobFileAccess = transformData(camelCased.blobFileAccess, BucketMap);
|
|
11555
|
+
return transformData(camelCased, AttachmentsMap);
|
|
11556
|
+
}
|
|
11557
|
+
}
|
|
11558
|
+
__decorate([
|
|
11559
|
+
track('Attachments.GetById')
|
|
11560
|
+
], AttachmentService.prototype, "getById", null);
|
|
11561
|
+
|
|
11300
11562
|
/**
|
|
11301
11563
|
* UiPath SDK - Legacy class providing all services through property getters.
|
|
11302
11564
|
*
|
|
@@ -11761,4 +12023,4 @@ function getAppBase() {
|
|
|
11761
12023
|
return getMetaTagContent(UiPathMetaTags.APP_BASE) || '/';
|
|
11762
12024
|
}
|
|
11763
12025
|
|
|
11764
|
-
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, JobState, JobType, JoinType, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, SDK_LOGGER_NAME, SDK_RUN_EVENT, SDK_SERVICE_NAME, SDK_VERSION, SERVICE, SLADurationUnit, ServerError, 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, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|
|
12026
|
+
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, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, 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, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|