@uipath/uipath-typescript 1.2.1 → 1.3.0
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 +11 -27
- package/dist/entities/index.d.ts +38 -26
- package/dist/entities/index.mjs +11 -27
- package/dist/index.cjs +683 -284
- package/dist/index.d.ts +549 -75
- package/dist/index.mjs +683 -285
- package/dist/index.umd.js +680 -281
- package/dist/jobs/index.cjs +2264 -0
- package/dist/jobs/index.d.ts +860 -0
- package/dist/jobs/index.mjs +2260 -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,235 @@ 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
|
+
GET_BY_KEY: (identifier) => `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.GetByKey(identifier=${identifier})`,
|
|
4522
|
+
};
|
|
4523
|
+
/**
|
|
4524
|
+
* Orchestrator Asset Service Endpoints
|
|
4525
|
+
*/
|
|
4526
|
+
const ASSET_ENDPOINTS = {
|
|
4527
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
4528
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
|
|
4529
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`,
|
|
4530
|
+
};
|
|
4531
|
+
/**
|
|
4532
|
+
* Orchestrator Attachment Service Endpoints
|
|
4533
|
+
*/
|
|
4534
|
+
const ORCHESTRATOR_ATTACHMENT_ENDPOINTS = {
|
|
4535
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Attachments(${id})`,
|
|
4536
|
+
};
|
|
4537
|
+
|
|
4538
|
+
/**
|
|
4539
|
+
* Maestro Service Endpoints
|
|
4540
|
+
*/
|
|
4541
|
+
/**
|
|
4542
|
+
* Maestro Process Service Endpoints
|
|
4543
|
+
*/
|
|
4544
|
+
const MAESTRO_ENDPOINTS = {
|
|
4545
|
+
PROCESSES: {
|
|
4546
|
+
GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
|
|
4547
|
+
GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`,
|
|
4548
|
+
},
|
|
4549
|
+
INSTANCES: {
|
|
4550
|
+
GET_ALL: `${PIMS_BASE}/api/v1/instances`,
|
|
4551
|
+
GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
|
|
4552
|
+
GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
|
|
4553
|
+
GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
|
|
4554
|
+
GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
|
|
4555
|
+
CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
|
|
4556
|
+
PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
|
|
4557
|
+
RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`,
|
|
4558
|
+
},
|
|
4559
|
+
INCIDENTS: {
|
|
4560
|
+
GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
|
|
4561
|
+
GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
|
|
4562
|
+
GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`,
|
|
4563
|
+
},
|
|
4564
|
+
CASES: {
|
|
4565
|
+
GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
|
|
4566
|
+
GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
|
|
4567
|
+
REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`,
|
|
4568
|
+
},
|
|
4569
|
+
};
|
|
4570
|
+
|
|
4571
|
+
/**
|
|
4572
|
+
* Data Fabric Service Endpoints
|
|
4573
|
+
*/
|
|
4574
|
+
/**
|
|
4575
|
+
* Data Fabric Entity Service Endpoints
|
|
4576
|
+
*/
|
|
4577
|
+
const DATA_FABRIC_ENDPOINTS = {
|
|
4578
|
+
ENTITY: {
|
|
4579
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
|
|
4580
|
+
GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
|
|
4581
|
+
GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
4582
|
+
GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
|
|
4583
|
+
INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
|
|
4584
|
+
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
4585
|
+
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
4586
|
+
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
4587
|
+
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
4588
|
+
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4589
|
+
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4590
|
+
DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4591
|
+
},
|
|
4592
|
+
CHOICESETS: {
|
|
4593
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
4594
|
+
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`,
|
|
4595
|
+
},
|
|
4596
|
+
};
|
|
4597
|
+
|
|
4598
|
+
/**
|
|
4599
|
+
* Identity/Authentication Endpoints
|
|
4600
|
+
*/
|
|
4601
|
+
/**
|
|
4602
|
+
* Identity Service Endpoints
|
|
4603
|
+
*/
|
|
4604
|
+
const IDENTITY_ENDPOINTS = {
|
|
4605
|
+
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4606
|
+
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4607
|
+
};
|
|
4608
|
+
|
|
4609
|
+
const TASK_TYPE_ENDPOINTS = {
|
|
4610
|
+
[TaskType.Form]: TASK_ENDPOINTS.GET_TASK_FORM_BY_ID,
|
|
4611
|
+
[TaskType.App]: TASK_ENDPOINTS.GET_APP_TASK_BY_ID,
|
|
4612
|
+
[TaskType.DocumentValidation]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4613
|
+
[TaskType.DocumentClassification]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4614
|
+
[TaskType.External]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4615
|
+
[TaskType.DataLabeling]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4616
|
+
};
|
|
4388
4617
|
var ActionCenterEventNames;
|
|
4389
4618
|
(function (ActionCenterEventNames) {
|
|
4390
4619
|
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
@@ -4762,141 +4991,6 @@ class TokenManager {
|
|
|
4762
4991
|
}
|
|
4763
4992
|
}
|
|
4764
4993
|
|
|
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
|
-
};
|
|
4899
|
-
|
|
4900
4994
|
class AuthService {
|
|
4901
4995
|
constructor(config, executionContext) {
|
|
4902
4996
|
// Only use stored OAuth context when completing an active callback (URL has ?code=).
|
|
@@ -5324,7 +5418,7 @@ function normalizeBaseUrl(url) {
|
|
|
5324
5418
|
// Connection string placeholder that will be replaced during build
|
|
5325
5419
|
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
5420
|
// SDK Version placeholder
|
|
5327
|
-
const SDK_VERSION = "1.
|
|
5421
|
+
const SDK_VERSION = "1.3.0";
|
|
5328
5422
|
const VERSION = "Version";
|
|
5329
5423
|
const SERVICE = "Service";
|
|
5330
5424
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -7828,11 +7922,7 @@ class EntityService extends BaseService {
|
|
|
7828
7922
|
expansionLevel: options.expansionLevel
|
|
7829
7923
|
});
|
|
7830
7924
|
const response = await this.get(DATA_FABRIC_ENDPOINTS.ENTITY.GET_RECORD_BY_ID(entityId, recordId), { params });
|
|
7831
|
-
|
|
7832
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7833
|
-
// Apply EntityMap transformations
|
|
7834
|
-
const transformedResponse = transformData(camelResponse, EntityMap);
|
|
7835
|
-
return transformedResponse;
|
|
7925
|
+
return response.data;
|
|
7836
7926
|
}
|
|
7837
7927
|
/**
|
|
7838
7928
|
* Inserts a single record into an entity by entity ID
|
|
@@ -7865,9 +7955,7 @@ class EntityService extends BaseService {
|
|
|
7865
7955
|
params,
|
|
7866
7956
|
...options
|
|
7867
7957
|
});
|
|
7868
|
-
|
|
7869
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7870
|
-
return camelResponse;
|
|
7958
|
+
return response.data;
|
|
7871
7959
|
}
|
|
7872
7960
|
/**
|
|
7873
7961
|
* Inserts data into an entity by entity ID using batch insert
|
|
@@ -7908,9 +7996,7 @@ class EntityService extends BaseService {
|
|
|
7908
7996
|
params,
|
|
7909
7997
|
...options
|
|
7910
7998
|
});
|
|
7911
|
-
|
|
7912
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7913
|
-
return camelResponse;
|
|
7999
|
+
return response.data;
|
|
7914
8000
|
}
|
|
7915
8001
|
/**
|
|
7916
8002
|
* Updates a single record in an entity by entity ID
|
|
@@ -7944,9 +8030,7 @@ class EntityService extends BaseService {
|
|
|
7944
8030
|
params,
|
|
7945
8031
|
...options
|
|
7946
8032
|
});
|
|
7947
|
-
|
|
7948
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7949
|
-
return camelResponse;
|
|
8033
|
+
return response.data;
|
|
7950
8034
|
}
|
|
7951
8035
|
/**
|
|
7952
8036
|
* Updates data in an entity by entity ID
|
|
@@ -7988,9 +8072,7 @@ class EntityService extends BaseService {
|
|
|
7988
8072
|
params,
|
|
7989
8073
|
...options
|
|
7990
8074
|
});
|
|
7991
|
-
|
|
7992
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7993
|
-
return camelResponse;
|
|
8075
|
+
return response.data;
|
|
7994
8076
|
}
|
|
7995
8077
|
/**
|
|
7996
8078
|
* Deletes data from an entity by entity ID
|
|
@@ -8020,9 +8102,7 @@ class EntityService extends BaseService {
|
|
|
8020
8102
|
params,
|
|
8021
8103
|
...options
|
|
8022
8104
|
});
|
|
8023
|
-
|
|
8024
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
8025
|
-
return camelResponse;
|
|
8105
|
+
return response.data;
|
|
8026
8106
|
}
|
|
8027
8107
|
/**
|
|
8028
8108
|
* Gets all entities in the system
|
|
@@ -8074,7 +8154,7 @@ class EntityService extends BaseService {
|
|
|
8074
8154
|
*
|
|
8075
8155
|
* // Get the recordId from getAllRecords()
|
|
8076
8156
|
* const records = await entities.getAllRecords(entityId);
|
|
8077
|
-
* const recordId = records[0].
|
|
8157
|
+
* const recordId = records[0].Id;
|
|
8078
8158
|
*
|
|
8079
8159
|
* // Download attachment for a specific record and field
|
|
8080
8160
|
* const blob = await entities.downloadAttachment(entityId, recordId, 'Documents');
|
|
@@ -8108,7 +8188,7 @@ class EntityService extends BaseService {
|
|
|
8108
8188
|
*
|
|
8109
8189
|
* // Get the recordId from getAllRecords()
|
|
8110
8190
|
* const records = await entities.getAllRecords(entityId);
|
|
8111
|
-
* const recordId = records[0].
|
|
8191
|
+
* const recordId = records[0].Id;
|
|
8112
8192
|
*
|
|
8113
8193
|
* // Upload a file attachment
|
|
8114
8194
|
* const response = await entities.uploadAttachment(entityId, recordId, 'Documents', file);
|
|
@@ -8124,9 +8204,7 @@ class EntityService extends BaseService {
|
|
|
8124
8204
|
}
|
|
8125
8205
|
const params = createParams({ expansionLevel: options?.expansionLevel });
|
|
8126
8206
|
const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPLOAD_ATTACHMENT(entityId, recordId, fieldName), formData, { params });
|
|
8127
|
-
|
|
8128
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
8129
|
-
return camelResponse;
|
|
8207
|
+
return response.data;
|
|
8130
8208
|
}
|
|
8131
8209
|
/**
|
|
8132
8210
|
* Removes an attachment from a File-type field of an entity record
|
|
@@ -8148,7 +8226,7 @@ class EntityService extends BaseService {
|
|
|
8148
8226
|
*
|
|
8149
8227
|
* // Get the recordId from getAllRecords()
|
|
8150
8228
|
* const records = await entities.getAllRecords(entityId);
|
|
8151
|
-
* const recordId = records[0].
|
|
8229
|
+
* const recordId = records[0].Id;
|
|
8152
8230
|
*
|
|
8153
8231
|
* // Delete attachment for a specific record and field
|
|
8154
8232
|
* await entities.deleteAttachment(entityId, recordId, 'Documents');
|
|
@@ -9316,67 +9394,31 @@ const CASE_STAGE_CONSTANTS = {
|
|
|
9316
9394
|
*/
|
|
9317
9395
|
const CASE_INSTANCE_TASK_FILTER = (caseInstanceId) => `Tags/any(tags:tags/DisplayName eq '${caseInstanceId}') and (IsDeleted eq false)`;
|
|
9318
9396
|
/**
|
|
9319
|
-
* Default expand parameters for case instance tasks
|
|
9320
|
-
*/
|
|
9321
|
-
const CASE_INSTANCE_TASK_EXPAND = 'AssignedToUser,Activities';
|
|
9322
|
-
|
|
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 = {}));
|
|
9397
|
+
* Default expand parameters for case instance tasks
|
|
9398
|
+
*/
|
|
9399
|
+
const CASE_INSTANCE_TASK_EXPAND = 'AssignedToUser,Activities';
|
|
9400
|
+
|
|
9362
9401
|
/**
|
|
9363
|
-
*
|
|
9402
|
+
* Maps numeric TaskStatus values (from API) to TaskStatus enum values.
|
|
9403
|
+
* Extend this file with additional field mappings as needed.
|
|
9364
9404
|
*/
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9405
|
+
const TaskStatusMap = {
|
|
9406
|
+
0: TaskStatus.Unassigned,
|
|
9407
|
+
1: TaskStatus.Pending,
|
|
9408
|
+
2: TaskStatus.Completed,
|
|
9409
|
+
};
|
|
9410
|
+
// Field mapping for time-related fields to ensure consistent naming
|
|
9411
|
+
const TaskMap = {
|
|
9412
|
+
completionTime: 'completedTime',
|
|
9413
|
+
deletionTime: 'deletedTime',
|
|
9414
|
+
lastModificationTime: 'lastModifiedTime',
|
|
9415
|
+
creationTime: 'createdTime',
|
|
9416
|
+
organizationUnitId: 'folderId'
|
|
9417
|
+
};
|
|
9418
|
+
/**
|
|
9419
|
+
* Default expand parameters
|
|
9420
|
+
*/
|
|
9421
|
+
const DEFAULT_TASK_EXPAND = 'AssignedToUser,CreatorUser,LastModifierUser';
|
|
9380
9422
|
|
|
9381
9423
|
/**
|
|
9382
9424
|
* Creates methods for a task
|
|
@@ -9435,28 +9477,6 @@ function createTaskWithMethods(taskData, service) {
|
|
|
9435
9477
|
return Object.assign({}, taskData, methods);
|
|
9436
9478
|
}
|
|
9437
9479
|
|
|
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
9480
|
/**
|
|
9461
9481
|
* Service for interacting with UiPath Tasks API
|
|
9462
9482
|
*/
|
|
@@ -9651,29 +9671,38 @@ class TaskService extends BaseService {
|
|
|
9651
9671
|
}
|
|
9652
9672
|
/**
|
|
9653
9673
|
* Gets a task by ID
|
|
9654
|
-
* IMPORTANT: For form tasks, folderId must be provided.
|
|
9655
|
-
*
|
|
9656
9674
|
* @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
|
-
*
|
|
9675
|
+
* @param options - Optional query parameters including taskType for faster retrieval {@link TaskGetByIdOptions}
|
|
9676
|
+
* @param folderId - Optional folder ID (REQUIRED when options.taskType is provided)
|
|
9677
|
+
* @returns Promise resolving to the task
|
|
9678
|
+
* {@link TaskGetResponse}
|
|
9661
9679
|
* @example
|
|
9662
9680
|
* ```typescript
|
|
9663
|
-
*
|
|
9681
|
+
* // Get a task by ID
|
|
9682
|
+
* const task = await tasks.getById(<taskId>);
|
|
9664
9683
|
*
|
|
9665
|
-
*
|
|
9684
|
+
* // Get a form task by ID
|
|
9685
|
+
* const formTask = await tasks.getById(<taskId>, {}, <folderId>);
|
|
9666
9686
|
*
|
|
9667
|
-
* //
|
|
9668
|
-
*
|
|
9687
|
+
* // Access form task properties
|
|
9688
|
+
* console.log(formTask.formLayout);
|
|
9669
9689
|
*
|
|
9670
|
-
* //
|
|
9690
|
+
* // Get a document validation task by ID (faster with taskType provided in the options)
|
|
9691
|
+
* const dvTask = await tasks.getById(<taskId>, { taskType: TaskType.DocumentValidation }, <folderId>);
|
|
9671
9692
|
* ```
|
|
9672
9693
|
*/
|
|
9673
9694
|
async getById(id, options = {}, folderId) {
|
|
9695
|
+
const { taskType, ...restOptions } = options;
|
|
9696
|
+
// If taskType is provided, skip the generic GET_BY_ID call and go directly to the type-specific endpoint
|
|
9697
|
+
if (taskType && taskType in TASK_TYPE_ENDPOINTS) {
|
|
9698
|
+
if (!folderId) {
|
|
9699
|
+
throw new ValidationError({ message: 'folderId is required when taskType is provided' });
|
|
9700
|
+
}
|
|
9701
|
+
return this.getByTaskType(id, folderId, taskType, restOptions);
|
|
9702
|
+
}
|
|
9674
9703
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
9675
9704
|
// Add default expand parameters
|
|
9676
|
-
const modifiedOptions = this.addDefaultExpand(
|
|
9705
|
+
const modifiedOptions = this.addDefaultExpand(restOptions);
|
|
9677
9706
|
// prefix all keys in options
|
|
9678
9707
|
const keysToPrefix = Object.keys(modifiedOptions);
|
|
9679
9708
|
const apiOptions = addPrefixToKeys(modifiedOptions, ODATA_PREFIX, keysToPrefix);
|
|
@@ -9683,10 +9712,10 @@ class TaskService extends BaseService {
|
|
|
9683
9712
|
});
|
|
9684
9713
|
// Transform response from PascalCase to camelCase and normalize time fields
|
|
9685
9714
|
const transformedTask = transformData(pascalToCamelCaseKeys(response.data), TaskMap);
|
|
9686
|
-
//
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
return this.
|
|
9715
|
+
// Get task type from response and fetch type-specific data
|
|
9716
|
+
const resolvedFolderId = folderId || transformedTask.folderId;
|
|
9717
|
+
if (transformedTask.type in TASK_TYPE_ENDPOINTS) {
|
|
9718
|
+
return this.getByTaskType(id, resolvedFolderId, transformedTask.type, restOptions);
|
|
9690
9719
|
}
|
|
9691
9720
|
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: 'status', valueMap: TaskStatusMap }), this);
|
|
9692
9721
|
}
|
|
@@ -9875,24 +9904,33 @@ class TaskService extends BaseService {
|
|
|
9875
9904
|
};
|
|
9876
9905
|
}
|
|
9877
9906
|
/**
|
|
9878
|
-
*
|
|
9907
|
+
* Routes to the type-specific endpoint based on task type.
|
|
9908
|
+
*/
|
|
9909
|
+
getByTaskType(id, folderId, taskType, options = {}) {
|
|
9910
|
+
const endpoint = TASK_TYPE_ENDPOINTS[taskType];
|
|
9911
|
+
const extraParams = taskType === TaskType.Form ? { expandOnFormLayout: true, ...options } : options;
|
|
9912
|
+
return this.getTaskByTypeEndpoint(id, folderId, endpoint, extraParams);
|
|
9913
|
+
}
|
|
9914
|
+
/**
|
|
9915
|
+
* Fetches a task from a type-specific endpoint.
|
|
9879
9916
|
*
|
|
9880
|
-
* @param id - The
|
|
9917
|
+
* @param id - The task ID
|
|
9881
9918
|
* @param folderId - Required folder ID
|
|
9882
|
-
* @param
|
|
9883
|
-
* @
|
|
9919
|
+
* @param endpoint - The type-specific endpoint to call
|
|
9920
|
+
* @param extraParams - Additional query parameters (e.g. form options)
|
|
9921
|
+
* @returns Promise resolving to the task
|
|
9884
9922
|
*/
|
|
9885
|
-
async
|
|
9923
|
+
async getTaskByTypeEndpoint(id, folderId, endpoint, extraParams = {}) {
|
|
9886
9924
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
9887
|
-
const response = await this.get(
|
|
9925
|
+
const response = await this.get(endpoint, {
|
|
9888
9926
|
params: {
|
|
9889
9927
|
taskId: id,
|
|
9890
|
-
...
|
|
9928
|
+
...extraParams
|
|
9891
9929
|
},
|
|
9892
9930
|
headers
|
|
9893
9931
|
});
|
|
9894
|
-
const
|
|
9895
|
-
return createTaskWithMethods(applyDataTransforms(
|
|
9932
|
+
const transformedTask = transformData(response.data, TaskMap);
|
|
9933
|
+
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: 'status', valueMap: TaskStatusMap }), this);
|
|
9896
9934
|
}
|
|
9897
9935
|
/**
|
|
9898
9936
|
* Adds default expand parameters to options
|
|
@@ -10907,6 +10945,316 @@ var BucketOptions;
|
|
|
10907
10945
|
BucketOptions["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
|
|
10908
10946
|
})(BucketOptions || (BucketOptions = {}));
|
|
10909
10947
|
|
|
10948
|
+
/**
|
|
10949
|
+
* Creates methods for a job response object.
|
|
10950
|
+
*
|
|
10951
|
+
* @param jobData - The raw job data from API
|
|
10952
|
+
* @param service - The job service instance
|
|
10953
|
+
* @returns Object containing job methods
|
|
10954
|
+
*/
|
|
10955
|
+
function createJobMethods(jobData, service) {
|
|
10956
|
+
return {
|
|
10957
|
+
async getOutput() {
|
|
10958
|
+
if (!jobData.key)
|
|
10959
|
+
throw new Error('Job key is undefined');
|
|
10960
|
+
if (!jobData.folderId)
|
|
10961
|
+
throw new Error('Job folderId is undefined');
|
|
10962
|
+
return service.getOutput(jobData.key, jobData.folderId);
|
|
10963
|
+
},
|
|
10964
|
+
};
|
|
10965
|
+
}
|
|
10966
|
+
/**
|
|
10967
|
+
* Creates a job response with bound methods.
|
|
10968
|
+
*
|
|
10969
|
+
* @param jobData - The raw job data from API
|
|
10970
|
+
* @param service - The job service instance
|
|
10971
|
+
* @returns A job object with added methods
|
|
10972
|
+
*/
|
|
10973
|
+
function createJobWithMethods(jobData, service) {
|
|
10974
|
+
const methods = createJobMethods(jobData, service);
|
|
10975
|
+
return Object.assign({}, jobData, methods);
|
|
10976
|
+
}
|
|
10977
|
+
|
|
10978
|
+
/**
|
|
10979
|
+
* Maps fields for Job entities to ensure consistent naming
|
|
10980
|
+
* Semantic renames only — case conversion handled by pascalToCamelCaseKeys()
|
|
10981
|
+
*/
|
|
10982
|
+
const JobMap = {
|
|
10983
|
+
creationTime: 'createdTime',
|
|
10984
|
+
lastModificationTime: 'lastModifiedTime',
|
|
10985
|
+
organizationUnitId: 'folderId',
|
|
10986
|
+
organizationUnitFullyQualifiedName: 'folderName',
|
|
10987
|
+
releaseName: 'processName',
|
|
10988
|
+
releaseVersionId: 'processVersionId',
|
|
10989
|
+
processType: 'packageType',
|
|
10990
|
+
release: 'process',
|
|
10991
|
+
};
|
|
10992
|
+
|
|
10993
|
+
/**
|
|
10994
|
+
* Maps fields for Attachment entities to ensure consistent naming
|
|
10995
|
+
*/
|
|
10996
|
+
const AttachmentsMap = {
|
|
10997
|
+
creationTime: 'createdTime',
|
|
10998
|
+
lastModificationTime: 'lastModifiedTime'
|
|
10999
|
+
};
|
|
11000
|
+
|
|
11001
|
+
class AttachmentService extends BaseService {
|
|
11002
|
+
/**
|
|
11003
|
+
* Gets an attachment by ID
|
|
11004
|
+
* @param id - The UUID of the attachment to retrieve
|
|
11005
|
+
* @param options - Optional query parameters (expand, select)
|
|
11006
|
+
* @returns Promise resolving to the attachment
|
|
11007
|
+
*
|
|
11008
|
+
* @example
|
|
11009
|
+
* ```typescript
|
|
11010
|
+
* import { Attachments } from '@uipath/uipath-typescript/attachments';
|
|
11011
|
+
*
|
|
11012
|
+
* const attachments = new Attachments(sdk);
|
|
11013
|
+
* const attachment = await attachments.getById('12345678-1234-1234-1234-123456789abc');
|
|
11014
|
+
* ```
|
|
11015
|
+
*/
|
|
11016
|
+
async getById(id, options = {}) {
|
|
11017
|
+
if (!id) {
|
|
11018
|
+
throw new ValidationError({ message: 'id is required for getById' });
|
|
11019
|
+
}
|
|
11020
|
+
// Prefix all keys in options with $ for OData
|
|
11021
|
+
const keysToPrefix = Object.keys(options);
|
|
11022
|
+
const apiOptions = addPrefixToKeys(options, ODATA_PREFIX, keysToPrefix);
|
|
11023
|
+
const response = await this.get(ORCHESTRATOR_ATTACHMENT_ENDPOINTS.GET_BY_ID(id), {
|
|
11024
|
+
params: apiOptions,
|
|
11025
|
+
});
|
|
11026
|
+
// Transform response from PascalCase to camelCase, then apply field maps
|
|
11027
|
+
const camelCased = pascalToCamelCaseKeys(response.data);
|
|
11028
|
+
camelCased.blobFileAccess = transformData(camelCased.blobFileAccess, BucketMap);
|
|
11029
|
+
return transformData(camelCased, AttachmentsMap);
|
|
11030
|
+
}
|
|
11031
|
+
}
|
|
11032
|
+
__decorate([
|
|
11033
|
+
track('Attachments.GetById')
|
|
11034
|
+
], AttachmentService.prototype, "getById", null);
|
|
11035
|
+
|
|
11036
|
+
/**
|
|
11037
|
+
* Service for interacting with UiPath Orchestrator Jobs API
|
|
11038
|
+
*/
|
|
11039
|
+
class JobService extends FolderScopedService {
|
|
11040
|
+
/**
|
|
11041
|
+
* Creates an instance of the Jobs service.
|
|
11042
|
+
*
|
|
11043
|
+
* @param instance - UiPath SDK instance providing authentication and configuration
|
|
11044
|
+
*/
|
|
11045
|
+
constructor(instance) {
|
|
11046
|
+
super(instance);
|
|
11047
|
+
this.attachmentService = new AttachmentService(instance);
|
|
11048
|
+
}
|
|
11049
|
+
/**
|
|
11050
|
+
* Gets all jobs across folders with optional filtering and pagination.
|
|
11051
|
+
*
|
|
11052
|
+
* Returns jobs with full details including state, timing, and input/output arguments.
|
|
11053
|
+
* Pass `folderId` to scope the query to a specific folder.
|
|
11054
|
+
*
|
|
11055
|
+
* !!! info "Input and output fields are not included in `getAll` responses"
|
|
11056
|
+
* The `inputArguments`, `inputFile`, `outputArguments`, and `outputFile` fields will always be `null` in the `getAll` response. To retrieve a job's output, use the {@link getOutput} method with the job's `key` and `folderId`.
|
|
11057
|
+
*
|
|
11058
|
+
* @param options - Query options including optional folderId, filtering, and pagination options
|
|
11059
|
+
* @returns Promise resolving to either an array of jobs {@link NonPaginatedResponse}<{@link JobGetResponse}> or a {@link PaginatedResponse}<{@link JobGetResponse}> when pagination options are used.
|
|
11060
|
+
* {@link JobGetResponse}
|
|
11061
|
+
* @example
|
|
11062
|
+
* ```typescript
|
|
11063
|
+
* // Get all jobs
|
|
11064
|
+
* const allJobs = await jobs.getAll();
|
|
11065
|
+
*
|
|
11066
|
+
* // Get all jobs in a specific folder
|
|
11067
|
+
* const folderJobs = await jobs.getAll({ folderId: <folderId> });
|
|
11068
|
+
*
|
|
11069
|
+
* // With filtering
|
|
11070
|
+
* const runningJobs = await jobs.getAll({
|
|
11071
|
+
* filter: "state eq 'Running'"
|
|
11072
|
+
* });
|
|
11073
|
+
*
|
|
11074
|
+
* // First page with pagination
|
|
11075
|
+
* const page1 = await jobs.getAll({ pageSize: 10 });
|
|
11076
|
+
*
|
|
11077
|
+
* // Navigate using cursor
|
|
11078
|
+
* if (page1.hasNextPage) {
|
|
11079
|
+
* const page2 = await jobs.getAll({ cursor: page1.nextCursor });
|
|
11080
|
+
* }
|
|
11081
|
+
*
|
|
11082
|
+
* // Jump to specific page
|
|
11083
|
+
* const page5 = await jobs.getAll({
|
|
11084
|
+
* jumpToPage: 5,
|
|
11085
|
+
* pageSize: 10
|
|
11086
|
+
* });
|
|
11087
|
+
* ```
|
|
11088
|
+
*/
|
|
11089
|
+
async getAll(options) {
|
|
11090
|
+
const transformJobResponse = (job) => {
|
|
11091
|
+
const rawJob = transformData(pascalToCamelCaseKeys(job), JobMap);
|
|
11092
|
+
return createJobWithMethods(rawJob, this);
|
|
11093
|
+
};
|
|
11094
|
+
return PaginationHelpers.getAll({
|
|
11095
|
+
serviceAccess: this.createPaginationServiceAccess(),
|
|
11096
|
+
getEndpoint: () => JOB_ENDPOINTS.GET_ALL,
|
|
11097
|
+
getByFolderEndpoint: JOB_ENDPOINTS.GET_ALL,
|
|
11098
|
+
transformFn: transformJobResponse,
|
|
11099
|
+
pagination: {
|
|
11100
|
+
paginationType: PaginationType.OFFSET,
|
|
11101
|
+
itemsField: ODATA_PAGINATION.ITEMS_FIELD,
|
|
11102
|
+
totalCountField: ODATA_PAGINATION.TOTAL_COUNT_FIELD,
|
|
11103
|
+
paginationParams: {
|
|
11104
|
+
pageSizeParam: ODATA_OFFSET_PARAMS.PAGE_SIZE_PARAM,
|
|
11105
|
+
offsetParam: ODATA_OFFSET_PARAMS.OFFSET_PARAM,
|
|
11106
|
+
countParam: ODATA_OFFSET_PARAMS.COUNT_PARAM,
|
|
11107
|
+
},
|
|
11108
|
+
},
|
|
11109
|
+
}, options);
|
|
11110
|
+
}
|
|
11111
|
+
/**
|
|
11112
|
+
* Gets the output of a completed job.
|
|
11113
|
+
*
|
|
11114
|
+
* Retrieves the job's output arguments, handling both inline output (stored directly on the job
|
|
11115
|
+
* as a JSON string in `outputArguments`) and file-based output (stored as a blob attachment for
|
|
11116
|
+
* large outputs). Returns the parsed JSON output or `null` if the job has no output.
|
|
11117
|
+
*
|
|
11118
|
+
* @param jobKey - The unique key (GUID) of the job to retrieve output from
|
|
11119
|
+
* @param folderId - The folder ID where the job resides
|
|
11120
|
+
* @returns Promise resolving to the parsed output as `Record<string, unknown>`, or `null` if no output exists
|
|
11121
|
+
*
|
|
11122
|
+
* @example
|
|
11123
|
+
* ```typescript
|
|
11124
|
+
* // Get output from a completed job
|
|
11125
|
+
* const output = await jobs.getOutput(<jobKey>, <folderId>);
|
|
11126
|
+
*
|
|
11127
|
+
* if (output) {
|
|
11128
|
+
* console.log('Job output:', output);
|
|
11129
|
+
* }
|
|
11130
|
+
* ```
|
|
11131
|
+
*
|
|
11132
|
+
* @example
|
|
11133
|
+
* ```typescript
|
|
11134
|
+
* // Get output using bound method (jobKey and folderId are taken from the job object)
|
|
11135
|
+
* const allJobs = await jobs.getAll();
|
|
11136
|
+
* const completedJob = allJobs.items.find(j => j.state === JobState.Successful);
|
|
11137
|
+
*
|
|
11138
|
+
* if (completedJob) {
|
|
11139
|
+
* const output = await completedJob.getOutput();
|
|
11140
|
+
* }
|
|
11141
|
+
* ```
|
|
11142
|
+
*/
|
|
11143
|
+
async getOutput(jobKey, folderId) {
|
|
11144
|
+
if (!jobKey) {
|
|
11145
|
+
throw new ValidationError({ message: 'jobKey is required for getOutput' });
|
|
11146
|
+
}
|
|
11147
|
+
const job = await this.fetchJobByKey(jobKey, folderId);
|
|
11148
|
+
if (job.OutputArguments) {
|
|
11149
|
+
try {
|
|
11150
|
+
return JSON.parse(job.OutputArguments);
|
|
11151
|
+
}
|
|
11152
|
+
catch {
|
|
11153
|
+
throw new ServerError({ message: 'Failed to parse job output arguments as JSON' });
|
|
11154
|
+
}
|
|
11155
|
+
}
|
|
11156
|
+
if (job.OutputFile) {
|
|
11157
|
+
return this.downloadOutputFile(job.OutputFile);
|
|
11158
|
+
}
|
|
11159
|
+
return null;
|
|
11160
|
+
}
|
|
11161
|
+
/**
|
|
11162
|
+
* Fetches a job by its Key (GUID) using the GetByKey endpoint.
|
|
11163
|
+
* Only selects fields needed for output extraction.
|
|
11164
|
+
*/
|
|
11165
|
+
async fetchJobByKey(jobKey, folderId) {
|
|
11166
|
+
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
11167
|
+
const response = await this.get(JOB_ENDPOINTS.GET_BY_KEY(jobKey), {
|
|
11168
|
+
params: {
|
|
11169
|
+
$select: 'OutputArguments,OutputFile',
|
|
11170
|
+
},
|
|
11171
|
+
headers,
|
|
11172
|
+
});
|
|
11173
|
+
return response.data;
|
|
11174
|
+
}
|
|
11175
|
+
/**
|
|
11176
|
+
* Downloads the output file content via the Attachments API.
|
|
11177
|
+
* 1. Fetches blob access info from the attachment using AttachmentService
|
|
11178
|
+
* 2. Downloads content from the presigned blob URI
|
|
11179
|
+
* 3. Parses and returns the JSON content
|
|
11180
|
+
*/
|
|
11181
|
+
async downloadOutputFile(outputFileKey) {
|
|
11182
|
+
const attachment = await this.attachmentService.getById(outputFileKey);
|
|
11183
|
+
const blobAccess = attachment.blobFileAccess;
|
|
11184
|
+
if (!blobAccess?.uri) {
|
|
11185
|
+
return null;
|
|
11186
|
+
}
|
|
11187
|
+
const blobHeaders = { ...blobAccess.headers };
|
|
11188
|
+
// Add auth header if the blob URI requires authenticated access
|
|
11189
|
+
if (blobAccess.requiresAuth) {
|
|
11190
|
+
const token = await this.getValidAuthToken();
|
|
11191
|
+
blobHeaders['Authorization'] = `Bearer ${token}`;
|
|
11192
|
+
}
|
|
11193
|
+
const blobResponse = await fetch(blobAccess.uri, {
|
|
11194
|
+
method: 'GET',
|
|
11195
|
+
headers: blobHeaders,
|
|
11196
|
+
});
|
|
11197
|
+
if (!blobResponse.ok) {
|
|
11198
|
+
const errorInfo = await errorResponseParser.parse(blobResponse);
|
|
11199
|
+
throw ErrorFactory.createFromHttpStatus(blobResponse.status, errorInfo);
|
|
11200
|
+
}
|
|
11201
|
+
const content = await blobResponse.text();
|
|
11202
|
+
try {
|
|
11203
|
+
return JSON.parse(content);
|
|
11204
|
+
}
|
|
11205
|
+
catch {
|
|
11206
|
+
throw new ServerError({ message: 'Failed to parse job output file as JSON' });
|
|
11207
|
+
}
|
|
11208
|
+
}
|
|
11209
|
+
}
|
|
11210
|
+
__decorate([
|
|
11211
|
+
track('Jobs.GetAll')
|
|
11212
|
+
], JobService.prototype, "getAll", null);
|
|
11213
|
+
__decorate([
|
|
11214
|
+
track('Jobs.GetOutput')
|
|
11215
|
+
], JobService.prototype, "getOutput", null);
|
|
11216
|
+
|
|
11217
|
+
/**
|
|
11218
|
+
* Enum for job sub-state
|
|
11219
|
+
*/
|
|
11220
|
+
var JobSubState;
|
|
11221
|
+
(function (JobSubState) {
|
|
11222
|
+
JobSubState["WithFaults"] = "WITH_FAULTS";
|
|
11223
|
+
JobSubState["Manually"] = "MANUALLY";
|
|
11224
|
+
})(JobSubState || (JobSubState = {}));
|
|
11225
|
+
/**
|
|
11226
|
+
* Enum for serverless job type
|
|
11227
|
+
*/
|
|
11228
|
+
var ServerlessJobType;
|
|
11229
|
+
(function (ServerlessJobType) {
|
|
11230
|
+
ServerlessJobType["RobotJob"] = "RobotJob";
|
|
11231
|
+
ServerlessJobType["WebApp"] = "WebApp";
|
|
11232
|
+
ServerlessJobType["LoadTest"] = "LoadTest";
|
|
11233
|
+
ServerlessJobType["StudioWebDesigner"] = "StudioWebDesigner";
|
|
11234
|
+
ServerlessJobType["PublishStudioProject"] = "PublishStudioProject";
|
|
11235
|
+
ServerlessJobType["JsApi"] = "JsApi";
|
|
11236
|
+
ServerlessJobType["PythonCodedAgent"] = "PythonCodedAgent";
|
|
11237
|
+
ServerlessJobType["MCPServer"] = "MCPServer";
|
|
11238
|
+
ServerlessJobType["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
|
|
11239
|
+
ServerlessJobType["PythonAgent"] = "PythonAgent";
|
|
11240
|
+
})(ServerlessJobType || (ServerlessJobType = {}));
|
|
11241
|
+
|
|
11242
|
+
/**
|
|
11243
|
+
* Common enum for job state used across services
|
|
11244
|
+
*/
|
|
11245
|
+
var JobState;
|
|
11246
|
+
(function (JobState) {
|
|
11247
|
+
JobState["Pending"] = "Pending";
|
|
11248
|
+
JobState["Running"] = "Running";
|
|
11249
|
+
JobState["Stopping"] = "Stopping";
|
|
11250
|
+
JobState["Terminating"] = "Terminating";
|
|
11251
|
+
JobState["Faulted"] = "Faulted";
|
|
11252
|
+
JobState["Successful"] = "Successful";
|
|
11253
|
+
JobState["Stopped"] = "Stopped";
|
|
11254
|
+
JobState["Suspended"] = "Suspended";
|
|
11255
|
+
JobState["Resumed"] = "Resumed";
|
|
11256
|
+
})(JobState || (JobState = {}));
|
|
11257
|
+
|
|
10910
11258
|
/**
|
|
10911
11259
|
* Maps fields for Process entities to ensure consistent naming
|
|
10912
11260
|
*/
|
|
@@ -11089,6 +11437,9 @@ var PackageType;
|
|
|
11089
11437
|
PackageType["Api"] = "Api";
|
|
11090
11438
|
PackageType["MCPServer"] = "MCPServer";
|
|
11091
11439
|
PackageType["BusinessRules"] = "BusinessRules";
|
|
11440
|
+
PackageType["CaseManagement"] = "CaseManagement";
|
|
11441
|
+
PackageType["Flow"] = "Flow";
|
|
11442
|
+
PackageType["Function"] = "Function";
|
|
11092
11443
|
})(PackageType || (PackageType = {}));
|
|
11093
11444
|
/**
|
|
11094
11445
|
* Enum for job priority
|
|
@@ -11167,6 +11518,36 @@ var PackageSourceType;
|
|
|
11167
11518
|
PackageSourceType["AgentHub"] = "AgentHub";
|
|
11168
11519
|
PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11169
11520
|
})(PackageSourceType || (PackageSourceType = {}));
|
|
11521
|
+
/**
|
|
11522
|
+
* Enum for job source type
|
|
11523
|
+
*/
|
|
11524
|
+
var JobSourceType;
|
|
11525
|
+
(function (JobSourceType) {
|
|
11526
|
+
JobSourceType["Manual"] = "Manual";
|
|
11527
|
+
JobSourceType["Schedule"] = "Schedule";
|
|
11528
|
+
JobSourceType["Agent"] = "Agent";
|
|
11529
|
+
JobSourceType["Queue"] = "Queue";
|
|
11530
|
+
JobSourceType["StudioWeb"] = "StudioWeb";
|
|
11531
|
+
JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
11532
|
+
JobSourceType["StudioDesktop"] = "StudioDesktop";
|
|
11533
|
+
JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
11534
|
+
JobSourceType["Apps"] = "Apps";
|
|
11535
|
+
JobSourceType["SAP"] = "SAP";
|
|
11536
|
+
JobSourceType["HttpTrigger"] = "HttpTrigger";
|
|
11537
|
+
JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
11538
|
+
JobSourceType["RobotAPI"] = "RobotAPI";
|
|
11539
|
+
JobSourceType["CommandLine"] = "CommandLine";
|
|
11540
|
+
JobSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
11541
|
+
JobSourceType["Autopilot"] = "Autopilot";
|
|
11542
|
+
JobSourceType["TestManager"] = "TestManager";
|
|
11543
|
+
JobSourceType["AgentService"] = "AgentService";
|
|
11544
|
+
JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11545
|
+
JobSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
11546
|
+
JobSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
11547
|
+
JobSourceType["AgentHub"] = "AgentHub";
|
|
11548
|
+
JobSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11549
|
+
JobSourceType["CaseManagement"] = "CaseManagement";
|
|
11550
|
+
})(JobSourceType || (JobSourceType = {}));
|
|
11170
11551
|
/**
|
|
11171
11552
|
* Enum for stop strategy
|
|
11172
11553
|
*/
|
|
@@ -11175,6 +11556,39 @@ var StopStrategy;
|
|
|
11175
11556
|
StopStrategy["SoftStop"] = "SoftStop";
|
|
11176
11557
|
StopStrategy["Kill"] = "Kill";
|
|
11177
11558
|
})(StopStrategy || (StopStrategy = {}));
|
|
11559
|
+
/**
|
|
11560
|
+
* Enum for runtime type
|
|
11561
|
+
*/
|
|
11562
|
+
var RuntimeType;
|
|
11563
|
+
(function (RuntimeType) {
|
|
11564
|
+
RuntimeType["NonProduction"] = "NonProduction";
|
|
11565
|
+
RuntimeType["Attended"] = "Attended";
|
|
11566
|
+
RuntimeType["Unattended"] = "Unattended";
|
|
11567
|
+
RuntimeType["Development"] = "Development";
|
|
11568
|
+
RuntimeType["Studio"] = "Studio";
|
|
11569
|
+
RuntimeType["RpaDeveloper"] = "RpaDeveloper";
|
|
11570
|
+
RuntimeType["StudioX"] = "StudioX";
|
|
11571
|
+
RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
|
|
11572
|
+
RuntimeType["Headless"] = "Headless";
|
|
11573
|
+
RuntimeType["StudioPro"] = "StudioPro";
|
|
11574
|
+
RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
11575
|
+
RuntimeType["TestAutomation"] = "TestAutomation";
|
|
11576
|
+
RuntimeType["AutomationCloud"] = "AutomationCloud";
|
|
11577
|
+
RuntimeType["Serverless"] = "Serverless";
|
|
11578
|
+
RuntimeType["AutomationKit"] = "AutomationKit";
|
|
11579
|
+
RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
11580
|
+
RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
11581
|
+
RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
11582
|
+
RuntimeType["Hosting"] = "Hosting";
|
|
11583
|
+
RuntimeType["AssistantWeb"] = "AssistantWeb";
|
|
11584
|
+
RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11585
|
+
RuntimeType["AgentService"] = "AgentService";
|
|
11586
|
+
RuntimeType["AppTest"] = "AppTest";
|
|
11587
|
+
RuntimeType["PerformanceTest"] = "PerformanceTest";
|
|
11588
|
+
RuntimeType["BusinessRule"] = "BusinessRule";
|
|
11589
|
+
RuntimeType["CaseManagement"] = "CaseManagement";
|
|
11590
|
+
RuntimeType["Flow"] = "Flow";
|
|
11591
|
+
})(RuntimeType || (RuntimeType = {}));
|
|
11178
11592
|
/**
|
|
11179
11593
|
* Enum for job type
|
|
11180
11594
|
*/
|
|
@@ -11412,22 +11826,6 @@ class UiPath extends UiPath$1 {
|
|
|
11412
11826
|
}
|
|
11413
11827
|
}
|
|
11414
11828
|
|
|
11415
|
-
/**
|
|
11416
|
-
* Common enum for job state used across services
|
|
11417
|
-
*/
|
|
11418
|
-
var JobState;
|
|
11419
|
-
(function (JobState) {
|
|
11420
|
-
JobState["Pending"] = "Pending";
|
|
11421
|
-
JobState["Running"] = "Running";
|
|
11422
|
-
JobState["Stopping"] = "Stopping";
|
|
11423
|
-
JobState["Terminating"] = "Terminating";
|
|
11424
|
-
JobState["Faulted"] = "Faulted";
|
|
11425
|
-
JobState["Successful"] = "Successful";
|
|
11426
|
-
JobState["Stopped"] = "Stopped";
|
|
11427
|
-
JobState["Suspended"] = "Suspended";
|
|
11428
|
-
JobState["Resumed"] = "Resumed";
|
|
11429
|
-
})(JobState || (JobState = {}));
|
|
11430
|
-
|
|
11431
11829
|
/**
|
|
11432
11830
|
* Common Constants for Conversational Agent
|
|
11433
11831
|
*/
|
|
@@ -11761,4 +12159,4 @@ function getAppBase() {
|
|
|
11761
12159
|
return getMetaTagContent(UiPathMetaTags.APP_BASE) || '/';
|
|
11762
12160
|
}
|
|
11763
12161
|
|
|
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 };
|
|
12162
|
+
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, createJobWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|