@uipath/uipath-typescript 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.cjs +1 -1
- package/dist/assets/index.d.ts +2 -1
- package/dist/assets/index.mjs +1 -1
- package/dist/attachments/index.cjs +1944 -0
- package/dist/attachments/index.d.ts +399 -0
- package/dist/attachments/index.mjs +1941 -0
- package/dist/buckets/index.cjs +1 -1
- package/dist/buckets/index.d.ts +4 -2
- package/dist/buckets/index.mjs +1 -1
- package/dist/cases/index.cjs +95 -48
- package/dist/cases/index.d.ts +31 -2
- package/dist/cases/index.mjs +95 -48
- package/dist/conversational-agent/index.cjs +38 -7
- package/dist/conversational-agent/index.d.ts +72 -6
- package/dist/conversational-agent/index.mjs +38 -7
- package/dist/core/index.cjs +118 -17
- package/dist/core/index.d.ts +26 -2
- package/dist/core/index.mjs +118 -17
- package/dist/entities/index.cjs +48 -1
- package/dist/entities/index.d.ts +106 -19
- package/dist/entities/index.mjs +48 -1
- package/dist/index.cjs +585 -267
- package/dist/index.d.ts +595 -67
- package/dist/index.mjs +586 -268
- package/dist/index.umd.js +582 -264
- package/dist/jobs/index.cjs +2036 -0
- package/dist/jobs/index.d.ts +724 -0
- package/dist/jobs/index.mjs +2033 -0
- package/dist/maestro-processes/index.cjs +1 -1
- package/dist/maestro-processes/index.mjs +1 -1
- package/dist/processes/index.cjs +67 -1
- package/dist/processes/index.d.ts +80 -15
- package/dist/processes/index.mjs +68 -2
- package/dist/queues/index.cjs +1 -1
- package/dist/queues/index.d.ts +2 -1
- package/dist/queues/index.mjs +1 -1
- package/dist/tasks/index.cjs +1319 -1272
- package/dist/tasks/index.d.ts +331 -287
- package/dist/tasks/index.mjs +1319 -1272
- package/package.json +25 -3
package/dist/index.mjs
CHANGED
|
@@ -4385,6 +4385,234 @@ function getErrorDetails(error) {
|
|
|
4385
4385
|
};
|
|
4386
4386
|
}
|
|
4387
4387
|
|
|
4388
|
+
/**
|
|
4389
|
+
* Types of tasks available in Action Center.
|
|
4390
|
+
* Each type determines the task's behavior, UI rendering, and completion requirements.
|
|
4391
|
+
*/
|
|
4392
|
+
var TaskType;
|
|
4393
|
+
(function (TaskType) {
|
|
4394
|
+
/** A form-based task that renders a UiPath form layout for user input */
|
|
4395
|
+
TaskType["Form"] = "FormTask";
|
|
4396
|
+
/** An externally managed task handled outside of Action Center */
|
|
4397
|
+
TaskType["External"] = "ExternalTask";
|
|
4398
|
+
/** A task powered by a UiPath App */
|
|
4399
|
+
TaskType["App"] = "AppTask";
|
|
4400
|
+
/** A document validation task for reviewing and correcting extracted document data */
|
|
4401
|
+
TaskType["DocumentValidation"] = "DocumentValidationTask";
|
|
4402
|
+
/** A document classification task for categorizing documents */
|
|
4403
|
+
TaskType["DocumentClassification"] = "DocumentClassificationTask";
|
|
4404
|
+
/** A data labeling task for annotating training data */
|
|
4405
|
+
TaskType["DataLabeling"] = "DataLabelingTask";
|
|
4406
|
+
})(TaskType || (TaskType = {}));
|
|
4407
|
+
var TaskPriority;
|
|
4408
|
+
(function (TaskPriority) {
|
|
4409
|
+
TaskPriority["Low"] = "Low";
|
|
4410
|
+
TaskPriority["Medium"] = "Medium";
|
|
4411
|
+
TaskPriority["High"] = "High";
|
|
4412
|
+
TaskPriority["Critical"] = "Critical";
|
|
4413
|
+
})(TaskPriority || (TaskPriority = {}));
|
|
4414
|
+
var TaskStatus;
|
|
4415
|
+
(function (TaskStatus) {
|
|
4416
|
+
TaskStatus["Unassigned"] = "Unassigned";
|
|
4417
|
+
TaskStatus["Pending"] = "Pending";
|
|
4418
|
+
TaskStatus["Completed"] = "Completed";
|
|
4419
|
+
})(TaskStatus || (TaskStatus = {}));
|
|
4420
|
+
var TaskSlaCriteria;
|
|
4421
|
+
(function (TaskSlaCriteria) {
|
|
4422
|
+
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
4423
|
+
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
4424
|
+
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
4425
|
+
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
4426
|
+
var TaskSlaStatus;
|
|
4427
|
+
(function (TaskSlaStatus) {
|
|
4428
|
+
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
4429
|
+
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
4430
|
+
TaskSlaStatus["Overdue"] = "Overdue";
|
|
4431
|
+
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
4432
|
+
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
4433
|
+
var TaskSourceName;
|
|
4434
|
+
(function (TaskSourceName) {
|
|
4435
|
+
TaskSourceName["Agent"] = "Agent";
|
|
4436
|
+
TaskSourceName["Workflow"] = "Workflow";
|
|
4437
|
+
TaskSourceName["Maestro"] = "Maestro";
|
|
4438
|
+
TaskSourceName["Default"] = "Default";
|
|
4439
|
+
})(TaskSourceName || (TaskSourceName = {}));
|
|
4440
|
+
/**
|
|
4441
|
+
* Task activity types
|
|
4442
|
+
*/
|
|
4443
|
+
var TaskActivityType;
|
|
4444
|
+
(function (TaskActivityType) {
|
|
4445
|
+
TaskActivityType["Created"] = "Created";
|
|
4446
|
+
TaskActivityType["Assigned"] = "Assigned";
|
|
4447
|
+
TaskActivityType["Reassigned"] = "Reassigned";
|
|
4448
|
+
TaskActivityType["Unassigned"] = "Unassigned";
|
|
4449
|
+
TaskActivityType["Saved"] = "Saved";
|
|
4450
|
+
TaskActivityType["Forwarded"] = "Forwarded";
|
|
4451
|
+
TaskActivityType["Completed"] = "Completed";
|
|
4452
|
+
TaskActivityType["Commented"] = "Commented";
|
|
4453
|
+
TaskActivityType["Deleted"] = "Deleted";
|
|
4454
|
+
TaskActivityType["BulkSaved"] = "BulkSaved";
|
|
4455
|
+
TaskActivityType["BulkCompleted"] = "BulkCompleted";
|
|
4456
|
+
TaskActivityType["FirstOpened"] = "FirstOpened";
|
|
4457
|
+
})(TaskActivityType || (TaskActivityType = {}));
|
|
4458
|
+
|
|
4459
|
+
/**
|
|
4460
|
+
* Base path constants for different services
|
|
4461
|
+
*/
|
|
4462
|
+
const ORCHESTRATOR_BASE = 'orchestrator_';
|
|
4463
|
+
const PIMS_BASE = 'pims_';
|
|
4464
|
+
const DATAFABRIC_BASE = 'datafabric_';
|
|
4465
|
+
const IDENTITY_BASE = 'identity_';
|
|
4466
|
+
|
|
4467
|
+
/**
|
|
4468
|
+
* Orchestrator Service Endpoints
|
|
4469
|
+
*/
|
|
4470
|
+
/**
|
|
4471
|
+
* Task Service (Action Center) Endpoints
|
|
4472
|
+
*/
|
|
4473
|
+
const TASK_ENDPOINTS = {
|
|
4474
|
+
CREATE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CreateTask`,
|
|
4475
|
+
GET_TASK_USERS: (folderId) => `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
|
|
4476
|
+
GET_TASKS_ACROSS_FOLDERS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders`,
|
|
4477
|
+
GET_TASKS_ACROSS_FOLDERS_ADMIN: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFoldersForAdmin`,
|
|
4478
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Tasks(${id})`,
|
|
4479
|
+
ASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks`,
|
|
4480
|
+
REASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks`,
|
|
4481
|
+
UNASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks`,
|
|
4482
|
+
COMPLETE_FORM_TASK: `${ORCHESTRATOR_BASE}/forms/TaskForms/CompleteTask`,
|
|
4483
|
+
COMPLETE_APP_TASK: `${ORCHESTRATOR_BASE}/tasks/AppTasks/CompleteAppTask`,
|
|
4484
|
+
COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
|
|
4485
|
+
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
4486
|
+
GET_GENERIC_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/GetTaskDataById`,
|
|
4487
|
+
GET_APP_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/AppTasks/GetAppTaskById`,
|
|
4488
|
+
};
|
|
4489
|
+
/**
|
|
4490
|
+
* Orchestrator Bucket Endpoints
|
|
4491
|
+
*/
|
|
4492
|
+
const BUCKET_ENDPOINTS = {
|
|
4493
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
|
|
4494
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders`,
|
|
4495
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})`,
|
|
4496
|
+
GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
|
|
4497
|
+
GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
4498
|
+
GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`,
|
|
4499
|
+
};
|
|
4500
|
+
/**
|
|
4501
|
+
* Orchestrator Process Service Endpoints
|
|
4502
|
+
*/
|
|
4503
|
+
const PROCESS_ENDPOINTS = {
|
|
4504
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Releases`,
|
|
4505
|
+
START_PROCESS: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`,
|
|
4506
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Releases(${id})`,
|
|
4507
|
+
};
|
|
4508
|
+
/**
|
|
4509
|
+
* Orchestrator Queue Service Endpoints
|
|
4510
|
+
*/
|
|
4511
|
+
const QUEUE_ENDPOINTS = {
|
|
4512
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions`,
|
|
4513
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders`,
|
|
4514
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/QueueDefinitions(${id})`,
|
|
4515
|
+
};
|
|
4516
|
+
/**
|
|
4517
|
+
* Orchestrator Job Service Endpoints
|
|
4518
|
+
*/
|
|
4519
|
+
const JOB_ENDPOINTS = {
|
|
4520
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Jobs`,
|
|
4521
|
+
};
|
|
4522
|
+
/**
|
|
4523
|
+
* Orchestrator Asset Service Endpoints
|
|
4524
|
+
*/
|
|
4525
|
+
const ASSET_ENDPOINTS = {
|
|
4526
|
+
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
4527
|
+
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
|
|
4528
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`,
|
|
4529
|
+
};
|
|
4530
|
+
/**
|
|
4531
|
+
* Orchestrator Attachment Service Endpoints
|
|
4532
|
+
*/
|
|
4533
|
+
const ORCHESTRATOR_ATTACHMENT_ENDPOINTS = {
|
|
4534
|
+
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Attachments(${id})`,
|
|
4535
|
+
};
|
|
4536
|
+
|
|
4537
|
+
/**
|
|
4538
|
+
* Maestro Service Endpoints
|
|
4539
|
+
*/
|
|
4540
|
+
/**
|
|
4541
|
+
* Maestro Process Service Endpoints
|
|
4542
|
+
*/
|
|
4543
|
+
const MAESTRO_ENDPOINTS = {
|
|
4544
|
+
PROCESSES: {
|
|
4545
|
+
GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
|
|
4546
|
+
GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`,
|
|
4547
|
+
},
|
|
4548
|
+
INSTANCES: {
|
|
4549
|
+
GET_ALL: `${PIMS_BASE}/api/v1/instances`,
|
|
4550
|
+
GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
|
|
4551
|
+
GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
|
|
4552
|
+
GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
|
|
4553
|
+
GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
|
|
4554
|
+
CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
|
|
4555
|
+
PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
|
|
4556
|
+
RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`,
|
|
4557
|
+
},
|
|
4558
|
+
INCIDENTS: {
|
|
4559
|
+
GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
|
|
4560
|
+
GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
|
|
4561
|
+
GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`,
|
|
4562
|
+
},
|
|
4563
|
+
CASES: {
|
|
4564
|
+
GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
|
|
4565
|
+
GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
|
|
4566
|
+
REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`,
|
|
4567
|
+
},
|
|
4568
|
+
};
|
|
4569
|
+
|
|
4570
|
+
/**
|
|
4571
|
+
* Data Fabric Service Endpoints
|
|
4572
|
+
*/
|
|
4573
|
+
/**
|
|
4574
|
+
* Data Fabric Entity Service Endpoints
|
|
4575
|
+
*/
|
|
4576
|
+
const DATA_FABRIC_ENDPOINTS = {
|
|
4577
|
+
ENTITY: {
|
|
4578
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
|
|
4579
|
+
GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
|
|
4580
|
+
GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
4581
|
+
GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
|
|
4582
|
+
INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
|
|
4583
|
+
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
4584
|
+
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
4585
|
+
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
4586
|
+
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
4587
|
+
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4588
|
+
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4589
|
+
DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4590
|
+
},
|
|
4591
|
+
CHOICESETS: {
|
|
4592
|
+
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
4593
|
+
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`,
|
|
4594
|
+
},
|
|
4595
|
+
};
|
|
4596
|
+
|
|
4597
|
+
/**
|
|
4598
|
+
* Identity/Authentication Endpoints
|
|
4599
|
+
*/
|
|
4600
|
+
/**
|
|
4601
|
+
* Identity Service Endpoints
|
|
4602
|
+
*/
|
|
4603
|
+
const IDENTITY_ENDPOINTS = {
|
|
4604
|
+
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4605
|
+
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4606
|
+
};
|
|
4607
|
+
|
|
4608
|
+
const TASK_TYPE_ENDPOINTS = {
|
|
4609
|
+
[TaskType.Form]: TASK_ENDPOINTS.GET_TASK_FORM_BY_ID,
|
|
4610
|
+
[TaskType.App]: TASK_ENDPOINTS.GET_APP_TASK_BY_ID,
|
|
4611
|
+
[TaskType.DocumentValidation]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4612
|
+
[TaskType.DocumentClassification]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4613
|
+
[TaskType.External]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4614
|
+
[TaskType.DataLabeling]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4615
|
+
};
|
|
4388
4616
|
var ActionCenterEventNames;
|
|
4389
4617
|
(function (ActionCenterEventNames) {
|
|
4390
4618
|
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
@@ -4731,170 +4959,36 @@ class TokenManager {
|
|
|
4731
4959
|
if (!tokenInfo?.refreshToken) {
|
|
4732
4960
|
throw new Error('No refresh token available. User may need to re-authenticate.');
|
|
4733
4961
|
}
|
|
4734
|
-
const orgName = this.config.orgName;
|
|
4735
|
-
const body = new URLSearchParams({
|
|
4736
|
-
grant_type: 'refresh_token',
|
|
4737
|
-
client_id: this.config.clientId,
|
|
4738
|
-
refresh_token: tokenInfo.refreshToken
|
|
4739
|
-
});
|
|
4740
|
-
const response = await fetch(`${this.config.baseUrl}/${orgName}/identity_/connect/token`, {
|
|
4741
|
-
method: 'POST',
|
|
4742
|
-
headers: {
|
|
4743
|
-
'Content-Type': 'application/x-www-form-urlencoded'
|
|
4744
|
-
},
|
|
4745
|
-
body: body.toString()
|
|
4746
|
-
});
|
|
4747
|
-
if (!response.ok) {
|
|
4748
|
-
const errorData = await response.json().catch(() => ({ message: response.statusText }));
|
|
4749
|
-
console.error("Token refresh error:", errorData);
|
|
4750
|
-
// Clear the invalid token to prevent further failed requests
|
|
4751
|
-
this.clearToken();
|
|
4752
|
-
throw new Error(`Failed to refresh access token: ${JSON.stringify(errorData)}`);
|
|
4753
|
-
}
|
|
4754
|
-
const token = await response.json();
|
|
4755
|
-
this.setToken({
|
|
4756
|
-
token: token.access_token,
|
|
4757
|
-
type: 'oauth',
|
|
4758
|
-
expiresAt: new Date(Date.now() + token.expires_in * 1000),
|
|
4759
|
-
refreshToken: token.refresh_token
|
|
4760
|
-
});
|
|
4761
|
-
return token;
|
|
4762
|
-
}
|
|
4763
|
-
}
|
|
4764
|
-
|
|
4765
|
-
/**
|
|
4766
|
-
* Base path constants for different services
|
|
4767
|
-
*/
|
|
4768
|
-
const ORCHESTRATOR_BASE = 'orchestrator_';
|
|
4769
|
-
const PIMS_BASE = 'pims_';
|
|
4770
|
-
const DATAFABRIC_BASE = 'datafabric_';
|
|
4771
|
-
const IDENTITY_BASE = 'identity_';
|
|
4772
|
-
|
|
4773
|
-
/**
|
|
4774
|
-
* Orchestrator Service Endpoints
|
|
4775
|
-
*/
|
|
4776
|
-
/**
|
|
4777
|
-
* Task Service (Action Center) Endpoints
|
|
4778
|
-
*/
|
|
4779
|
-
const TASK_ENDPOINTS = {
|
|
4780
|
-
CREATE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CreateTask`,
|
|
4781
|
-
GET_TASK_USERS: (folderId) => `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
|
|
4782
|
-
GET_TASKS_ACROSS_FOLDERS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders`,
|
|
4783
|
-
GET_TASKS_ACROSS_FOLDERS_ADMIN: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFoldersForAdmin`,
|
|
4784
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Tasks(${id})`,
|
|
4785
|
-
ASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks`,
|
|
4786
|
-
REASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks`,
|
|
4787
|
-
UNASSIGN_TASKS: `${ORCHESTRATOR_BASE}/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks`,
|
|
4788
|
-
COMPLETE_FORM_TASK: `${ORCHESTRATOR_BASE}/forms/TaskForms/CompleteTask`,
|
|
4789
|
-
COMPLETE_APP_TASK: `${ORCHESTRATOR_BASE}/tasks/AppTasks/CompleteAppTask`,
|
|
4790
|
-
COMPLETE_GENERIC_TASK: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/CompleteTask`,
|
|
4791
|
-
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
4792
|
-
};
|
|
4793
|
-
/**
|
|
4794
|
-
* Orchestrator Bucket Endpoints
|
|
4795
|
-
*/
|
|
4796
|
-
const BUCKET_ENDPOINTS = {
|
|
4797
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Buckets`,
|
|
4798
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders`,
|
|
4799
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})`,
|
|
4800
|
-
GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
|
|
4801
|
-
GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
4802
|
-
GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`,
|
|
4803
|
-
};
|
|
4804
|
-
/**
|
|
4805
|
-
* Orchestrator Process Service Endpoints
|
|
4806
|
-
*/
|
|
4807
|
-
const PROCESS_ENDPOINTS = {
|
|
4808
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Releases`,
|
|
4809
|
-
START_PROCESS: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs`,
|
|
4810
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Releases(${id})`,
|
|
4811
|
-
};
|
|
4812
|
-
/**
|
|
4813
|
-
* Orchestrator Queue Service Endpoints
|
|
4814
|
-
*/
|
|
4815
|
-
const QUEUE_ENDPOINTS = {
|
|
4816
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions`,
|
|
4817
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders`,
|
|
4818
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/QueueDefinitions(${id})`,
|
|
4819
|
-
};
|
|
4820
|
-
/**
|
|
4821
|
-
* Orchestrator Asset Service Endpoints
|
|
4822
|
-
*/
|
|
4823
|
-
const ASSET_ENDPOINTS = {
|
|
4824
|
-
GET_BY_FOLDER: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered`,
|
|
4825
|
-
GET_ALL: `${ORCHESTRATOR_BASE}/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders`,
|
|
4826
|
-
GET_BY_ID: (id) => `${ORCHESTRATOR_BASE}/odata/Assets(${id})`,
|
|
4827
|
-
};
|
|
4828
|
-
|
|
4829
|
-
/**
|
|
4830
|
-
* Maestro Service Endpoints
|
|
4831
|
-
*/
|
|
4832
|
-
/**
|
|
4833
|
-
* Maestro Process Service Endpoints
|
|
4834
|
-
*/
|
|
4835
|
-
const MAESTRO_ENDPOINTS = {
|
|
4836
|
-
PROCESSES: {
|
|
4837
|
-
GET_ALL: `${PIMS_BASE}/api/v1/processes/summary`,
|
|
4838
|
-
GET_SETTINGS: (processKey) => `${PIMS_BASE}/api/v1/processes/${processKey}/settings`,
|
|
4839
|
-
},
|
|
4840
|
-
INSTANCES: {
|
|
4841
|
-
GET_ALL: `${PIMS_BASE}/api/v1/instances`,
|
|
4842
|
-
GET_BY_ID: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}`,
|
|
4843
|
-
GET_EXECUTION_HISTORY: (instanceId) => `${PIMS_BASE}/api/v1/spans/${instanceId}`,
|
|
4844
|
-
GET_BPMN: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/bpmn`,
|
|
4845
|
-
GET_VARIABLES: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/variables`,
|
|
4846
|
-
CANCEL: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/cancel`,
|
|
4847
|
-
PAUSE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/pause`,
|
|
4848
|
-
RESUME: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/resume`,
|
|
4849
|
-
},
|
|
4850
|
-
INCIDENTS: {
|
|
4851
|
-
GET_ALL: `${PIMS_BASE}/api/v1/incidents/summary`,
|
|
4852
|
-
GET_BY_PROCESS: (processKey) => `${PIMS_BASE}/api/v1/incidents/process/${processKey}`,
|
|
4853
|
-
GET_BY_INSTANCE: (instanceId) => `${PIMS_BASE}/api/v1/instances/${instanceId}/incidents`,
|
|
4854
|
-
},
|
|
4855
|
-
CASES: {
|
|
4856
|
-
GET_CASE_JSON: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/case-json`,
|
|
4857
|
-
GET_ELEMENT_EXECUTIONS: (instanceId) => `${PIMS_BASE}/api/v1/element-executions/case-instances/${instanceId}`,
|
|
4858
|
-
REOPEN: (instanceId) => `${PIMS_BASE}/api/v1/cases/${instanceId}/reopen`,
|
|
4859
|
-
},
|
|
4860
|
-
};
|
|
4861
|
-
|
|
4862
|
-
/**
|
|
4863
|
-
* Data Fabric Service Endpoints
|
|
4864
|
-
*/
|
|
4865
|
-
/**
|
|
4866
|
-
* Data Fabric Entity Service Endpoints
|
|
4867
|
-
*/
|
|
4868
|
-
const DATA_FABRIC_ENDPOINTS = {
|
|
4869
|
-
ENTITY: {
|
|
4870
|
-
GET_ALL: `${DATAFABRIC_BASE}/api/Entity`,
|
|
4871
|
-
GET_ENTITY_RECORDS: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read`,
|
|
4872
|
-
GET_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
4873
|
-
GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
|
|
4874
|
-
INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
|
|
4875
|
-
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
4876
|
-
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
4877
|
-
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
4878
|
-
DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4879
|
-
UPLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4880
|
-
DELETE_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
|
|
4881
|
-
},
|
|
4882
|
-
CHOICESETS: {
|
|
4883
|
-
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
4884
|
-
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`,
|
|
4885
|
-
},
|
|
4886
|
-
};
|
|
4887
|
-
|
|
4888
|
-
/**
|
|
4889
|
-
* Identity/Authentication Endpoints
|
|
4890
|
-
*/
|
|
4891
|
-
/**
|
|
4892
|
-
* Identity Service Endpoints
|
|
4893
|
-
*/
|
|
4894
|
-
const IDENTITY_ENDPOINTS = {
|
|
4895
|
-
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4896
|
-
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4897
|
-
};
|
|
4962
|
+
const orgName = this.config.orgName;
|
|
4963
|
+
const body = new URLSearchParams({
|
|
4964
|
+
grant_type: 'refresh_token',
|
|
4965
|
+
client_id: this.config.clientId,
|
|
4966
|
+
refresh_token: tokenInfo.refreshToken
|
|
4967
|
+
});
|
|
4968
|
+
const response = await fetch(`${this.config.baseUrl}/${orgName}/identity_/connect/token`, {
|
|
4969
|
+
method: 'POST',
|
|
4970
|
+
headers: {
|
|
4971
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
4972
|
+
},
|
|
4973
|
+
body: body.toString()
|
|
4974
|
+
});
|
|
4975
|
+
if (!response.ok) {
|
|
4976
|
+
const errorData = await response.json().catch(() => ({ message: response.statusText }));
|
|
4977
|
+
console.error("Token refresh error:", errorData);
|
|
4978
|
+
// Clear the invalid token to prevent further failed requests
|
|
4979
|
+
this.clearToken();
|
|
4980
|
+
throw new Error(`Failed to refresh access token: ${JSON.stringify(errorData)}`);
|
|
4981
|
+
}
|
|
4982
|
+
const token = await response.json();
|
|
4983
|
+
this.setToken({
|
|
4984
|
+
token: token.access_token,
|
|
4985
|
+
type: 'oauth',
|
|
4986
|
+
expiresAt: new Date(Date.now() + token.expires_in * 1000),
|
|
4987
|
+
refreshToken: token.refresh_token
|
|
4988
|
+
});
|
|
4989
|
+
return token;
|
|
4990
|
+
}
|
|
4991
|
+
}
|
|
4898
4992
|
|
|
4899
4993
|
class AuthService {
|
|
4900
4994
|
constructor(config, executionContext) {
|
|
@@ -5323,7 +5417,7 @@ function normalizeBaseUrl(url) {
|
|
|
5323
5417
|
// Connection string placeholder that will be replaced during build
|
|
5324
5418
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
5325
5419
|
// SDK Version placeholder
|
|
5326
|
-
const SDK_VERSION = "1.2.
|
|
5420
|
+
const SDK_VERSION = "1.2.2";
|
|
5327
5421
|
const VERSION = "Version";
|
|
5328
5422
|
const SERVICE = "Service";
|
|
5329
5423
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -5854,6 +5948,15 @@ let UiPath$1 = class UiPath {
|
|
|
5854
5948
|
__classPrivateFieldGet(this, _UiPath_authService, "f")?.logout();
|
|
5855
5949
|
__classPrivateFieldSet(this, _UiPath_initialized, false, "f");
|
|
5856
5950
|
}
|
|
5951
|
+
/**
|
|
5952
|
+
* Updates the access token used for API requests.
|
|
5953
|
+
* Use this to inject or refresh a token externally.
|
|
5954
|
+
*
|
|
5955
|
+
* @param tokenInfo - The token information containing the access token, type, expiration, and optional refresh token
|
|
5956
|
+
*/
|
|
5957
|
+
updateToken(tokenInfo) {
|
|
5958
|
+
__classPrivateFieldGet(this, _UiPath_authService, "f")?.updateToken(tokenInfo);
|
|
5959
|
+
}
|
|
5857
5960
|
};
|
|
5858
5961
|
_UiPath_config = new WeakMap(), _UiPath_authService = new WeakMap(), _UiPath_initialized = new WeakMap(), _UiPath_partialConfig = new WeakMap(), _UiPath_instances = new WeakSet(), _UiPath_initializeWithConfig = function _UiPath_initializeWithConfig(config) {
|
|
5859
5962
|
// Validate and normalize the configuration
|
|
@@ -7487,6 +7590,13 @@ function createEntityMethods(entityData, service) {
|
|
|
7487
7590
|
throw new Error('Entity ID is undefined');
|
|
7488
7591
|
return service.insertRecordsById(entityData.id, data, options);
|
|
7489
7592
|
},
|
|
7593
|
+
async updateRecord(recordId, data, options) {
|
|
7594
|
+
if (!entityData.id)
|
|
7595
|
+
throw new Error('Entity ID is undefined');
|
|
7596
|
+
if (!recordId)
|
|
7597
|
+
throw new Error('Record ID is undefined');
|
|
7598
|
+
return service.updateRecordById(entityData.id, recordId, data, options);
|
|
7599
|
+
},
|
|
7490
7600
|
async updateRecords(data, options) {
|
|
7491
7601
|
if (!entityData.id)
|
|
7492
7602
|
throw new Error('Entity ID is undefined');
|
|
@@ -7895,6 +8005,42 @@ class EntityService extends BaseService {
|
|
|
7895
8005
|
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
7896
8006
|
return camelResponse;
|
|
7897
8007
|
}
|
|
8008
|
+
/**
|
|
8009
|
+
* Updates a single record in an entity by entity ID
|
|
8010
|
+
*
|
|
8011
|
+
* @param entityId - UUID of the entity
|
|
8012
|
+
* @param recordId - UUID of the record to update
|
|
8013
|
+
* @param data - Key-value pairs of fields to update
|
|
8014
|
+
* @param options - Update options
|
|
8015
|
+
* @returns Promise resolving to the updated record
|
|
8016
|
+
*
|
|
8017
|
+
* @example
|
|
8018
|
+
* ```typescript
|
|
8019
|
+
* import { Entities } from '@uipath/uipath-typescript/entities';
|
|
8020
|
+
*
|
|
8021
|
+
* const entities = new Entities(sdk);
|
|
8022
|
+
*
|
|
8023
|
+
* // Basic usage
|
|
8024
|
+
* const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 });
|
|
8025
|
+
*
|
|
8026
|
+
* // With options
|
|
8027
|
+
* const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 }, {
|
|
8028
|
+
* expansionLevel: 1
|
|
8029
|
+
* });
|
|
8030
|
+
* ```
|
|
8031
|
+
*/
|
|
8032
|
+
async updateRecordById(entityId, recordId, data, options = {}) {
|
|
8033
|
+
const params = createParams({
|
|
8034
|
+
expansionLevel: options.expansionLevel
|
|
8035
|
+
});
|
|
8036
|
+
const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPDATE_RECORD_BY_ID(entityId, recordId), data, {
|
|
8037
|
+
params,
|
|
8038
|
+
...options
|
|
8039
|
+
});
|
|
8040
|
+
// Convert PascalCase response to camelCase
|
|
8041
|
+
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
8042
|
+
return camelResponse;
|
|
8043
|
+
}
|
|
7898
8044
|
/**
|
|
7899
8045
|
* Updates data in an entity by entity ID
|
|
7900
8046
|
*
|
|
@@ -8226,6 +8372,9 @@ __decorate([
|
|
|
8226
8372
|
__decorate([
|
|
8227
8373
|
track('Entities.InsertRecordsById')
|
|
8228
8374
|
], EntityService.prototype, "insertRecordsById", null);
|
|
8375
|
+
__decorate([
|
|
8376
|
+
track('Entities.UpdateRecordById')
|
|
8377
|
+
], EntityService.prototype, "updateRecordById", null);
|
|
8229
8378
|
__decorate([
|
|
8230
8379
|
track('Entities.UpdateRecordsById')
|
|
8231
8380
|
], EntityService.prototype, "updateRecordsById", null);
|
|
@@ -9264,63 +9413,27 @@ const CASE_INSTANCE_TASK_FILTER = (caseInstanceId) => `Tags/any(tags:tags/Displa
|
|
|
9264
9413
|
*/
|
|
9265
9414
|
const CASE_INSTANCE_TASK_EXPAND = 'AssignedToUser,Activities';
|
|
9266
9415
|
|
|
9267
|
-
var TaskType;
|
|
9268
|
-
(function (TaskType) {
|
|
9269
|
-
TaskType["Form"] = "FormTask";
|
|
9270
|
-
TaskType["External"] = "ExternalTask";
|
|
9271
|
-
TaskType["App"] = "AppTask";
|
|
9272
|
-
})(TaskType || (TaskType = {}));
|
|
9273
|
-
var TaskPriority;
|
|
9274
|
-
(function (TaskPriority) {
|
|
9275
|
-
TaskPriority["Low"] = "Low";
|
|
9276
|
-
TaskPriority["Medium"] = "Medium";
|
|
9277
|
-
TaskPriority["High"] = "High";
|
|
9278
|
-
TaskPriority["Critical"] = "Critical";
|
|
9279
|
-
})(TaskPriority || (TaskPriority = {}));
|
|
9280
|
-
var TaskStatus;
|
|
9281
|
-
(function (TaskStatus) {
|
|
9282
|
-
TaskStatus["Unassigned"] = "Unassigned";
|
|
9283
|
-
TaskStatus["Pending"] = "Pending";
|
|
9284
|
-
TaskStatus["Completed"] = "Completed";
|
|
9285
|
-
})(TaskStatus || (TaskStatus = {}));
|
|
9286
|
-
var TaskSlaCriteria;
|
|
9287
|
-
(function (TaskSlaCriteria) {
|
|
9288
|
-
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
9289
|
-
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
9290
|
-
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
9291
|
-
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
9292
|
-
var TaskSlaStatus;
|
|
9293
|
-
(function (TaskSlaStatus) {
|
|
9294
|
-
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
9295
|
-
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
9296
|
-
TaskSlaStatus["Overdue"] = "Overdue";
|
|
9297
|
-
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
9298
|
-
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
9299
|
-
var TaskSourceName;
|
|
9300
|
-
(function (TaskSourceName) {
|
|
9301
|
-
TaskSourceName["Agent"] = "Agent";
|
|
9302
|
-
TaskSourceName["Workflow"] = "Workflow";
|
|
9303
|
-
TaskSourceName["Maestro"] = "Maestro";
|
|
9304
|
-
TaskSourceName["Default"] = "Default";
|
|
9305
|
-
})(TaskSourceName || (TaskSourceName = {}));
|
|
9306
9416
|
/**
|
|
9307
|
-
*
|
|
9417
|
+
* Maps numeric TaskStatus values (from API) to TaskStatus enum values.
|
|
9418
|
+
* Extend this file with additional field mappings as needed.
|
|
9308
9419
|
*/
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9420
|
+
const TaskStatusMap = {
|
|
9421
|
+
0: TaskStatus.Unassigned,
|
|
9422
|
+
1: TaskStatus.Pending,
|
|
9423
|
+
2: TaskStatus.Completed,
|
|
9424
|
+
};
|
|
9425
|
+
// Field mapping for time-related fields to ensure consistent naming
|
|
9426
|
+
const TaskMap = {
|
|
9427
|
+
completionTime: 'completedTime',
|
|
9428
|
+
deletionTime: 'deletedTime',
|
|
9429
|
+
lastModificationTime: 'lastModifiedTime',
|
|
9430
|
+
creationTime: 'createdTime',
|
|
9431
|
+
organizationUnitId: 'folderId'
|
|
9432
|
+
};
|
|
9433
|
+
/**
|
|
9434
|
+
* Default expand parameters
|
|
9435
|
+
*/
|
|
9436
|
+
const DEFAULT_TASK_EXPAND = 'AssignedToUser,CreatorUser,LastModifierUser';
|
|
9324
9437
|
|
|
9325
9438
|
/**
|
|
9326
9439
|
* Creates methods for a task
|
|
@@ -9379,28 +9492,6 @@ function createTaskWithMethods(taskData, service) {
|
|
|
9379
9492
|
return Object.assign({}, taskData, methods);
|
|
9380
9493
|
}
|
|
9381
9494
|
|
|
9382
|
-
/**
|
|
9383
|
-
* Maps numeric TaskStatus values (from API) to TaskStatus enum values.
|
|
9384
|
-
* Extend this file with additional field mappings as needed.
|
|
9385
|
-
*/
|
|
9386
|
-
const TaskStatusMap = {
|
|
9387
|
-
0: TaskStatus.Unassigned,
|
|
9388
|
-
1: TaskStatus.Pending,
|
|
9389
|
-
2: TaskStatus.Completed,
|
|
9390
|
-
};
|
|
9391
|
-
// Field mapping for time-related fields to ensure consistent naming
|
|
9392
|
-
const TaskMap = {
|
|
9393
|
-
completionTime: 'completedTime',
|
|
9394
|
-
deletionTime: 'deletedTime',
|
|
9395
|
-
lastModificationTime: 'lastModifiedTime',
|
|
9396
|
-
creationTime: 'createdTime',
|
|
9397
|
-
organizationUnitId: 'folderId'
|
|
9398
|
-
};
|
|
9399
|
-
/**
|
|
9400
|
-
* Default expand parameters
|
|
9401
|
-
*/
|
|
9402
|
-
const DEFAULT_TASK_EXPAND = 'AssignedToUser,CreatorUser,LastModifierUser';
|
|
9403
|
-
|
|
9404
9495
|
/**
|
|
9405
9496
|
* Service for interacting with UiPath Tasks API
|
|
9406
9497
|
*/
|
|
@@ -9595,29 +9686,38 @@ class TaskService extends BaseService {
|
|
|
9595
9686
|
}
|
|
9596
9687
|
/**
|
|
9597
9688
|
* Gets a task by ID
|
|
9598
|
-
* IMPORTANT: For form tasks, folderId must be provided.
|
|
9599
|
-
*
|
|
9600
9689
|
* @param id - The ID of the task to retrieve
|
|
9601
|
-
* @param options - Optional query parameters
|
|
9602
|
-
* @param folderId - Optional folder ID (REQUIRED
|
|
9603
|
-
* @returns Promise resolving to the task
|
|
9604
|
-
*
|
|
9690
|
+
* @param options - Optional query parameters including taskType for faster retrieval {@link TaskGetByIdOptions}
|
|
9691
|
+
* @param folderId - Optional folder ID (REQUIRED when options.taskType is provided)
|
|
9692
|
+
* @returns Promise resolving to the task
|
|
9693
|
+
* {@link TaskGetResponse}
|
|
9605
9694
|
* @example
|
|
9606
9695
|
* ```typescript
|
|
9607
|
-
*
|
|
9696
|
+
* // Get a task by ID
|
|
9697
|
+
* const task = await tasks.getById(<taskId>);
|
|
9608
9698
|
*
|
|
9609
|
-
*
|
|
9699
|
+
* // Get a form task by ID
|
|
9700
|
+
* const formTask = await tasks.getById(<taskId>, {}, <folderId>);
|
|
9610
9701
|
*
|
|
9611
|
-
* //
|
|
9612
|
-
*
|
|
9702
|
+
* // Access form task properties
|
|
9703
|
+
* console.log(formTask.formLayout);
|
|
9613
9704
|
*
|
|
9614
|
-
* //
|
|
9705
|
+
* // Get a document validation task by ID (faster with taskType provided in the options)
|
|
9706
|
+
* const dvTask = await tasks.getById(<taskId>, { taskType: TaskType.DocumentValidation }, <folderId>);
|
|
9615
9707
|
* ```
|
|
9616
9708
|
*/
|
|
9617
9709
|
async getById(id, options = {}, folderId) {
|
|
9710
|
+
const { taskType, ...restOptions } = options;
|
|
9711
|
+
// If taskType is provided, skip the generic GET_BY_ID call and go directly to the type-specific endpoint
|
|
9712
|
+
if (taskType && taskType in TASK_TYPE_ENDPOINTS) {
|
|
9713
|
+
if (!folderId) {
|
|
9714
|
+
throw new ValidationError({ message: 'folderId is required when taskType is provided' });
|
|
9715
|
+
}
|
|
9716
|
+
return this.getByTaskType(id, folderId, taskType, restOptions);
|
|
9717
|
+
}
|
|
9618
9718
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
9619
9719
|
// Add default expand parameters
|
|
9620
|
-
const modifiedOptions = this.addDefaultExpand(
|
|
9720
|
+
const modifiedOptions = this.addDefaultExpand(restOptions);
|
|
9621
9721
|
// prefix all keys in options
|
|
9622
9722
|
const keysToPrefix = Object.keys(modifiedOptions);
|
|
9623
9723
|
const apiOptions = addPrefixToKeys(modifiedOptions, ODATA_PREFIX, keysToPrefix);
|
|
@@ -9627,10 +9727,10 @@ class TaskService extends BaseService {
|
|
|
9627
9727
|
});
|
|
9628
9728
|
// Transform response from PascalCase to camelCase and normalize time fields
|
|
9629
9729
|
const transformedTask = transformData(pascalToCamelCaseKeys(response.data), TaskMap);
|
|
9630
|
-
//
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
return this.
|
|
9730
|
+
// Get task type from response and fetch type-specific data
|
|
9731
|
+
const resolvedFolderId = folderId || transformedTask.folderId;
|
|
9732
|
+
if (transformedTask.type in TASK_TYPE_ENDPOINTS) {
|
|
9733
|
+
return this.getByTaskType(id, resolvedFolderId, transformedTask.type, restOptions);
|
|
9634
9734
|
}
|
|
9635
9735
|
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: 'status', valueMap: TaskStatusMap }), this);
|
|
9636
9736
|
}
|
|
@@ -9819,24 +9919,33 @@ class TaskService extends BaseService {
|
|
|
9819
9919
|
};
|
|
9820
9920
|
}
|
|
9821
9921
|
/**
|
|
9822
|
-
*
|
|
9922
|
+
* Routes to the type-specific endpoint based on task type.
|
|
9923
|
+
*/
|
|
9924
|
+
getByTaskType(id, folderId, taskType, options = {}) {
|
|
9925
|
+
const endpoint = TASK_TYPE_ENDPOINTS[taskType];
|
|
9926
|
+
const extraParams = taskType === TaskType.Form ? { expandOnFormLayout: true, ...options } : options;
|
|
9927
|
+
return this.getTaskByTypeEndpoint(id, folderId, endpoint, extraParams);
|
|
9928
|
+
}
|
|
9929
|
+
/**
|
|
9930
|
+
* Fetches a task from a type-specific endpoint.
|
|
9823
9931
|
*
|
|
9824
|
-
* @param id - The
|
|
9932
|
+
* @param id - The task ID
|
|
9825
9933
|
* @param folderId - Required folder ID
|
|
9826
|
-
* @param
|
|
9827
|
-
* @
|
|
9934
|
+
* @param endpoint - The type-specific endpoint to call
|
|
9935
|
+
* @param extraParams - Additional query parameters (e.g. form options)
|
|
9936
|
+
* @returns Promise resolving to the task
|
|
9828
9937
|
*/
|
|
9829
|
-
async
|
|
9938
|
+
async getTaskByTypeEndpoint(id, folderId, endpoint, extraParams = {}) {
|
|
9830
9939
|
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
9831
|
-
const response = await this.get(
|
|
9940
|
+
const response = await this.get(endpoint, {
|
|
9832
9941
|
params: {
|
|
9833
9942
|
taskId: id,
|
|
9834
|
-
...
|
|
9943
|
+
...extraParams
|
|
9835
9944
|
},
|
|
9836
9945
|
headers
|
|
9837
9946
|
});
|
|
9838
|
-
const
|
|
9839
|
-
return createTaskWithMethods(applyDataTransforms(
|
|
9947
|
+
const transformedTask = transformData(response.data, TaskMap);
|
|
9948
|
+
return createTaskWithMethods(applyDataTransforms(transformedTask, { field: 'status', valueMap: TaskStatusMap }), this);
|
|
9840
9949
|
}
|
|
9841
9950
|
/**
|
|
9842
9951
|
* Adds default expand parameters to options
|
|
@@ -10851,6 +10960,106 @@ var BucketOptions;
|
|
|
10851
10960
|
BucketOptions["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
|
|
10852
10961
|
})(BucketOptions || (BucketOptions = {}));
|
|
10853
10962
|
|
|
10963
|
+
/**
|
|
10964
|
+
* Maps fields for Job entities to ensure consistent naming
|
|
10965
|
+
* Semantic renames only — case conversion handled by pascalToCamelCaseKeys()
|
|
10966
|
+
*/
|
|
10967
|
+
const JobMap = {
|
|
10968
|
+
creationTime: 'createdTime',
|
|
10969
|
+
lastModificationTime: 'lastModifiedTime',
|
|
10970
|
+
organizationUnitId: 'folderId',
|
|
10971
|
+
organizationUnitFullyQualifiedName: 'folderName',
|
|
10972
|
+
releaseName: 'processName',
|
|
10973
|
+
releaseVersionId: 'processVersionId',
|
|
10974
|
+
processType: 'packageType',
|
|
10975
|
+
release: 'process',
|
|
10976
|
+
};
|
|
10977
|
+
|
|
10978
|
+
/**
|
|
10979
|
+
* Service for interacting with UiPath Orchestrator Jobs API
|
|
10980
|
+
*/
|
|
10981
|
+
class JobService extends FolderScopedService {
|
|
10982
|
+
/**
|
|
10983
|
+
* Gets all jobs across folders with optional filtering
|
|
10984
|
+
*
|
|
10985
|
+
* @param options - Query options including optional folderId and pagination options
|
|
10986
|
+
* @returns Promise resolving to array of jobs or paginated response
|
|
10987
|
+
*
|
|
10988
|
+
* @example
|
|
10989
|
+
* ```typescript
|
|
10990
|
+
* import { Jobs } from '@uipath/uipath-typescript/jobs';
|
|
10991
|
+
*
|
|
10992
|
+
* const jobs = new Jobs(sdk);
|
|
10993
|
+
*
|
|
10994
|
+
* // Get all jobs
|
|
10995
|
+
* const allJobs = await jobs.getAll();
|
|
10996
|
+
*
|
|
10997
|
+
* // Get all jobs in a specific folder
|
|
10998
|
+
* const folderJobs = await jobs.getAll({ folderId: 123 });
|
|
10999
|
+
*
|
|
11000
|
+
* // With filtering
|
|
11001
|
+
* const runningJobs = await jobs.getAll({
|
|
11002
|
+
* filter: "state eq 'Running'"
|
|
11003
|
+
* });
|
|
11004
|
+
*
|
|
11005
|
+
* // First page with pagination
|
|
11006
|
+
* const page1 = await jobs.getAll({ pageSize: 10 });
|
|
11007
|
+
*
|
|
11008
|
+
* // Navigate using cursor
|
|
11009
|
+
* if (page1.hasNextPage) {
|
|
11010
|
+
* const page2 = await jobs.getAll({ cursor: page1.nextCursor });
|
|
11011
|
+
* }
|
|
11012
|
+
* ```
|
|
11013
|
+
*/
|
|
11014
|
+
async getAll(options) {
|
|
11015
|
+
const transformJobResponse = (job) => transformData(pascalToCamelCaseKeys(job), JobMap);
|
|
11016
|
+
return PaginationHelpers.getAll({
|
|
11017
|
+
serviceAccess: this.createPaginationServiceAccess(),
|
|
11018
|
+
getEndpoint: () => JOB_ENDPOINTS.GET_ALL,
|
|
11019
|
+
getByFolderEndpoint: JOB_ENDPOINTS.GET_ALL,
|
|
11020
|
+
transformFn: transformJobResponse,
|
|
11021
|
+
pagination: {
|
|
11022
|
+
paginationType: PaginationType.OFFSET,
|
|
11023
|
+
itemsField: ODATA_PAGINATION.ITEMS_FIELD,
|
|
11024
|
+
totalCountField: ODATA_PAGINATION.TOTAL_COUNT_FIELD,
|
|
11025
|
+
paginationParams: {
|
|
11026
|
+
pageSizeParam: ODATA_OFFSET_PARAMS.PAGE_SIZE_PARAM,
|
|
11027
|
+
offsetParam: ODATA_OFFSET_PARAMS.OFFSET_PARAM,
|
|
11028
|
+
countParam: ODATA_OFFSET_PARAMS.COUNT_PARAM,
|
|
11029
|
+
},
|
|
11030
|
+
},
|
|
11031
|
+
}, options);
|
|
11032
|
+
}
|
|
11033
|
+
}
|
|
11034
|
+
__decorate([
|
|
11035
|
+
track('Jobs.GetAll')
|
|
11036
|
+
], JobService.prototype, "getAll", null);
|
|
11037
|
+
|
|
11038
|
+
/**
|
|
11039
|
+
* Enum for job sub-state
|
|
11040
|
+
*/
|
|
11041
|
+
var JobSubState;
|
|
11042
|
+
(function (JobSubState) {
|
|
11043
|
+
JobSubState["WithFaults"] = "WITH_FAULTS";
|
|
11044
|
+
JobSubState["Manually"] = "MANUALLY";
|
|
11045
|
+
})(JobSubState || (JobSubState = {}));
|
|
11046
|
+
/**
|
|
11047
|
+
* Enum for serverless job type
|
|
11048
|
+
*/
|
|
11049
|
+
var ServerlessJobType;
|
|
11050
|
+
(function (ServerlessJobType) {
|
|
11051
|
+
ServerlessJobType["RobotJob"] = "RobotJob";
|
|
11052
|
+
ServerlessJobType["WebApp"] = "WebApp";
|
|
11053
|
+
ServerlessJobType["LoadTest"] = "LoadTest";
|
|
11054
|
+
ServerlessJobType["StudioWebDesigner"] = "StudioWebDesigner";
|
|
11055
|
+
ServerlessJobType["PublishStudioProject"] = "PublishStudioProject";
|
|
11056
|
+
ServerlessJobType["JsApi"] = "JsApi";
|
|
11057
|
+
ServerlessJobType["PythonCodedAgent"] = "PythonCodedAgent";
|
|
11058
|
+
ServerlessJobType["MCPServer"] = "MCPServer";
|
|
11059
|
+
ServerlessJobType["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
|
|
11060
|
+
ServerlessJobType["PythonAgent"] = "PythonAgent";
|
|
11061
|
+
})(ServerlessJobType || (ServerlessJobType = {}));
|
|
11062
|
+
|
|
10854
11063
|
/**
|
|
10855
11064
|
* Maps fields for Process entities to ensure consistent naming
|
|
10856
11065
|
*/
|
|
@@ -11033,6 +11242,9 @@ var PackageType;
|
|
|
11033
11242
|
PackageType["Api"] = "Api";
|
|
11034
11243
|
PackageType["MCPServer"] = "MCPServer";
|
|
11035
11244
|
PackageType["BusinessRules"] = "BusinessRules";
|
|
11245
|
+
PackageType["CaseManagement"] = "CaseManagement";
|
|
11246
|
+
PackageType["Flow"] = "Flow";
|
|
11247
|
+
PackageType["Function"] = "Function";
|
|
11036
11248
|
})(PackageType || (PackageType = {}));
|
|
11037
11249
|
/**
|
|
11038
11250
|
* Enum for job priority
|
|
@@ -11111,6 +11323,36 @@ var PackageSourceType;
|
|
|
11111
11323
|
PackageSourceType["AgentHub"] = "AgentHub";
|
|
11112
11324
|
PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11113
11325
|
})(PackageSourceType || (PackageSourceType = {}));
|
|
11326
|
+
/**
|
|
11327
|
+
* Enum for job source type
|
|
11328
|
+
*/
|
|
11329
|
+
var JobSourceType;
|
|
11330
|
+
(function (JobSourceType) {
|
|
11331
|
+
JobSourceType["Manual"] = "Manual";
|
|
11332
|
+
JobSourceType["Schedule"] = "Schedule";
|
|
11333
|
+
JobSourceType["Agent"] = "Agent";
|
|
11334
|
+
JobSourceType["Queue"] = "Queue";
|
|
11335
|
+
JobSourceType["StudioWeb"] = "StudioWeb";
|
|
11336
|
+
JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
11337
|
+
JobSourceType["StudioDesktop"] = "StudioDesktop";
|
|
11338
|
+
JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
11339
|
+
JobSourceType["Apps"] = "Apps";
|
|
11340
|
+
JobSourceType["SAP"] = "SAP";
|
|
11341
|
+
JobSourceType["HttpTrigger"] = "HttpTrigger";
|
|
11342
|
+
JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
11343
|
+
JobSourceType["RobotAPI"] = "RobotAPI";
|
|
11344
|
+
JobSourceType["CommandLine"] = "CommandLine";
|
|
11345
|
+
JobSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
11346
|
+
JobSourceType["Autopilot"] = "Autopilot";
|
|
11347
|
+
JobSourceType["TestManager"] = "TestManager";
|
|
11348
|
+
JobSourceType["AgentService"] = "AgentService";
|
|
11349
|
+
JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11350
|
+
JobSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
11351
|
+
JobSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
11352
|
+
JobSourceType["AgentHub"] = "AgentHub";
|
|
11353
|
+
JobSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
11354
|
+
JobSourceType["CaseManagement"] = "CaseManagement";
|
|
11355
|
+
})(JobSourceType || (JobSourceType = {}));
|
|
11114
11356
|
/**
|
|
11115
11357
|
* Enum for stop strategy
|
|
11116
11358
|
*/
|
|
@@ -11119,6 +11361,39 @@ var StopStrategy;
|
|
|
11119
11361
|
StopStrategy["SoftStop"] = "SoftStop";
|
|
11120
11362
|
StopStrategy["Kill"] = "Kill";
|
|
11121
11363
|
})(StopStrategy || (StopStrategy = {}));
|
|
11364
|
+
/**
|
|
11365
|
+
* Enum for runtime type
|
|
11366
|
+
*/
|
|
11367
|
+
var RuntimeType;
|
|
11368
|
+
(function (RuntimeType) {
|
|
11369
|
+
RuntimeType["NonProduction"] = "NonProduction";
|
|
11370
|
+
RuntimeType["Attended"] = "Attended";
|
|
11371
|
+
RuntimeType["Unattended"] = "Unattended";
|
|
11372
|
+
RuntimeType["Development"] = "Development";
|
|
11373
|
+
RuntimeType["Studio"] = "Studio";
|
|
11374
|
+
RuntimeType["RpaDeveloper"] = "RpaDeveloper";
|
|
11375
|
+
RuntimeType["StudioX"] = "StudioX";
|
|
11376
|
+
RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
|
|
11377
|
+
RuntimeType["Headless"] = "Headless";
|
|
11378
|
+
RuntimeType["StudioPro"] = "StudioPro";
|
|
11379
|
+
RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
11380
|
+
RuntimeType["TestAutomation"] = "TestAutomation";
|
|
11381
|
+
RuntimeType["AutomationCloud"] = "AutomationCloud";
|
|
11382
|
+
RuntimeType["Serverless"] = "Serverless";
|
|
11383
|
+
RuntimeType["AutomationKit"] = "AutomationKit";
|
|
11384
|
+
RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
11385
|
+
RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
11386
|
+
RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
11387
|
+
RuntimeType["Hosting"] = "Hosting";
|
|
11388
|
+
RuntimeType["AssistantWeb"] = "AssistantWeb";
|
|
11389
|
+
RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
11390
|
+
RuntimeType["AgentService"] = "AgentService";
|
|
11391
|
+
RuntimeType["AppTest"] = "AppTest";
|
|
11392
|
+
RuntimeType["PerformanceTest"] = "PerformanceTest";
|
|
11393
|
+
RuntimeType["BusinessRule"] = "BusinessRule";
|
|
11394
|
+
RuntimeType["CaseManagement"] = "CaseManagement";
|
|
11395
|
+
RuntimeType["Flow"] = "Flow";
|
|
11396
|
+
})(RuntimeType || (RuntimeType = {}));
|
|
11122
11397
|
/**
|
|
11123
11398
|
* Enum for job type
|
|
11124
11399
|
*/
|
|
@@ -11241,6 +11516,49 @@ __decorate([
|
|
|
11241
11516
|
track('Queues.GetById')
|
|
11242
11517
|
], QueueService.prototype, "getById", null);
|
|
11243
11518
|
|
|
11519
|
+
/**
|
|
11520
|
+
* Maps fields for Attachment entities to ensure consistent naming
|
|
11521
|
+
*/
|
|
11522
|
+
const AttachmentsMap = {
|
|
11523
|
+
creationTime: 'createdTime',
|
|
11524
|
+
lastModificationTime: 'lastModifiedTime'
|
|
11525
|
+
};
|
|
11526
|
+
|
|
11527
|
+
class AttachmentService extends BaseService {
|
|
11528
|
+
/**
|
|
11529
|
+
* Gets an attachment by ID
|
|
11530
|
+
* @param id - The UUID of the attachment to retrieve
|
|
11531
|
+
* @param options - Optional query parameters (expand, select)
|
|
11532
|
+
* @returns Promise resolving to the attachment
|
|
11533
|
+
*
|
|
11534
|
+
* @example
|
|
11535
|
+
* ```typescript
|
|
11536
|
+
* import { Attachments } from '@uipath/uipath-typescript/attachments';
|
|
11537
|
+
*
|
|
11538
|
+
* const attachments = new Attachments(sdk);
|
|
11539
|
+
* const attachment = await attachments.getById('12345678-1234-1234-1234-123456789abc');
|
|
11540
|
+
* ```
|
|
11541
|
+
*/
|
|
11542
|
+
async getById(id, options = {}) {
|
|
11543
|
+
if (!id) {
|
|
11544
|
+
throw new ValidationError({ message: 'id is required for getById' });
|
|
11545
|
+
}
|
|
11546
|
+
// Prefix all keys in options with $ for OData
|
|
11547
|
+
const keysToPrefix = Object.keys(options);
|
|
11548
|
+
const apiOptions = addPrefixToKeys(options, ODATA_PREFIX, keysToPrefix);
|
|
11549
|
+
const response = await this.get(ORCHESTRATOR_ATTACHMENT_ENDPOINTS.GET_BY_ID(id), {
|
|
11550
|
+
params: apiOptions,
|
|
11551
|
+
});
|
|
11552
|
+
// Transform response from PascalCase to camelCase, then apply field maps
|
|
11553
|
+
const camelCased = pascalToCamelCaseKeys(response.data);
|
|
11554
|
+
camelCased.blobFileAccess = transformData(camelCased.blobFileAccess, BucketMap);
|
|
11555
|
+
return transformData(camelCased, AttachmentsMap);
|
|
11556
|
+
}
|
|
11557
|
+
}
|
|
11558
|
+
__decorate([
|
|
11559
|
+
track('Attachments.GetById')
|
|
11560
|
+
], AttachmentService.prototype, "getById", null);
|
|
11561
|
+
|
|
11244
11562
|
/**
|
|
11245
11563
|
* UiPath SDK - Legacy class providing all services through property getters.
|
|
11246
11564
|
*
|
|
@@ -11705,4 +12023,4 @@ function getAppBase() {
|
|
|
11705
12023
|
return getMetaTagContent(UiPathMetaTags.APP_BASE) || '/';
|
|
11706
12024
|
}
|
|
11707
12025
|
|
|
11708
|
-
export { APP_NAME, AgentMap, AssetValueScope, AssetValueType, AuthenticationError, AuthorizationError, BucketOptions, CLOUD_CLIENT_ID, CLOUD_ORGANIZATION_NAME, CLOUD_REDIRECT_URI, CLOUD_ROLE_NAME, CLOUD_TENANT_NAME, CLOUD_URL, CONNECTION_STRING, CitationErrorType, ConversationMap, DEFAULT_ITEMS_FIELD, DEFAULT_PAGE_SIZE, DEFAULT_TOTAL_COUNT_FIELD, DataDirectionType, DebugMode, EntityFieldDataType, EntityType, ErrorType, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, ExchangeMap, FeedbackRating, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InterruptType, JobPriority, JobState, JobType, JoinType, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, SDK_LOGGER_NAME, SDK_RUN_EVENT, SDK_SERVICE_NAME, SDK_VERSION, SERVICE, SLADurationUnit, ServerError, SortOrder, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, UNKNOWN$1 as UNKNOWN, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, VERSION, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createConversationWithMethods, createEntityWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|
|
12026
|
+
export { APP_NAME, AgentMap, AssetValueScope, AssetValueType, AuthenticationError, AuthorizationError, BucketOptions, CLOUD_CLIENT_ID, CLOUD_ORGANIZATION_NAME, CLOUD_REDIRECT_URI, CLOUD_ROLE_NAME, CLOUD_TENANT_NAME, CLOUD_URL, CONNECTION_STRING, CitationErrorType, ConversationMap, DEFAULT_ITEMS_FIELD, DEFAULT_PAGE_SIZE, DEFAULT_TOTAL_COUNT_FIELD, DataDirectionType, DebugMode, EntityFieldDataType, EntityType, ErrorType, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, ExchangeMap, FeedbackRating, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InterruptType, JobPriority, JobSourceType, JobState, JobSubState, JobType, JoinType, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, RuntimeType, SDK_LOGGER_NAME, SDK_RUN_EVENT, SDK_SERVICE_NAME, SDK_VERSION, SERVICE, SLADurationUnit, ServerError, ServerlessJobType, SortOrder, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, UNKNOWN$1 as UNKNOWN, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, VERSION, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createConversationWithMethods, createEntityWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|