@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.cjs
CHANGED
|
@@ -4387,6 +4387,235 @@ function getErrorDetails(error) {
|
|
|
4387
4387
|
};
|
|
4388
4388
|
}
|
|
4389
4389
|
|
|
4390
|
+
/**
|
|
4391
|
+
* Types of tasks available in Action Center.
|
|
4392
|
+
* Each type determines the task's behavior, UI rendering, and completion requirements.
|
|
4393
|
+
*/
|
|
4394
|
+
exports.TaskType = void 0;
|
|
4395
|
+
(function (TaskType) {
|
|
4396
|
+
/** A form-based task that renders a UiPath form layout for user input */
|
|
4397
|
+
TaskType["Form"] = "FormTask";
|
|
4398
|
+
/** An externally managed task handled outside of Action Center */
|
|
4399
|
+
TaskType["External"] = "ExternalTask";
|
|
4400
|
+
/** A task powered by a UiPath App */
|
|
4401
|
+
TaskType["App"] = "AppTask";
|
|
4402
|
+
/** A document validation task for reviewing and correcting extracted document data */
|
|
4403
|
+
TaskType["DocumentValidation"] = "DocumentValidationTask";
|
|
4404
|
+
/** A document classification task for categorizing documents */
|
|
4405
|
+
TaskType["DocumentClassification"] = "DocumentClassificationTask";
|
|
4406
|
+
/** A data labeling task for annotating training data */
|
|
4407
|
+
TaskType["DataLabeling"] = "DataLabelingTask";
|
|
4408
|
+
})(exports.TaskType || (exports.TaskType = {}));
|
|
4409
|
+
exports.TaskPriority = void 0;
|
|
4410
|
+
(function (TaskPriority) {
|
|
4411
|
+
TaskPriority["Low"] = "Low";
|
|
4412
|
+
TaskPriority["Medium"] = "Medium";
|
|
4413
|
+
TaskPriority["High"] = "High";
|
|
4414
|
+
TaskPriority["Critical"] = "Critical";
|
|
4415
|
+
})(exports.TaskPriority || (exports.TaskPriority = {}));
|
|
4416
|
+
exports.TaskStatus = void 0;
|
|
4417
|
+
(function (TaskStatus) {
|
|
4418
|
+
TaskStatus["Unassigned"] = "Unassigned";
|
|
4419
|
+
TaskStatus["Pending"] = "Pending";
|
|
4420
|
+
TaskStatus["Completed"] = "Completed";
|
|
4421
|
+
})(exports.TaskStatus || (exports.TaskStatus = {}));
|
|
4422
|
+
exports.TaskSlaCriteria = void 0;
|
|
4423
|
+
(function (TaskSlaCriteria) {
|
|
4424
|
+
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
4425
|
+
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
4426
|
+
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
4427
|
+
})(exports.TaskSlaCriteria || (exports.TaskSlaCriteria = {}));
|
|
4428
|
+
exports.TaskSlaStatus = void 0;
|
|
4429
|
+
(function (TaskSlaStatus) {
|
|
4430
|
+
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
4431
|
+
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
4432
|
+
TaskSlaStatus["Overdue"] = "Overdue";
|
|
4433
|
+
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
4434
|
+
})(exports.TaskSlaStatus || (exports.TaskSlaStatus = {}));
|
|
4435
|
+
exports.TaskSourceName = void 0;
|
|
4436
|
+
(function (TaskSourceName) {
|
|
4437
|
+
TaskSourceName["Agent"] = "Agent";
|
|
4438
|
+
TaskSourceName["Workflow"] = "Workflow";
|
|
4439
|
+
TaskSourceName["Maestro"] = "Maestro";
|
|
4440
|
+
TaskSourceName["Default"] = "Default";
|
|
4441
|
+
})(exports.TaskSourceName || (exports.TaskSourceName = {}));
|
|
4442
|
+
/**
|
|
4443
|
+
* Task activity types
|
|
4444
|
+
*/
|
|
4445
|
+
exports.TaskActivityType = void 0;
|
|
4446
|
+
(function (TaskActivityType) {
|
|
4447
|
+
TaskActivityType["Created"] = "Created";
|
|
4448
|
+
TaskActivityType["Assigned"] = "Assigned";
|
|
4449
|
+
TaskActivityType["Reassigned"] = "Reassigned";
|
|
4450
|
+
TaskActivityType["Unassigned"] = "Unassigned";
|
|
4451
|
+
TaskActivityType["Saved"] = "Saved";
|
|
4452
|
+
TaskActivityType["Forwarded"] = "Forwarded";
|
|
4453
|
+
TaskActivityType["Completed"] = "Completed";
|
|
4454
|
+
TaskActivityType["Commented"] = "Commented";
|
|
4455
|
+
TaskActivityType["Deleted"] = "Deleted";
|
|
4456
|
+
TaskActivityType["BulkSaved"] = "BulkSaved";
|
|
4457
|
+
TaskActivityType["BulkCompleted"] = "BulkCompleted";
|
|
4458
|
+
TaskActivityType["FirstOpened"] = "FirstOpened";
|
|
4459
|
+
})(exports.TaskActivityType || (exports.TaskActivityType = {}));
|
|
4460
|
+
|
|
4461
|
+
/**
|
|
4462
|
+
* Base path constants for different services
|
|
4463
|
+
*/
|
|
4464
|
+
const ORCHESTRATOR_BASE = 'orchestrator_';
|
|
4465
|
+
const PIMS_BASE = 'pims_';
|
|
4466
|
+
const DATAFABRIC_BASE = 'datafabric_';
|
|
4467
|
+
const IDENTITY_BASE = 'identity_';
|
|
4468
|
+
|
|
4469
|
+
/**
|
|
4470
|
+
* Orchestrator Service Endpoints
|
|
4471
|
+
*/
|
|
4472
|
+
/**
|
|
4473
|
+
* Task Service (Action Center) Endpoints
|
|
4474
|
+
*/
|
|
4475
|
+
const TASK_ENDPOINTS = {
|
|
4476
|
+
CREATE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CreateTask`,
|
|
4477
|
+
GET_TASK_USERS: (folderId) => `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
|
|
4478
|
+
GET_TASKS_ACROSS_FOLDERS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders`,
|
|
4479
|
+
GET_TASKS_ACROSS_FOLDERS_ADMIN: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFoldersForAdmin`,
|
|
4480
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Tasks(${id})`,
|
|
4481
|
+
ASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks`,
|
|
4482
|
+
REASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks`,
|
|
4483
|
+
UNASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks`,
|
|
4484
|
+
COMPLETE_FORM_TASK: `${ORCHESTRATOR_BASE}/forms/TaskForms/CompleteTask`,
|
|
4485
|
+
COMPLETE_APP_TASK: `${ORCHESTRATOR_BASE}/tasks/AppTasks/CompleteAppTask`,
|
|
4486
|
+
COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
|
|
4487
|
+
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
4488
|
+
GET_GENERIC_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/GetTaskDataById`,
|
|
4489
|
+
GET_APP_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/AppTasks/GetAppTaskById`,
|
|
4490
|
+
};
|
|
4491
|
+
/**
|
|
4492
|
+
* Orchestrator Bucket Endpoints
|
|
4493
|
+
*/
|
|
4494
|
+
const BUCKET_ENDPOINTS = {
|
|
4495
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
|
|
4496
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders`,
|
|
4497
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})`,
|
|
4498
|
+
GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
|
|
4499
|
+
GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
4500
|
+
GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`,
|
|
4501
|
+
};
|
|
4502
|
+
/**
|
|
4503
|
+
* Orchestrator Process Service Endpoints
|
|
4504
|
+
*/
|
|
4505
|
+
const PROCESS_ENDPOINTS = {
|
|
4506
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Releases`,
|
|
4507
|
+
START_PROCESS: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`,
|
|
4508
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Releases(${id})`,
|
|
4509
|
+
};
|
|
4510
|
+
/**
|
|
4511
|
+
* Orchestrator Queue Service Endpoints
|
|
4512
|
+
*/
|
|
4513
|
+
const QUEUE_ENDPOINTS = {
|
|
4514
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions`,
|
|
4515
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders`,
|
|
4516
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/QueueDefinitions(${id})`,
|
|
4517
|
+
};
|
|
4518
|
+
/**
|
|
4519
|
+
* Orchestrator Job Service Endpoints
|
|
4520
|
+
*/
|
|
4521
|
+
const JOB_ENDPOINTS = {
|
|
4522
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Jobs`,
|
|
4523
|
+
GET_BY_KEY: (identifier) => `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.GetByKey(identifier=${identifier})`,
|
|
4524
|
+
};
|
|
4525
|
+
/**
|
|
4526
|
+
* Orchestrator Asset Service Endpoints
|
|
4527
|
+
*/
|
|
4528
|
+
const ASSET_ENDPOINTS = {
|
|
4529
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
4530
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
|
|
4531
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`,
|
|
4532
|
+
};
|
|
4533
|
+
/**
|
|
4534
|
+
* Orchestrator Attachment Service Endpoints
|
|
4535
|
+
*/
|
|
4536
|
+
const ORCHESTRATOR_ATTACHMENT_ENDPOINTS = {
|
|
4537
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Attachments(${id})`,
|
|
4538
|
+
};
|
|
4539
|
+
|
|
4540
|
+
/**
|
|
4541
|
+
* Maestro Service Endpoints
|
|
4542
|
+
*/
|
|
4543
|
+
/**
|
|
4544
|
+
* Maestro Process Service Endpoints
|
|
4545
|
+
*/
|
|
4546
|
+
const MAESTRO_ENDPOINTS = {
|
|
4547
|
+
PROCESSES: {
|
|
4548
|
+
GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
|
|
4549
|
+
GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`,
|
|
4550
|
+
},
|
|
4551
|
+
INSTANCES: {
|
|
4552
|
+
GET_ALL: `${PIMS_BASE}/api/v1/instances`,
|
|
4553
|
+
GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
|
|
4554
|
+
GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
|
|
4555
|
+
GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
|
|
4556
|
+
GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
|
|
4557
|
+
CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
|
|
4558
|
+
PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
|
|
4559
|
+
RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`,
|
|
4560
|
+
},
|
|
4561
|
+
INCIDENTS: {
|
|
4562
|
+
GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
|
|
4563
|
+
GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
|
|
4564
|
+
GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`,
|
|
4565
|
+
},
|
|
4566
|
+
CASES: {
|
|
4567
|
+
GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
|
|
4568
|
+
GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
|
|
4569
|
+
REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`,
|
|
4570
|
+
},
|
|
4571
|
+
};
|
|
4572
|
+
|
|
4573
|
+
/**
|
|
4574
|
+
* Data Fabric Service Endpoints
|
|
4575
|
+
*/
|
|
4576
|
+
/**
|
|
4577
|
+
* Data Fabric Entity Service Endpoints
|
|
4578
|
+
*/
|
|
4579
|
+
const DATA_FABRIC_ENDPOINTS = {
|
|
4580
|
+
ENTITY: {
|
|
4581
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
|
|
4582
|
+
GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
|
|
4583
|
+
GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
4584
|
+
GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
|
|
4585
|
+
INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
|
|
4586
|
+
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
4587
|
+
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
4588
|
+
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
4589
|
+
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
4590
|
+
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4591
|
+
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4592
|
+
DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4593
|
+
},
|
|
4594
|
+
CHOICESETS: {
|
|
4595
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
4596
|
+
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`,
|
|
4597
|
+
},
|
|
4598
|
+
};
|
|
4599
|
+
|
|
4600
|
+
/**
|
|
4601
|
+
* Identity/Authentication Endpoints
|
|
4602
|
+
*/
|
|
4603
|
+
/**
|
|
4604
|
+
* Identity Service Endpoints
|
|
4605
|
+
*/
|
|
4606
|
+
const IDENTITY_ENDPOINTS = {
|
|
4607
|
+
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4608
|
+
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4609
|
+
};
|
|
4610
|
+
|
|
4611
|
+
const TASK_TYPE_ENDPOINTS = {
|
|
4612
|
+
[exports.TaskType.Form]: TASK_ENDPOINTS.GET_TASK_FORM_BY_ID,
|
|
4613
|
+
[exports.TaskType.App]: TASK_ENDPOINTS.GET_APP_TASK_BY_ID,
|
|
4614
|
+
[exports.TaskType.DocumentValidation]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4615
|
+
[exports.TaskType.DocumentClassification]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4616
|
+
[exports.TaskType.External]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4617
|
+
[exports.TaskType.DataLabeling]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4618
|
+
};
|
|
4390
4619
|
var ActionCenterEventNames;
|
|
4391
4620
|
(function (ActionCenterEventNames) {
|
|
4392
4621
|
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
@@ -4764,141 +4993,6 @@ class TokenManager {
|
|
|
4764
4993
|
}
|
|
4765
4994
|
}
|
|
4766
4995
|
|
|
4767
|
-
/**
|
|
4768
|
-
* Base path constants for different services
|
|
4769
|
-
*/
|
|
4770
|
-
const ORCHESTRATOR_BASE = 'orchestrator_';
|
|
4771
|
-
const PIMS_BASE = 'pims_';
|
|
4772
|
-
const DATAFABRIC_BASE = 'datafabric_';
|
|
4773
|
-
const IDENTITY_BASE = 'identity_';
|
|
4774
|
-
|
|
4775
|
-
/**
|
|
4776
|
-
* Orchestrator Service Endpoints
|
|
4777
|
-
*/
|
|
4778
|
-
/**
|
|
4779
|
-
* Task Service (Action Center) Endpoints
|
|
4780
|
-
*/
|
|
4781
|
-
const TASK_ENDPOINTS = {
|
|
4782
|
-
CREATE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CreateTask`,
|
|
4783
|
-
GET_TASK_USERS: (folderId) => `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
|
|
4784
|
-
GET_TASKS_ACROSS_FOLDERS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders`,
|
|
4785
|
-
GET_TASKS_ACROSS_FOLDERS_ADMIN: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFoldersForAdmin`,
|
|
4786
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Tasks(${id})`,
|
|
4787
|
-
ASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks`,
|
|
4788
|
-
REASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks`,
|
|
4789
|
-
UNASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks`,
|
|
4790
|
-
COMPLETE_FORM_TASK: `${ORCHESTRATOR_BASE}/forms/TaskForms/CompleteTask`,
|
|
4791
|
-
COMPLETE_APP_TASK: `${ORCHESTRATOR_BASE}/tasks/AppTasks/CompleteAppTask`,
|
|
4792
|
-
COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
|
|
4793
|
-
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
4794
|
-
};
|
|
4795
|
-
/**
|
|
4796
|
-
* Orchestrator Bucket Endpoints
|
|
4797
|
-
*/
|
|
4798
|
-
const BUCKET_ENDPOINTS = {
|
|
4799
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
|
|
4800
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders`,
|
|
4801
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})`,
|
|
4802
|
-
GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
|
|
4803
|
-
GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
4804
|
-
GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`,
|
|
4805
|
-
};
|
|
4806
|
-
/**
|
|
4807
|
-
* Orchestrator Process Service Endpoints
|
|
4808
|
-
*/
|
|
4809
|
-
const PROCESS_ENDPOINTS = {
|
|
4810
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Releases`,
|
|
4811
|
-
START_PROCESS: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`,
|
|
4812
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Releases(${id})`,
|
|
4813
|
-
};
|
|
4814
|
-
/**
|
|
4815
|
-
* Orchestrator Queue Service Endpoints
|
|
4816
|
-
*/
|
|
4817
|
-
const QUEUE_ENDPOINTS = {
|
|
4818
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions`,
|
|
4819
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders`,
|
|
4820
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/QueueDefinitions(${id})`,
|
|
4821
|
-
};
|
|
4822
|
-
/**
|
|
4823
|
-
* Orchestrator Asset Service Endpoints
|
|
4824
|
-
*/
|
|
4825
|
-
const ASSET_ENDPOINTS = {
|
|
4826
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
4827
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
|
|
4828
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`,
|
|
4829
|
-
};
|
|
4830
|
-
|
|
4831
|
-
/**
|
|
4832
|
-
* Maestro Service Endpoints
|
|
4833
|
-
*/
|
|
4834
|
-
/**
|
|
4835
|
-
* Maestro Process Service Endpoints
|
|
4836
|
-
*/
|
|
4837
|
-
const MAESTRO_ENDPOINTS = {
|
|
4838
|
-
PROCESSES: {
|
|
4839
|
-
GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
|
|
4840
|
-
GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`,
|
|
4841
|
-
},
|
|
4842
|
-
INSTANCES: {
|
|
4843
|
-
GET_ALL: `${PIMS_BASE}/api/v1/instances`,
|
|
4844
|
-
GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
|
|
4845
|
-
GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
|
|
4846
|
-
GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
|
|
4847
|
-
GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
|
|
4848
|
-
CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
|
|
4849
|
-
PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
|
|
4850
|
-
RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`,
|
|
4851
|
-
},
|
|
4852
|
-
INCIDENTS: {
|
|
4853
|
-
GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
|
|
4854
|
-
GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
|
|
4855
|
-
GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`,
|
|
4856
|
-
},
|
|
4857
|
-
CASES: {
|
|
4858
|
-
GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
|
|
4859
|
-
GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
|
|
4860
|
-
REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`,
|
|
4861
|
-
},
|
|
4862
|
-
};
|
|
4863
|
-
|
|
4864
|
-
/**
|
|
4865
|
-
* Data Fabric Service Endpoints
|
|
4866
|
-
*/
|
|
4867
|
-
/**
|
|
4868
|
-
* Data Fabric Entity Service Endpoints
|
|
4869
|
-
*/
|
|
4870
|
-
const DATA_FABRIC_ENDPOINTS = {
|
|
4871
|
-
ENTITY: {
|
|
4872
|
-
GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
|
|
4873
|
-
GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
|
|
4874
|
-
GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
4875
|
-
GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
|
|
4876
|
-
INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
|
|
4877
|
-
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
4878
|
-
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
4879
|
-
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
4880
|
-
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
4881
|
-
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4882
|
-
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4883
|
-
DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4884
|
-
},
|
|
4885
|
-
CHOICESETS: {
|
|
4886
|
-
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
4887
|
-
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`,
|
|
4888
|
-
},
|
|
4889
|
-
};
|
|
4890
|
-
|
|
4891
|
-
/**
|
|
4892
|
-
* Identity/Authentication Endpoints
|
|
4893
|
-
*/
|
|
4894
|
-
/**
|
|
4895
|
-
* Identity Service Endpoints
|
|
4896
|
-
*/
|
|
4897
|
-
const IDENTITY_ENDPOINTS = {
|
|
4898
|
-
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4899
|
-
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4900
|
-
};
|
|
4901
|
-
|
|
4902
4996
|
class AuthService {
|
|
4903
4997
|
constructor(config, executionContext) {
|
|
4904
4998
|
// Only use stored OAuth context when completing an active callback (URL has ?code=).
|
|
@@ -5326,7 +5420,7 @@ function normalizeBaseUrl(url) {
|
|
|
5326
5420
|
// Connection string placeholder that will be replaced during build
|
|
5327
5421
|
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";
|
|
5328
5422
|
// SDK Version placeholder
|
|
5329
|
-
const SDK_VERSION = "1.
|
|
5423
|
+
const SDK_VERSION = "1.3.0";
|
|
5330
5424
|
const VERSION = "Version";
|
|
5331
5425
|
const SERVICE = "Service";
|
|
5332
5426
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -7830,11 +7924,7 @@ class EntityService extends BaseService {
|
|
|
7830
7924
|
expansionLevel: options.expansionLevel
|
|
7831
7925
|
});
|
|
7832
7926
|
const response = await this.get(DATA_FABRIC_ENDPOINTS.ENTITY.GET_RECORD_BY_ID(entityId, recordId), { params });
|
|
7833
|
-
|
|
7834
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7835
|
-
// Apply EntityMap transformations
|
|
7836
|
-
const transformedResponse = transformData(camelResponse, EntityMap);
|
|
7837
|
-
return transformedResponse;
|
|
7927
|
+
return response.data;
|
|
7838
7928
|
}
|
|
7839
7929
|
/**
|
|
7840
7930
|
* Inserts a single record into an entity by entity ID
|
|
@@ -7867,9 +7957,7 @@ class EntityService extends BaseService {
|
|
|
7867
7957
|
params,
|
|
7868
7958
|
...options
|
|
7869
7959
|
});
|
|
7870
|
-
|
|
7871
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7872
|
-
return camelResponse;
|
|
7960
|
+
return response.data;
|
|
7873
7961
|
}
|
|
7874
7962
|
/**
|
|
7875
7963
|
* Inserts data into an entity by entity ID using batch insert
|
|
@@ -7910,9 +7998,7 @@ class EntityService extends BaseService {
|
|
|
7910
7998
|
params,
|
|
7911
7999
|
...options
|
|
7912
8000
|
});
|
|
7913
|
-
|
|
7914
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7915
|
-
return camelResponse;
|
|
8001
|
+
return response.data;
|
|
7916
8002
|
}
|
|
7917
8003
|
/**
|
|
7918
8004
|
* Updates a single record in an entity by entity ID
|
|
@@ -7946,9 +8032,7 @@ class EntityService extends BaseService {
|
|
|
7946
8032
|
params,
|
|
7947
8033
|
...options
|
|
7948
8034
|
});
|
|
7949
|
-
|
|
7950
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7951
|
-
return camelResponse;
|
|
8035
|
+
return response.data;
|
|
7952
8036
|
}
|
|
7953
8037
|
/**
|
|
7954
8038
|
* Updates data in an entity by entity ID
|
|
@@ -7990,9 +8074,7 @@ class EntityService extends BaseService {
|
|
|
7990
8074
|
params,
|
|
7991
8075
|
...options
|
|
7992
8076
|
});
|
|
7993
|
-
|
|
7994
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7995
|
-
return camelResponse;
|
|
8077
|
+
return response.data;
|
|
7996
8078
|
}
|
|
7997
8079
|
/**
|
|
7998
8080
|
* Deletes data from an entity by entity ID
|
|
@@ -8022,9 +8104,7 @@ class EntityService extends BaseService {
|
|
|
8022
8104
|
params,
|
|
8023
8105
|
...options
|
|
8024
8106
|
});
|
|
8025
|
-
|
|
8026
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
8027
|
-
return camelResponse;
|
|
8107
|
+
return response.data;
|
|
8028
8108
|
}
|
|
8029
8109
|
/**
|
|
8030
8110
|
* Gets all entities in the system
|
|
@@ -8076,7 +8156,7 @@ class EntityService extends BaseService {
|
|
|
8076
8156
|
*
|
|
8077
8157
|
* // Get the recordId from getAllRecords()
|
|
8078
8158
|
* const records = await entities.getAllRecords(entityId);
|
|
8079
|
-
* const recordId = records[0].
|
|
8159
|
+
* const recordId = records[0].Id;
|
|
8080
8160
|
*
|
|
8081
8161
|
* // Download attachment for a specific record and field
|
|
8082
8162
|
* const blob = await entities.downloadAttachment(entityId, recordId, 'Documents');
|
|
@@ -8110,7 +8190,7 @@ class EntityService extends BaseService {
|
|
|
8110
8190
|
*
|
|
8111
8191
|
* // Get the recordId from getAllRecords()
|
|
8112
8192
|
* const records = await entities.getAllRecords(entityId);
|
|
8113
|
-
* const recordId = records[0].
|
|
8193
|
+
* const recordId = records[0].Id;
|
|
8114
8194
|
*
|
|
8115
8195
|
* // Upload a file attachment
|
|
8116
8196
|
* const response = await entities.uploadAttachment(entityId, recordId, 'Documents', file);
|
|
@@ -8126,9 +8206,7 @@ class EntityService extends BaseService {
|
|
|
8126
8206
|
}
|
|
8127
8207
|
const params = createParams({ expansionLevel: options?.expansionLevel });
|
|
8128
8208
|
const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPLOAD_ATTACHMENT(entityId, recordId, fieldName), formData, { params });
|
|
8129
|
-
|
|
8130
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
8131
|
-
return camelResponse;
|
|
8209
|
+
return response.data;
|
|
8132
8210
|
}
|
|
8133
8211
|
/**
|
|
8134
8212
|
* Removes an attachment from a File-type field of an entity record
|
|
@@ -8150,7 +8228,7 @@ class EntityService extends BaseService {
|
|
|
8150
8228
|
*
|
|
8151
8229
|
* // Get the recordId from getAllRecords()
|
|
8152
8230
|
* const records = await entities.getAllRecords(entityId);
|
|
8153
|
-
* const recordId = records[0].
|
|
8231
|
+
* const recordId = records[0].Id;
|
|
8154
8232
|
*
|
|
8155
8233
|
* // Delete attachment for a specific record and field
|
|
8156
8234
|
* await entities.deleteAttachment(entityId, recordId, 'Documents');
|
|
@@ -9318,67 +9396,31 @@ const CASE_STAGE_CONSTANTS = {
|
|
|
9318
9396
|
*/
|
|
9319
9397
|
const CASE_INSTANCE_TASK_FILTER = (caseInstanceId) => `Tags/any(tags:tags/DisplayName eq '${caseInstanceId}') and (IsDeleted eq false)`;
|
|
9320
9398
|
/**
|
|
9321
|
-
* Default expand parameters for case instance tasks
|
|
9322
|
-
*/
|
|
9323
|
-
const CASE_INSTANCE_TASK_EXPAND = 'AssignedToUser,Activities';
|
|
9324
|
-
|
|
9325
|
-
exports.TaskType = void 0;
|
|
9326
|
-
(function (TaskType) {
|
|
9327
|
-
TaskType["Form"] = "FormTask";
|
|
9328
|
-
TaskType["External"] = "ExternalTask";
|
|
9329
|
-
TaskType["App"] = "AppTask";
|
|
9330
|
-
})(exports.TaskType || (exports.TaskType = {}));
|
|
9331
|
-
exports.TaskPriority = void 0;
|
|
9332
|
-
(function (TaskPriority) {
|
|
9333
|
-
TaskPriority["Low"] = "Low";
|
|
9334
|
-
TaskPriority["Medium"] = "Medium";
|
|
9335
|
-
TaskPriority["High"] = "High";
|
|
9336
|
-
TaskPriority["Critical"] = "Critical";
|
|
9337
|
-
})(exports.TaskPriority || (exports.TaskPriority = {}));
|
|
9338
|
-
exports.TaskStatus = void 0;
|
|
9339
|
-
(function (TaskStatus) {
|
|
9340
|
-
TaskStatus["Unassigned"] = "Unassigned";
|
|
9341
|
-
TaskStatus["Pending"] = "Pending";
|
|
9342
|
-
TaskStatus["Completed"] = "Completed";
|
|
9343
|
-
})(exports.TaskStatus || (exports.TaskStatus = {}));
|
|
9344
|
-
exports.TaskSlaCriteria = void 0;
|
|
9345
|
-
(function (TaskSlaCriteria) {
|
|
9346
|
-
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
9347
|
-
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
9348
|
-
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
9349
|
-
})(exports.TaskSlaCriteria || (exports.TaskSlaCriteria = {}));
|
|
9350
|
-
exports.TaskSlaStatus = void 0;
|
|
9351
|
-
(function (TaskSlaStatus) {
|
|
9352
|
-
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
9353
|
-
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
9354
|
-
TaskSlaStatus["Overdue"] = "Overdue";
|
|
9355
|
-
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
9356
|
-
})(exports.TaskSlaStatus || (exports.TaskSlaStatus = {}));
|
|
9357
|
-
exports.TaskSourceName = void 0;
|
|
9358
|
-
(function (TaskSourceName) {
|
|
9359
|
-
TaskSourceName["Agent"] = "Agent";
|
|
9360
|
-
TaskSourceName["Workflow"] = "Workflow";
|
|
9361
|
-
TaskSourceName["Maestro"] = "Maestro";
|
|
9362
|
-
TaskSourceName["Default"] = "Default";
|
|
9363
|
-
})(exports.TaskSourceName || (exports.TaskSourceName = {}));
|
|
9399
|
+
* Default expand parameters for case instance tasks
|
|
9400
|
+
*/
|
|
9401
|
+
const CASE_INSTANCE_TASK_EXPAND = 'AssignedToUser,Activities';
|
|
9402
|
+
|
|
9364
9403
|
/**
|
|
9365
|
-
*
|
|
9404
|
+
* Maps numeric TaskStatus values (from API) to TaskStatus enum values.
|
|
9405
|
+
* Extend this file with additional field mappings as needed.
|
|
9366
9406
|
*/
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9407
|
+
const TaskStatusMap = {
|
|
9408
|
+
0: exports.TaskStatus.Unassigned,
|
|
9409
|
+
1: exports.TaskStatus.Pending,
|
|
9410
|
+
2: exports.TaskStatus.Completed,
|
|
9411
|
+
};
|
|
9412
|
+
// Field mapping for time-related fields to ensure consistent naming
|
|
9413
|
+
const TaskMap = {
|
|
9414
|
+
completionTime: 'completedTime',
|
|
9415
|
+
deletionTime: 'deletedTime',
|
|
9416
|
+
lastModificationTime: 'lastModifiedTime',
|
|
9417
|
+
creationTime: 'createdTime',
|
|
9418
|
+
organizationUnitId: 'folderId'
|
|
9419
|
+
};
|
|
9420
|
+
/**
|
|
9421
|
+
* Default expand parameters
|
|
9422
|
+
*/
|
|
9423
|
+
const DEFAULT_TASK_EXPAND = 'AssignedToUser,CreatorUser,LastModifierUser';
|
|
9382
9424
|
|
|
9383
9425
|
/**
|
|
9384
9426
|
* Creates methods for a task
|
|
@@ -9437,28 +9479,6 @@ function createTaskWithMethods(taskData, service) {
|
|
|
9437
9479
|
return Object.assign({}, taskData, methods);
|
|
9438
9480
|
}
|
|
9439
9481
|
|
|
9440
|
-
/**
|
|
9441
|
-
* Maps numeric TaskStatus values (from API) to TaskStatus enum values.
|
|
9442
|
-
* Extend this file with additional field mappings as needed.
|
|
9443
|
-
*/
|
|
9444
|
-
const TaskStatusMap = {
|
|
9445
|
-
0: exports.TaskStatus.Unassigned,
|
|
9446
|
-
1: exports.TaskStatus.Pending,
|
|
9447
|
-
2: exports.TaskStatus.Completed,
|
|
9448
|
-
};
|
|
9449
|
-
// Field mapping for time-related fields to ensure consistent naming
|
|
9450
|
-
const TaskMap = {
|
|
9451
|
-
completionTime: 'completedTime',
|
|
9452
|
-
deletionTime: 'deletedTime',
|
|
9453
|
-
lastModificationTime: 'lastModifiedTime',
|
|
9454
|
-
creationTime: 'createdTime',
|
|
9455
|
-
organizationUnitId: 'folderId'
|
|
9456
|
-
};
|
|
9457
|
-
/**
|
|
9458
|
-
* Default expand parameters
|
|
9459
|
-
*/
|
|
9460
|
-
const DEFAULT_TASK_EXPAND = 'AssignedToUser,CreatorUser,LastModifierUser';
|
|
9461
|
-
|
|
9462
9482
|
/**
|
|
9463
9483
|
* Service for interacting with UiPath Tasks API
|
|
9464
9484
|
*/
|
|
@@ -9653,29 +9673,38 @@ class TaskService extends BaseService {
|
|
|
9653
9673
|
}
|
|
9654
9674
|
/**
|
|
9655
9675
|
* Gets a task by ID
|
|
9656
|
-
* IMPORTANT: For form tasks, folderId must be provided.
|
|
9657
|
-
*
|
|
9658
9676
|
* @param id - The ID of the task to retrieve
|
|
9659
|
-
* @param options - Optional query parameters
|
|
9660
|
-
* @param folderId - Optional folder ID (REQUIRED
|
|
9661
|
-
* @returns Promise resolving to the task
|
|
9662
|
-
*
|
|
9677
|
+
* @param options - Optional query parameters including taskType for faster retrieval {@link TaskGetByIdOptions}
|
|
9678
|
+
* @param folderId - Optional folder ID (REQUIRED when options.taskType is provided)
|
|
9679
|
+
* @returns Promise resolving to the task
|
|
9680
|
+
* {@link TaskGetResponse}
|
|
9663
9681
|
* @example
|
|
9664
9682
|
* ```typescript
|
|
9665
|
-
*
|
|
9683
|
+
* // Get a task by ID
|
|
9684
|
+
* const task = await tasks.getById(<taskId>);
|
|
9666
9685
|
*
|
|
9667
|
-
*
|
|
9686
|
+
* // Get a form task by ID
|
|
9687
|
+
* const formTask = await tasks.getById(<taskId>, {}, <folderId>);
|
|
9668
9688
|
*
|
|
9669
|
-
* //
|
|
9670
|
-
*
|
|
9689
|
+
* // Access form task properties
|
|
9690
|
+
* console.log(formTask.formLayout);
|
|
9671
9691
|
*
|
|
9672
|
-
* //
|
|
9692
|
+
* // Get a document validation task by ID (faster with taskType provided in the options)
|
|
9693
|
+
* const dvTask = await tasks.getById(<taskId>, { taskType: TaskType.DocumentValidation }, <folderId>);
|
|
9673
9694
|
* ```
|
|
9674
9695
|
*/
|
|
9675
9696
|
async getById(id, options = {}, folderId) {
|
|
9697
|
+
const { taskType, ...restOptions } = options;
|
|
9698
|
+
// If taskType is provided, skip the generic GET_BY_ID call and go directly to the type-specific endpoint
|
|
9699
|
+
if (taskType && taskType in TASK_TYPE_ENDPOINTS) {
|
|
9700
|
+
if (!folderId) {
|
|
9701
|
+
throw new ValidationError({ message: 'folderId is required when taskType is provided' });
|
|
9702
|
+
}
|
|
9703
|
+
return this.getByTaskType(id, folderId, taskType, restOptions);
|
|
9704
|
+
}
|
|
9676
9705
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
9677
9706
|
// Add default expand parameters
|
|
9678
|
-
const modifiedOptions = this.addDefaultExpand(
|
|
9707
|
+
const modifiedOptions = this.addDefaultExpand(restOptions);
|
|
9679
9708
|
// prefix all keys in options
|
|
9680
9709
|
const keysToPrefix = Object.keys(modifiedOptions);
|
|
9681
9710
|
const apiOptions = addPrefixToKeys(modifiedOptions, ODATA_PREFIX, keysToPrefix);
|
|
@@ -9685,10 +9714,10 @@ class TaskService extends BaseService {
|
|
|
9685
9714
|
});
|
|
9686
9715
|
// Transform response from PascalCase to camelCase and normalize time fields
|
|
9687
9716
|
const transformedTask = transformData(pascalToCamelCaseKeys(response.data), TaskMap);
|
|
9688
|
-
//
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
return this.
|
|
9717
|
+
// Get task type from response and fetch type-specific data
|
|
9718
|
+
const resolvedFolderId = folderId || transformedTask.folderId;
|
|
9719
|
+
if (transformedTask.type in TASK_TYPE_ENDPOINTS) {
|
|
9720
|
+
return this.getByTaskType(id, resolvedFolderId, transformedTask.type, restOptions);
|
|
9692
9721
|
}
|
|
9693
9722
|
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: 'status', valueMap: TaskStatusMap }), this);
|
|
9694
9723
|
}
|
|
@@ -9877,24 +9906,33 @@ class TaskService extends BaseService {
|
|
|
9877
9906
|
};
|
|
9878
9907
|
}
|
|
9879
9908
|
/**
|
|
9880
|
-
*
|
|
9909
|
+
* Routes to the type-specific endpoint based on task type.
|
|
9910
|
+
*/
|
|
9911
|
+
getByTaskType(id, folderId, taskType, options = {}) {
|
|
9912
|
+
const endpoint = TASK_TYPE_ENDPOINTS[taskType];
|
|
9913
|
+
const extraParams = taskType === exports.TaskType.Form ? { expandOnFormLayout: true, ...options } : options;
|
|
9914
|
+
return this.getTaskByTypeEndpoint(id, folderId, endpoint, extraParams);
|
|
9915
|
+
}
|
|
9916
|
+
/**
|
|
9917
|
+
* Fetches a task from a type-specific endpoint.
|
|
9881
9918
|
*
|
|
9882
|
-
* @param id - The
|
|
9919
|
+
* @param id - The task ID
|
|
9883
9920
|
* @param folderId - Required folder ID
|
|
9884
|
-
* @param
|
|
9885
|
-
* @
|
|
9921
|
+
* @param endpoint - The type-specific endpoint to call
|
|
9922
|
+
* @param extraParams - Additional query parameters (e.g. form options)
|
|
9923
|
+
* @returns Promise resolving to the task
|
|
9886
9924
|
*/
|
|
9887
|
-
async
|
|
9925
|
+
async getTaskByTypeEndpoint(id, folderId, endpoint, extraParams = {}) {
|
|
9888
9926
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
9889
|
-
const response = await this.get(
|
|
9927
|
+
const response = await this.get(endpoint, {
|
|
9890
9928
|
params: {
|
|
9891
9929
|
taskId: id,
|
|
9892
|
-
...
|
|
9930
|
+
...extraParams
|
|
9893
9931
|
},
|
|
9894
9932
|
headers
|
|
9895
9933
|
});
|
|
9896
|
-
const
|
|
9897
|
-
return createTaskWithMethods(applyDataTransforms(
|
|
9934
|
+
const transformedTask = transformData(response.data, TaskMap);
|
|
9935
|
+
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: 'status', valueMap: TaskStatusMap }), this);
|
|
9898
9936
|
}
|
|
9899
9937
|
/**
|
|
9900
9938
|
* Adds default expand parameters to options
|
|
@@ -10909,6 +10947,316 @@ exports.BucketOptions = void 0;
|
|
|
10909
10947
|
BucketOptions["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
|
|
10910
10948
|
})(exports.BucketOptions || (exports.BucketOptions = {}));
|
|
10911
10949
|
|
|
10950
|
+
/**
|
|
10951
|
+
* Creates methods for a job response object.
|
|
10952
|
+
*
|
|
10953
|
+
* @param jobData - The raw job data from API
|
|
10954
|
+
* @param service - The job service instance
|
|
10955
|
+
* @returns Object containing job methods
|
|
10956
|
+
*/
|
|
10957
|
+
function createJobMethods(jobData, service) {
|
|
10958
|
+
return {
|
|
10959
|
+
async getOutput() {
|
|
10960
|
+
if (!jobData.key)
|
|
10961
|
+
throw new Error('Job key is undefined');
|
|
10962
|
+
if (!jobData.folderId)
|
|
10963
|
+
throw new Error('Job folderId is undefined');
|
|
10964
|
+
return service.getOutput(jobData.key, jobData.folderId);
|
|
10965
|
+
},
|
|
10966
|
+
};
|
|
10967
|
+
}
|
|
10968
|
+
/**
|
|
10969
|
+
* Creates a job response with bound methods.
|
|
10970
|
+
*
|
|
10971
|
+
* @param jobData - The raw job data from API
|
|
10972
|
+
* @param service - The job service instance
|
|
10973
|
+
* @returns A job object with added methods
|
|
10974
|
+
*/
|
|
10975
|
+
function createJobWithMethods(jobData, service) {
|
|
10976
|
+
const methods = createJobMethods(jobData, service);
|
|
10977
|
+
return Object.assign({}, jobData, methods);
|
|
10978
|
+
}
|
|
10979
|
+
|
|
10980
|
+
/**
|
|
10981
|
+
* Maps fields for Job entities to ensure consistent naming
|
|
10982
|
+
* Semantic renames only — case conversion handled by pascalToCamelCaseKeys()
|
|
10983
|
+
*/
|
|
10984
|
+
const JobMap = {
|
|
10985
|
+
creationTime: 'createdTime',
|
|
10986
|
+
lastModificationTime: 'lastModifiedTime',
|
|
10987
|
+
organizationUnitId: 'folderId',
|
|
10988
|
+
organizationUnitFullyQualifiedName: 'folderName',
|
|
10989
|
+
releaseName: 'processName',
|
|
10990
|
+
releaseVersionId: 'processVersionId',
|
|
10991
|
+
processType: 'packageType',
|
|
10992
|
+
release: 'process',
|
|
10993
|
+
};
|
|
10994
|
+
|
|
10995
|
+
/**
|
|
10996
|
+
* Maps fields for Attachment entities to ensure consistent naming
|
|
10997
|
+
*/
|
|
10998
|
+
const AttachmentsMap = {
|
|
10999
|
+
creationTime: 'createdTime',
|
|
11000
|
+
lastModificationTime: 'lastModifiedTime'
|
|
11001
|
+
};
|
|
11002
|
+
|
|
11003
|
+
class AttachmentService extends BaseService {
|
|
11004
|
+
/**
|
|
11005
|
+
* Gets an attachment by ID
|
|
11006
|
+
* @param id - The UUID of the attachment to retrieve
|
|
11007
|
+
* @param options - Optional query parameters (expand, select)
|
|
11008
|
+
* @returns Promise resolving to the attachment
|
|
11009
|
+
*
|
|
11010
|
+
* @example
|
|
11011
|
+
* ```typescript
|
|
11012
|
+
* import { Attachments } from '@uipath/uipath-typescript/attachments';
|
|
11013
|
+
*
|
|
11014
|
+
* const attachments = new Attachments(sdk);
|
|
11015
|
+
* const attachment = await attachments.getById('12345678-1234-1234-1234-123456789abc');
|
|
11016
|
+
* ```
|
|
11017
|
+
*/
|
|
11018
|
+
async getById(id, options = {}) {
|
|
11019
|
+
if (!id) {
|
|
11020
|
+
throw new ValidationError({ message: 'id is required for getById' });
|
|
11021
|
+
}
|
|
11022
|
+
// Prefix all keys in options with $ for OData
|
|
11023
|
+
const keysToPrefix = Object.keys(options);
|
|
11024
|
+
const apiOptions = addPrefixToKeys(options, ODATA_PREFIX, keysToPrefix);
|
|
11025
|
+
const response = await this.get(ORCHESTRATOR_ATTACHMENT_ENDPOINTS.GET_BY_ID(id), {
|
|
11026
|
+
params: apiOptions,
|
|
11027
|
+
});
|
|
11028
|
+
// Transform response from PascalCase to camelCase, then apply field maps
|
|
11029
|
+
const camelCased = pascalToCamelCaseKeys(response.data);
|
|
11030
|
+
camelCased.blobFileAccess = transformData(camelCased.blobFileAccess, BucketMap);
|
|
11031
|
+
return transformData(camelCased, AttachmentsMap);
|
|
11032
|
+
}
|
|
11033
|
+
}
|
|
11034
|
+
__decorate([
|
|
11035
|
+
track('Attachments.GetById')
|
|
11036
|
+
], AttachmentService.prototype, "getById", null);
|
|
11037
|
+
|
|
11038
|
+
/**
|
|
11039
|
+
* Service for interacting with UiPath Orchestrator Jobs API
|
|
11040
|
+
*/
|
|
11041
|
+
class JobService extends FolderScopedService {
|
|
11042
|
+
/**
|
|
11043
|
+
* Creates an instance of the Jobs service.
|
|
11044
|
+
*
|
|
11045
|
+
* @param instance - UiPath SDK instance providing authentication and configuration
|
|
11046
|
+
*/
|
|
11047
|
+
constructor(instance) {
|
|
11048
|
+
super(instance);
|
|
11049
|
+
this.attachmentService = new AttachmentService(instance);
|
|
11050
|
+
}
|
|
11051
|
+
/**
|
|
11052
|
+
* Gets all jobs across folders with optional filtering and pagination.
|
|
11053
|
+
*
|
|
11054
|
+
* Returns jobs with full details including state, timing, and input/output arguments.
|
|
11055
|
+
* Pass `folderId` to scope the query to a specific folder.
|
|
11056
|
+
*
|
|
11057
|
+
* !!! info "Input and output fields are not included in `getAll` responses"
|
|
11058
|
+
* 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`.
|
|
11059
|
+
*
|
|
11060
|
+
* @param options - Query options including optional folderId, filtering, and pagination options
|
|
11061
|
+
* @returns Promise resolving to either an array of jobs {@link NonPaginatedResponse}<{@link JobGetResponse}> or a {@link PaginatedResponse}<{@link JobGetResponse}> when pagination options are used.
|
|
11062
|
+
* {@link JobGetResponse}
|
|
11063
|
+
* @example
|
|
11064
|
+
* ```typescript
|
|
11065
|
+
* // Get all jobs
|
|
11066
|
+
* const allJobs = await jobs.getAll();
|
|
11067
|
+
*
|
|
11068
|
+
* // Get all jobs in a specific folder
|
|
11069
|
+
* const folderJobs = await jobs.getAll({ folderId: <folderId> });
|
|
11070
|
+
*
|
|
11071
|
+
* // With filtering
|
|
11072
|
+
* const runningJobs = await jobs.getAll({
|
|
11073
|
+
* filter: "state eq 'Running'"
|
|
11074
|
+
* });
|
|
11075
|
+
*
|
|
11076
|
+
* // First page with pagination
|
|
11077
|
+
* const page1 = await jobs.getAll({ pageSize: 10 });
|
|
11078
|
+
*
|
|
11079
|
+
* // Navigate using cursor
|
|
11080
|
+
* if (page1.hasNextPage) {
|
|
11081
|
+
* const page2 = await jobs.getAll({ cursor: page1.nextCursor });
|
|
11082
|
+
* }
|
|
11083
|
+
*
|
|
11084
|
+
* // Jump to specific page
|
|
11085
|
+
* const page5 = await jobs.getAll({
|
|
11086
|
+
* jumpToPage: 5,
|
|
11087
|
+
* pageSize: 10
|
|
11088
|
+
* });
|
|
11089
|
+
* ```
|
|
11090
|
+
*/
|
|
11091
|
+
async getAll(options) {
|
|
11092
|
+
const transformJobResponse = (job) => {
|
|
11093
|
+
const rawJob = transformData(pascalToCamelCaseKeys(job), JobMap);
|
|
11094
|
+
return createJobWithMethods(rawJob, this);
|
|
11095
|
+
};
|
|
11096
|
+
return PaginationHelpers.getAll({
|
|
11097
|
+
serviceAccess: this.createPaginationServiceAccess(),
|
|
11098
|
+
getEndpoint: () => JOB_ENDPOINTS.GET_ALL,
|
|
11099
|
+
getByFolderEndpoint: JOB_ENDPOINTS.GET_ALL,
|
|
11100
|
+
transformFn: transformJobResponse,
|
|
11101
|
+
pagination: {
|
|
11102
|
+
paginationType: PaginationType.OFFSET,
|
|
11103
|
+
itemsField: ODATA_PAGINATION.ITEMS_FIELD,
|
|
11104
|
+
totalCountField: ODATA_PAGINATION.TOTAL_COUNT_FIELD,
|
|
11105
|
+
paginationParams: {
|
|
11106
|
+
pageSizeParam: ODATA_OFFSET_PARAMS.PAGE_SIZE_PARAM,
|
|
11107
|
+
offsetParam: ODATA_OFFSET_PARAMS.OFFSET_PARAM,
|
|
11108
|
+
countParam: ODATA_OFFSET_PARAMS.COUNT_PARAM,
|
|
11109
|
+
},
|
|
11110
|
+
},
|
|
11111
|
+
}, options);
|
|
11112
|
+
}
|
|
11113
|
+
/**
|
|
11114
|
+
* Gets the output of a completed job.
|
|
11115
|
+
*
|
|
11116
|
+
* Retrieves the job's output arguments, handling both inline output (stored directly on the job
|
|
11117
|
+
* as a JSON string in `outputArguments`) and file-based output (stored as a blob attachment for
|
|
11118
|
+
* large outputs). Returns the parsed JSON output or `null` if the job has no output.
|
|
11119
|
+
*
|
|
11120
|
+
* @param jobKey - The unique key (GUID) of the job to retrieve output from
|
|
11121
|
+
* @param folderId - The folder ID where the job resides
|
|
11122
|
+
* @returns Promise resolving to the parsed output as `Record<string, unknown>`, or `null` if no output exists
|
|
11123
|
+
*
|
|
11124
|
+
* @example
|
|
11125
|
+
* ```typescript
|
|
11126
|
+
* // Get output from a completed job
|
|
11127
|
+
* const output = await jobs.getOutput(<jobKey>, <folderId>);
|
|
11128
|
+
*
|
|
11129
|
+
* if (output) {
|
|
11130
|
+
* console.log('Job output:', output);
|
|
11131
|
+
* }
|
|
11132
|
+
* ```
|
|
11133
|
+
*
|
|
11134
|
+
* @example
|
|
11135
|
+
* ```typescript
|
|
11136
|
+
* // Get output using bound method (jobKey and folderId are taken from the job object)
|
|
11137
|
+
* const allJobs = await jobs.getAll();
|
|
11138
|
+
* const completedJob = allJobs.items.find(j => j.state === JobState.Successful);
|
|
11139
|
+
*
|
|
11140
|
+
* if (completedJob) {
|
|
11141
|
+
* const output = await completedJob.getOutput();
|
|
11142
|
+
* }
|
|
11143
|
+
* ```
|
|
11144
|
+
*/
|
|
11145
|
+
async getOutput(jobKey, folderId) {
|
|
11146
|
+
if (!jobKey) {
|
|
11147
|
+
throw new ValidationError({ message: 'jobKey is required for getOutput' });
|
|
11148
|
+
}
|
|
11149
|
+
const job = await this.fetchJobByKey(jobKey, folderId);
|
|
11150
|
+
if (job.OutputArguments) {
|
|
11151
|
+
try {
|
|
11152
|
+
return JSON.parse(job.OutputArguments);
|
|
11153
|
+
}
|
|
11154
|
+
catch {
|
|
11155
|
+
throw new ServerError({ message: 'Failed to parse job output arguments as JSON' });
|
|
11156
|
+
}
|
|
11157
|
+
}
|
|
11158
|
+
if (job.OutputFile) {
|
|
11159
|
+
return this.downloadOutputFile(job.OutputFile);
|
|
11160
|
+
}
|
|
11161
|
+
return null;
|
|
11162
|
+
}
|
|
11163
|
+
/**
|
|
11164
|
+
* Fetches a job by its Key (GUID) using the GetByKey endpoint.
|
|
11165
|
+
* Only selects fields needed for output extraction.
|
|
11166
|
+
*/
|
|
11167
|
+
async fetchJobByKey(jobKey, folderId) {
|
|
11168
|
+
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
11169
|
+
const response = await this.get(JOB_ENDPOINTS.GET_BY_KEY(jobKey), {
|
|
11170
|
+
params: {
|
|
11171
|
+
$select: 'OutputArguments,OutputFile',
|
|
11172
|
+
},
|
|
11173
|
+
headers,
|
|
11174
|
+
});
|
|
11175
|
+
return response.data;
|
|
11176
|
+
}
|
|
11177
|
+
/**
|
|
11178
|
+
* Downloads the output file content via the Attachments API.
|
|
11179
|
+
* 1. Fetches blob access info from the attachment using AttachmentService
|
|
11180
|
+
* 2. Downloads content from the presigned blob URI
|
|
11181
|
+
* 3. Parses and returns the JSON content
|
|
11182
|
+
*/
|
|
11183
|
+
async downloadOutputFile(outputFileKey) {
|
|
11184
|
+
const attachment = await this.attachmentService.getById(outputFileKey);
|
|
11185
|
+
const blobAccess = attachment.blobFileAccess;
|
|
11186
|
+
if (!blobAccess?.uri) {
|
|
11187
|
+
return null;
|
|
11188
|
+
}
|
|
11189
|
+
const blobHeaders = { ...blobAccess.headers };
|
|
11190
|
+
// Add auth header if the blob URI requires authenticated access
|
|
11191
|
+
if (blobAccess.requiresAuth) {
|
|
11192
|
+
const token = await this.getValidAuthToken();
|
|
11193
|
+
blobHeaders['Authorization'] = `Bearer ${token}`;
|
|
11194
|
+
}
|
|
11195
|
+
const blobResponse = await fetch(blobAccess.uri, {
|
|
11196
|
+
method: 'GET',
|
|
11197
|
+
headers: blobHeaders,
|
|
11198
|
+
});
|
|
11199
|
+
if (!blobResponse.ok) {
|
|
11200
|
+
const errorInfo = await errorResponseParser.parse(blobResponse);
|
|
11201
|
+
throw ErrorFactory.createFromHttpStatus(blobResponse.status, errorInfo);
|
|
11202
|
+
}
|
|
11203
|
+
const content = await blobResponse.text();
|
|
11204
|
+
try {
|
|
11205
|
+
return JSON.parse(content);
|
|
11206
|
+
}
|
|
11207
|
+
catch {
|
|
11208
|
+
throw new ServerError({ message: 'Failed to parse job output file as JSON' });
|
|
11209
|
+
}
|
|
11210
|
+
}
|
|
11211
|
+
}
|
|
11212
|
+
__decorate([
|
|
11213
|
+
track('Jobs.GetAll')
|
|
11214
|
+
], JobService.prototype, "getAll", null);
|
|
11215
|
+
__decorate([
|
|
11216
|
+
track('Jobs.GetOutput')
|
|
11217
|
+
], JobService.prototype, "getOutput", null);
|
|
11218
|
+
|
|
11219
|
+
/**
|
|
11220
|
+
* Enum for job sub-state
|
|
11221
|
+
*/
|
|
11222
|
+
exports.JobSubState = void 0;
|
|
11223
|
+
(function (JobSubState) {
|
|
11224
|
+
JobSubState["WithFaults"] = "WITH_FAULTS";
|
|
11225
|
+
JobSubState["Manually"] = "MANUALLY";
|
|
11226
|
+
})(exports.JobSubState || (exports.JobSubState = {}));
|
|
11227
|
+
/**
|
|
11228
|
+
* Enum for serverless job type
|
|
11229
|
+
*/
|
|
11230
|
+
exports.ServerlessJobType = void 0;
|
|
11231
|
+
(function (ServerlessJobType) {
|
|
11232
|
+
ServerlessJobType["RobotJob"] = "RobotJob";
|
|
11233
|
+
ServerlessJobType["WebApp"] = "WebApp";
|
|
11234
|
+
ServerlessJobType["LoadTest"] = "LoadTest";
|
|
11235
|
+
ServerlessJobType["StudioWebDesigner"] = "StudioWebDesigner";
|
|
11236
|
+
ServerlessJobType["PublishStudioProject"] = "PublishStudioProject";
|
|
11237
|
+
ServerlessJobType["JsApi"] = "JsApi";
|
|
11238
|
+
ServerlessJobType["PythonCodedAgent"] = "PythonCodedAgent";
|
|
11239
|
+
ServerlessJobType["MCPServer"] = "MCPServer";
|
|
11240
|
+
ServerlessJobType["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
|
|
11241
|
+
ServerlessJobType["PythonAgent"] = "PythonAgent";
|
|
11242
|
+
})(exports.ServerlessJobType || (exports.ServerlessJobType = {}));
|
|
11243
|
+
|
|
11244
|
+
/**
|
|
11245
|
+
* Common enum for job state used across services
|
|
11246
|
+
*/
|
|
11247
|
+
exports.JobState = void 0;
|
|
11248
|
+
(function (JobState) {
|
|
11249
|
+
JobState["Pending"] = "Pending";
|
|
11250
|
+
JobState["Running"] = "Running";
|
|
11251
|
+
JobState["Stopping"] = "Stopping";
|
|
11252
|
+
JobState["Terminating"] = "Terminating";
|
|
11253
|
+
JobState["Faulted"] = "Faulted";
|
|
11254
|
+
JobState["Successful"] = "Successful";
|
|
11255
|
+
JobState["Stopped"] = "Stopped";
|
|
11256
|
+
JobState["Suspended"] = "Suspended";
|
|
11257
|
+
JobState["Resumed"] = "Resumed";
|
|
11258
|
+
})(exports.JobState || (exports.JobState = {}));
|
|
11259
|
+
|
|
10912
11260
|
/**
|
|
10913
11261
|
* Maps fields for Process entities to ensure consistent naming
|
|
10914
11262
|
*/
|
|
@@ -11091,6 +11439,9 @@ exports.PackageType = void 0;
|
|
|
11091
11439
|
PackageType["Api"] = "Api";
|
|
11092
11440
|
PackageType["MCPServer"] = "MCPServer";
|
|
11093
11441
|
PackageType["BusinessRules"] = "BusinessRules";
|
|
11442
|
+
PackageType["CaseManagement"] = "CaseManagement";
|
|
11443
|
+
PackageType["Flow"] = "Flow";
|
|
11444
|
+
PackageType["Function"] = "Function";
|
|
11094
11445
|
})(exports.PackageType || (exports.PackageType = {}));
|
|
11095
11446
|
/**
|
|
11096
11447
|
* Enum for job priority
|
|
@@ -11169,6 +11520,36 @@ exports.PackageSourceType = void 0;
|
|
|
11169
11520
|
PackageSourceType["AgentHub"] = "AgentHub";
|
|
11170
11521
|
PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11171
11522
|
})(exports.PackageSourceType || (exports.PackageSourceType = {}));
|
|
11523
|
+
/**
|
|
11524
|
+
* Enum for job source type
|
|
11525
|
+
*/
|
|
11526
|
+
exports.JobSourceType = void 0;
|
|
11527
|
+
(function (JobSourceType) {
|
|
11528
|
+
JobSourceType["Manual"] = "Manual";
|
|
11529
|
+
JobSourceType["Schedule"] = "Schedule";
|
|
11530
|
+
JobSourceType["Agent"] = "Agent";
|
|
11531
|
+
JobSourceType["Queue"] = "Queue";
|
|
11532
|
+
JobSourceType["StudioWeb"] = "StudioWeb";
|
|
11533
|
+
JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
11534
|
+
JobSourceType["StudioDesktop"] = "StudioDesktop";
|
|
11535
|
+
JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
11536
|
+
JobSourceType["Apps"] = "Apps";
|
|
11537
|
+
JobSourceType["SAP"] = "SAP";
|
|
11538
|
+
JobSourceType["HttpTrigger"] = "HttpTrigger";
|
|
11539
|
+
JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
11540
|
+
JobSourceType["RobotAPI"] = "RobotAPI";
|
|
11541
|
+
JobSourceType["CommandLine"] = "CommandLine";
|
|
11542
|
+
JobSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
11543
|
+
JobSourceType["Autopilot"] = "Autopilot";
|
|
11544
|
+
JobSourceType["TestManager"] = "TestManager";
|
|
11545
|
+
JobSourceType["AgentService"] = "AgentService";
|
|
11546
|
+
JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11547
|
+
JobSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
11548
|
+
JobSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
11549
|
+
JobSourceType["AgentHub"] = "AgentHub";
|
|
11550
|
+
JobSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11551
|
+
JobSourceType["CaseManagement"] = "CaseManagement";
|
|
11552
|
+
})(exports.JobSourceType || (exports.JobSourceType = {}));
|
|
11172
11553
|
/**
|
|
11173
11554
|
* Enum for stop strategy
|
|
11174
11555
|
*/
|
|
@@ -11177,6 +11558,39 @@ exports.StopStrategy = void 0;
|
|
|
11177
11558
|
StopStrategy["SoftStop"] = "SoftStop";
|
|
11178
11559
|
StopStrategy["Kill"] = "Kill";
|
|
11179
11560
|
})(exports.StopStrategy || (exports.StopStrategy = {}));
|
|
11561
|
+
/**
|
|
11562
|
+
* Enum for runtime type
|
|
11563
|
+
*/
|
|
11564
|
+
exports.RuntimeType = void 0;
|
|
11565
|
+
(function (RuntimeType) {
|
|
11566
|
+
RuntimeType["NonProduction"] = "NonProduction";
|
|
11567
|
+
RuntimeType["Attended"] = "Attended";
|
|
11568
|
+
RuntimeType["Unattended"] = "Unattended";
|
|
11569
|
+
RuntimeType["Development"] = "Development";
|
|
11570
|
+
RuntimeType["Studio"] = "Studio";
|
|
11571
|
+
RuntimeType["RpaDeveloper"] = "RpaDeveloper";
|
|
11572
|
+
RuntimeType["StudioX"] = "StudioX";
|
|
11573
|
+
RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
|
|
11574
|
+
RuntimeType["Headless"] = "Headless";
|
|
11575
|
+
RuntimeType["StudioPro"] = "StudioPro";
|
|
11576
|
+
RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
11577
|
+
RuntimeType["TestAutomation"] = "TestAutomation";
|
|
11578
|
+
RuntimeType["AutomationCloud"] = "AutomationCloud";
|
|
11579
|
+
RuntimeType["Serverless"] = "Serverless";
|
|
11580
|
+
RuntimeType["AutomationKit"] = "AutomationKit";
|
|
11581
|
+
RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
11582
|
+
RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
11583
|
+
RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
11584
|
+
RuntimeType["Hosting"] = "Hosting";
|
|
11585
|
+
RuntimeType["AssistantWeb"] = "AssistantWeb";
|
|
11586
|
+
RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11587
|
+
RuntimeType["AgentService"] = "AgentService";
|
|
11588
|
+
RuntimeType["AppTest"] = "AppTest";
|
|
11589
|
+
RuntimeType["PerformanceTest"] = "PerformanceTest";
|
|
11590
|
+
RuntimeType["BusinessRule"] = "BusinessRule";
|
|
11591
|
+
RuntimeType["CaseManagement"] = "CaseManagement";
|
|
11592
|
+
RuntimeType["Flow"] = "Flow";
|
|
11593
|
+
})(exports.RuntimeType || (exports.RuntimeType = {}));
|
|
11180
11594
|
/**
|
|
11181
11595
|
* Enum for job type
|
|
11182
11596
|
*/
|
|
@@ -11414,22 +11828,6 @@ class UiPath extends UiPath$1 {
|
|
|
11414
11828
|
}
|
|
11415
11829
|
}
|
|
11416
11830
|
|
|
11417
|
-
/**
|
|
11418
|
-
* Common enum for job state used across services
|
|
11419
|
-
*/
|
|
11420
|
-
exports.JobState = void 0;
|
|
11421
|
-
(function (JobState) {
|
|
11422
|
-
JobState["Pending"] = "Pending";
|
|
11423
|
-
JobState["Running"] = "Running";
|
|
11424
|
-
JobState["Stopping"] = "Stopping";
|
|
11425
|
-
JobState["Terminating"] = "Terminating";
|
|
11426
|
-
JobState["Faulted"] = "Faulted";
|
|
11427
|
-
JobState["Successful"] = "Successful";
|
|
11428
|
-
JobState["Stopped"] = "Stopped";
|
|
11429
|
-
JobState["Suspended"] = "Suspended";
|
|
11430
|
-
JobState["Resumed"] = "Resumed";
|
|
11431
|
-
})(exports.JobState || (exports.JobState = {}));
|
|
11432
|
-
|
|
11433
11831
|
/**
|
|
11434
11832
|
* Common Constants for Conversational Agent
|
|
11435
11833
|
*/
|
|
@@ -11802,6 +12200,7 @@ exports.createAgentWithMethods = createAgentWithMethods;
|
|
|
11802
12200
|
exports.createCaseInstanceWithMethods = createCaseInstanceWithMethods;
|
|
11803
12201
|
exports.createConversationWithMethods = createConversationWithMethods;
|
|
11804
12202
|
exports.createEntityWithMethods = createEntityWithMethods;
|
|
12203
|
+
exports.createJobWithMethods = createJobWithMethods;
|
|
11805
12204
|
exports.createProcessInstanceWithMethods = createProcessInstanceWithMethods;
|
|
11806
12205
|
exports.createProcessWithMethods = createProcessWithMethods;
|
|
11807
12206
|
exports.createTaskWithMethods = createTaskWithMethods;
|