@uipath/uipath-typescript 1.3.8 → 1.3.10
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 +44 -276
- package/dist/assets/index.mjs +44 -276
- package/dist/attachments/index.cjs +42 -273
- package/dist/attachments/index.mjs +42 -273
- package/dist/buckets/index.cjs +195 -276
- package/dist/buckets/index.d.ts +213 -1
- package/dist/buckets/index.mjs +195 -276
- package/dist/cases/index.cjs +427 -343
- package/dist/cases/index.d.ts +534 -2
- package/dist/cases/index.mjs +428 -344
- package/dist/conversational-agent/index.cjs +90 -287
- package/dist/conversational-agent/index.d.ts +62 -12
- package/dist/conversational-agent/index.mjs +90 -288
- package/dist/core/index.cjs +39 -289
- package/dist/core/index.d.ts +9 -98
- package/dist/core/index.mjs +40 -275
- package/dist/document-understanding/index.cjs +18 -1
- package/dist/document-understanding/index.d.ts +636 -610
- package/dist/document-understanding/index.mjs +18 -1
- package/dist/entities/index.cjs +251 -277
- package/dist/entities/index.d.ts +305 -2
- package/dist/entities/index.mjs +251 -277
- package/dist/feedback/index.cjs +42 -274
- package/dist/feedback/index.mjs +42 -274
- package/dist/index.cjs +998 -351
- package/dist/index.d.ts +2159 -762
- package/dist/index.mjs +998 -337
- package/dist/index.umd.js +1208 -237
- package/dist/jobs/index.cjs +44 -276
- package/dist/jobs/index.mjs +44 -276
- package/dist/maestro-processes/index.cjs +1761 -1717
- package/dist/maestro-processes/index.d.ts +430 -2
- package/dist/maestro-processes/index.mjs +1762 -1718
- package/dist/processes/index.cjs +72 -305
- package/dist/processes/index.d.ts +76 -26
- package/dist/processes/index.mjs +72 -305
- package/dist/queues/index.cjs +44 -276
- package/dist/queues/index.mjs +44 -276
- package/dist/tasks/index.cjs +44 -276
- package/dist/tasks/index.mjs +44 -276
- package/package.json +8 -10
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getOrCreateClient, createTrack, createTrackEvent } from '@uipath/core-telemetry';
|
|
2
2
|
|
|
3
3
|
/******************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -4512,6 +4512,8 @@ const BUCKET_ENDPOINTS = {
|
|
|
4512
4512
|
GET_FILE_META_DATA: (id) => `${ORCHESTRATOR_BASE}/api/Buckets/${id}/ListFiles`,
|
|
4513
4513
|
GET_READ_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
4514
4514
|
GET_WRITE_URI: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`,
|
|
4515
|
+
DELETE_FILE: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.DeleteFile`,
|
|
4516
|
+
GET_FILES: (id) => `${ORCHESTRATOR_BASE}/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetFiles`,
|
|
4515
4517
|
};
|
|
4516
4518
|
/**
|
|
4517
4519
|
* Orchestrator Process Service Endpoints
|
|
@@ -4588,6 +4590,16 @@ const MAESTRO_ENDPOINTS = {
|
|
|
4588
4590
|
INSIGHTS: {
|
|
4589
4591
|
/** SLA summary for case instances */
|
|
4590
4592
|
SLA_SUMMARY: `${INSIGHTS_RTM_BASE}/caseManagement/slaSummary`,
|
|
4593
|
+
/** Stages summary for case instances */
|
|
4594
|
+
STAGES_SUMMARY: `${INSIGHTS_RTM_BASE}/caseManagement/stages`,
|
|
4595
|
+
/** Top processes ranked by run count */
|
|
4596
|
+
TOP_PROCESSES_BY_RUN_COUNT: `${INSIGHTS_RTM_BASE}/agenticInstanceStatus/TopProcessesByRunCount`,
|
|
4597
|
+
/** Top processes ranked by failure count */
|
|
4598
|
+
TOP_PROCESSES_WITH_FAILURE: `${INSIGHTS_RTM_BASE}/agenticInstanceStatus/TopProcesseswithFailure`,
|
|
4599
|
+
/** Instance status aggregated by date for time-series charts */
|
|
4600
|
+
INSTANCE_STATUS_BY_DATE: `${INSIGHTS_RTM_BASE}/agenticInstanceStatus/InstanceStatusByDate`,
|
|
4601
|
+
/** Top processes ranked by total duration */
|
|
4602
|
+
TOP_PROCESSES_BY_DURATION: `${INSIGHTS_RTM_BASE}/agenticInstanceStatus/TopProcessesByDuration`,
|
|
4591
4603
|
},
|
|
4592
4604
|
};
|
|
4593
4605
|
|
|
@@ -4627,6 +4639,12 @@ const DATA_FABRIC_ENDPOINTS = {
|
|
|
4627
4639
|
CHOICESETS: {
|
|
4628
4640
|
GET_ALL: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
4629
4641
|
GET_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/query_expansion`,
|
|
4642
|
+
CREATE: `${DATAFABRIC_BASE}/api/Entity/choiceset`,
|
|
4643
|
+
UPDATE: (choiceSetId) => `${DATAFABRIC_BASE}/api/Entity/${choiceSetId}/metadata`,
|
|
4644
|
+
DELETE: (choiceSetId) => `${DATAFABRIC_BASE}/api/Entity/${choiceSetId}/delete`,
|
|
4645
|
+
INSERT_BY_NAME: (choiceSetName) => `${DATAFABRIC_BASE}/api/EntityService/${choiceSetName}/choiceset/insert`,
|
|
4646
|
+
UPDATE_BY_NAME: (choiceSetName, valueId) => `${DATAFABRIC_BASE}/api/EntityService/${choiceSetName}/choiceset/${valueId}/update`,
|
|
4647
|
+
DELETE_BY_ID: (choiceSetId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${choiceSetId}/choiceset/delete`,
|
|
4630
4648
|
},
|
|
4631
4649
|
};
|
|
4632
4650
|
|
|
@@ -5462,284 +5480,49 @@ function normalizeBaseUrl(url) {
|
|
|
5462
5480
|
}
|
|
5463
5481
|
|
|
5464
5482
|
/**
|
|
5465
|
-
* SDK Telemetry constants
|
|
5466
|
-
*/
|
|
5467
|
-
// Connection string placeholder that will be replaced during build
|
|
5468
|
-
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";
|
|
5469
|
-
// SDK Version placeholder
|
|
5470
|
-
const SDK_VERSION = "1.3.8";
|
|
5471
|
-
const VERSION = "Version";
|
|
5472
|
-
const SERVICE = "Service";
|
|
5473
|
-
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
5474
|
-
const CLOUD_TENANT_NAME = "CloudTenantName";
|
|
5475
|
-
const CLOUD_URL = "CloudUrl";
|
|
5476
|
-
const CLOUD_CLIENT_ID = "CloudClientId";
|
|
5477
|
-
const CLOUD_REDIRECT_URI = "CloudRedirectUri";
|
|
5478
|
-
const APP_NAME = "ApplicationName";
|
|
5479
|
-
const CLOUD_ROLE_NAME = "uipath-ts-sdk";
|
|
5480
|
-
// Service and logger names
|
|
5481
|
-
const SDK_SERVICE_NAME = "UiPath.TypeScript.Sdk";
|
|
5482
|
-
const SDK_LOGGER_NAME = "uipath-ts-sdk-telemetry";
|
|
5483
|
-
// Event names
|
|
5484
|
-
const SDK_RUN_EVENT = "Sdk.Run";
|
|
5485
|
-
// Default value for unknown/empty attributes
|
|
5486
|
-
const UNKNOWN$1 = "";
|
|
5487
|
-
|
|
5488
|
-
/**
|
|
5489
|
-
* Log exporter that sends ALL logs as Application Insights custom events
|
|
5490
|
-
*/
|
|
5491
|
-
class ApplicationInsightsEventExporter {
|
|
5492
|
-
constructor(connectionString) {
|
|
5493
|
-
this.connectionString = connectionString;
|
|
5494
|
-
}
|
|
5495
|
-
export(logs, resultCallback) {
|
|
5496
|
-
try {
|
|
5497
|
-
logs.forEach(logRecord => {
|
|
5498
|
-
this.sendAsCustomEvent(logRecord);
|
|
5499
|
-
});
|
|
5500
|
-
resultCallback({ code: 0 });
|
|
5501
|
-
}
|
|
5502
|
-
catch (error) {
|
|
5503
|
-
console.debug('Failed to export logs to Application Insights:', error);
|
|
5504
|
-
resultCallback({ code: 2, error });
|
|
5505
|
-
}
|
|
5506
|
-
}
|
|
5507
|
-
shutdown() {
|
|
5508
|
-
return Promise.resolve();
|
|
5509
|
-
}
|
|
5510
|
-
sendAsCustomEvent(logRecord) {
|
|
5511
|
-
// Get event name from body or attributes
|
|
5512
|
-
const eventName = logRecord.body || SDK_RUN_EVENT;
|
|
5513
|
-
const payload = {
|
|
5514
|
-
name: 'Microsoft.ApplicationInsights.Event',
|
|
5515
|
-
time: new Date().toISOString(),
|
|
5516
|
-
iKey: this.extractInstrumentationKey(),
|
|
5517
|
-
data: {
|
|
5518
|
-
baseType: 'EventData',
|
|
5519
|
-
baseData: {
|
|
5520
|
-
ver: 2,
|
|
5521
|
-
name: eventName,
|
|
5522
|
-
properties: this.convertAttributesToProperties(logRecord.attributes || {})
|
|
5523
|
-
}
|
|
5524
|
-
},
|
|
5525
|
-
tags: {
|
|
5526
|
-
'ai.cloud.role': CLOUD_ROLE_NAME,
|
|
5527
|
-
'ai.cloud.roleInstance': SDK_VERSION
|
|
5528
|
-
}
|
|
5529
|
-
};
|
|
5530
|
-
this.sendToApplicationInsights(payload);
|
|
5531
|
-
}
|
|
5532
|
-
extractInstrumentationKey() {
|
|
5533
|
-
const match = this.connectionString.match(/InstrumentationKey=([^;]+)/);
|
|
5534
|
-
return match ? match[1] : '';
|
|
5535
|
-
}
|
|
5536
|
-
convertAttributesToProperties(attributes) {
|
|
5537
|
-
const properties = {};
|
|
5538
|
-
Object.entries(attributes || {}).forEach(([key, value]) => {
|
|
5539
|
-
properties[key] = String(value);
|
|
5540
|
-
});
|
|
5541
|
-
return properties;
|
|
5542
|
-
}
|
|
5543
|
-
async sendToApplicationInsights(payload) {
|
|
5544
|
-
try {
|
|
5545
|
-
const ingestionEndpoint = this.extractIngestionEndpoint();
|
|
5546
|
-
if (!ingestionEndpoint) {
|
|
5547
|
-
console.debug('No ingestion endpoint found in connection string');
|
|
5548
|
-
return;
|
|
5549
|
-
}
|
|
5550
|
-
const url = `${ingestionEndpoint}/v2/track`;
|
|
5551
|
-
const response = await fetch(url, {
|
|
5552
|
-
method: 'POST',
|
|
5553
|
-
headers: {
|
|
5554
|
-
'Content-Type': 'application/json',
|
|
5555
|
-
},
|
|
5556
|
-
body: JSON.stringify(payload)
|
|
5557
|
-
});
|
|
5558
|
-
if (!response.ok) {
|
|
5559
|
-
console.debug(`Failed to send event telemetry: ${response.status} ${response.statusText}`);
|
|
5560
|
-
}
|
|
5561
|
-
}
|
|
5562
|
-
catch (error) {
|
|
5563
|
-
console.debug('Error sending event telemetry to Application Insights:', error);
|
|
5564
|
-
}
|
|
5565
|
-
}
|
|
5566
|
-
extractIngestionEndpoint() {
|
|
5567
|
-
const match = this.connectionString.match(/IngestionEndpoint=([^;]+)/);
|
|
5568
|
-
return match ? match[1] : '';
|
|
5569
|
-
}
|
|
5570
|
-
}
|
|
5571
|
-
/**
|
|
5572
|
-
* Singleton telemetry client
|
|
5573
|
-
*/
|
|
5574
|
-
class TelemetryClient {
|
|
5575
|
-
constructor() {
|
|
5576
|
-
this.isInitialized = false;
|
|
5577
|
-
}
|
|
5578
|
-
static getInstance() {
|
|
5579
|
-
if (!TelemetryClient.instance) {
|
|
5580
|
-
TelemetryClient.instance = new TelemetryClient();
|
|
5581
|
-
}
|
|
5582
|
-
return TelemetryClient.instance;
|
|
5583
|
-
}
|
|
5584
|
-
/**
|
|
5585
|
-
* Initialize telemetry
|
|
5586
|
-
*/
|
|
5587
|
-
initialize(config) {
|
|
5588
|
-
if (this.isInitialized) {
|
|
5589
|
-
return;
|
|
5590
|
-
}
|
|
5591
|
-
this.isInitialized = true;
|
|
5592
|
-
if (config) {
|
|
5593
|
-
this.telemetryContext = config;
|
|
5594
|
-
}
|
|
5595
|
-
try {
|
|
5596
|
-
const connectionString = this.getConnectionString();
|
|
5597
|
-
if (!connectionString) {
|
|
5598
|
-
return;
|
|
5599
|
-
}
|
|
5600
|
-
this.setupTelemetryProvider(connectionString);
|
|
5601
|
-
}
|
|
5602
|
-
catch (error) {
|
|
5603
|
-
// Silent failure - telemetry errors shouldn't break functionality
|
|
5604
|
-
console.debug('Failed to initialize OpenTelemetry:', error);
|
|
5605
|
-
}
|
|
5606
|
-
}
|
|
5607
|
-
getConnectionString() {
|
|
5608
|
-
const connectionString = CONNECTION_STRING;
|
|
5609
|
-
return connectionString;
|
|
5610
|
-
}
|
|
5611
|
-
setupTelemetryProvider(connectionString) {
|
|
5612
|
-
const exporter = new ApplicationInsightsEventExporter(connectionString);
|
|
5613
|
-
const processor = new BatchLogRecordProcessor(exporter);
|
|
5614
|
-
this.logProvider = new LoggerProvider({
|
|
5615
|
-
processors: [processor]
|
|
5616
|
-
});
|
|
5617
|
-
this.logger = this.logProvider.getLogger(SDK_LOGGER_NAME);
|
|
5618
|
-
}
|
|
5619
|
-
/**
|
|
5620
|
-
* Track a telemetry event
|
|
5621
|
-
*/
|
|
5622
|
-
track(eventName, name, extraAttributes = {}) {
|
|
5623
|
-
try {
|
|
5624
|
-
// Skip if logger not initialized
|
|
5625
|
-
if (!this.logger) {
|
|
5626
|
-
return;
|
|
5627
|
-
}
|
|
5628
|
-
const finalDisplayName = name || eventName;
|
|
5629
|
-
const attributes = this.getEnrichedAttributes(extraAttributes, eventName);
|
|
5630
|
-
// Emit as log
|
|
5631
|
-
this.logger.emit({
|
|
5632
|
-
body: finalDisplayName,
|
|
5633
|
-
attributes: attributes,
|
|
5634
|
-
timestamp: Date.now(),
|
|
5635
|
-
});
|
|
5636
|
-
}
|
|
5637
|
-
catch (error) {
|
|
5638
|
-
// Silent failure
|
|
5639
|
-
console.debug('Failed to track telemetry event:', error);
|
|
5640
|
-
}
|
|
5641
|
-
}
|
|
5642
|
-
/**
|
|
5643
|
-
* Get enriched attributes for telemetry events
|
|
5644
|
-
*/
|
|
5645
|
-
getEnrichedAttributes(extraAttributes, eventName) {
|
|
5646
|
-
const attributes = {
|
|
5647
|
-
[APP_NAME]: SDK_SERVICE_NAME,
|
|
5648
|
-
[VERSION]: SDK_VERSION,
|
|
5649
|
-
[SERVICE]: eventName,
|
|
5650
|
-
[CLOUD_URL]: this.createCloudUrl(),
|
|
5651
|
-
[CLOUD_ORGANIZATION_NAME]: this.telemetryContext?.orgName || UNKNOWN$1,
|
|
5652
|
-
[CLOUD_TENANT_NAME]: this.telemetryContext?.tenantName || UNKNOWN$1,
|
|
5653
|
-
[CLOUD_REDIRECT_URI]: this.telemetryContext?.redirectUri || UNKNOWN$1,
|
|
5654
|
-
[CLOUD_CLIENT_ID]: this.telemetryContext?.clientId || UNKNOWN$1,
|
|
5655
|
-
...extraAttributes,
|
|
5656
|
-
};
|
|
5657
|
-
return attributes;
|
|
5658
|
-
}
|
|
5659
|
-
/**
|
|
5660
|
-
* Create cloud URL from base URL, organization ID, and tenant ID
|
|
5661
|
-
*/
|
|
5662
|
-
createCloudUrl() {
|
|
5663
|
-
const baseUrl = this.telemetryContext?.baseUrl;
|
|
5664
|
-
const orgId = this.telemetryContext?.orgName;
|
|
5665
|
-
const tenantId = this.telemetryContext?.tenantName;
|
|
5666
|
-
if (!baseUrl || !orgId || !tenantId) {
|
|
5667
|
-
return UNKNOWN$1;
|
|
5668
|
-
}
|
|
5669
|
-
return `${baseUrl}/${orgId}/${tenantId}`;
|
|
5670
|
-
}
|
|
5671
|
-
}
|
|
5672
|
-
// Export singleton instance
|
|
5673
|
-
const telemetryClient = TelemetryClient.getInstance();
|
|
5674
|
-
|
|
5675
|
-
/**
|
|
5676
|
-
* SDK Track decorator and function for telemetry
|
|
5677
|
-
*/
|
|
5678
|
-
/**
|
|
5679
|
-
* Common tracking logic shared between method and function decorators
|
|
5680
|
-
*/
|
|
5681
|
-
function createTrackedFunction(originalFunction, nameOrOptions, fallbackName, opts) {
|
|
5682
|
-
return function (...args) {
|
|
5683
|
-
// Determine if we should track this call
|
|
5684
|
-
let shouldTrack = true;
|
|
5685
|
-
if (opts.condition !== undefined) {
|
|
5686
|
-
if (typeof opts.condition === 'function') {
|
|
5687
|
-
shouldTrack = opts.condition.apply(this, args);
|
|
5688
|
-
}
|
|
5689
|
-
else {
|
|
5690
|
-
shouldTrack = opts.condition;
|
|
5691
|
-
}
|
|
5692
|
-
}
|
|
5693
|
-
// Track the event if enabled
|
|
5694
|
-
if (shouldTrack) {
|
|
5695
|
-
// Use the full name provided in the decorator (e.g., "Queue.GetAll")
|
|
5696
|
-
const serviceMethod = typeof nameOrOptions === 'string'
|
|
5697
|
-
? nameOrOptions
|
|
5698
|
-
: fallbackName;
|
|
5699
|
-
// Use 'Sdk.Run' as the name and serviceMethod as the service
|
|
5700
|
-
telemetryClient.track(serviceMethod, SDK_RUN_EVENT, opts.attributes);
|
|
5701
|
-
}
|
|
5702
|
-
// Execute the original function
|
|
5703
|
-
return originalFunction.apply(this, args);
|
|
5704
|
-
};
|
|
5705
|
-
}
|
|
5706
|
-
/**
|
|
5707
|
-
* Track decorator that can be used to automatically track function calls
|
|
5483
|
+
* SDK Telemetry constants.
|
|
5708
5484
|
*
|
|
5709
|
-
*
|
|
5710
|
-
*
|
|
5711
|
-
*
|
|
5485
|
+
* Only the SDK's identity (version, service name, role name, …) lives
|
|
5486
|
+
* here. The Application Insights connection string is injected into
|
|
5487
|
+
* `@uipath/core-telemetry` itself at publish time, and the generic attribute
|
|
5488
|
+
* keys (`Version`, `Service`, `CloudOrganizationName`, …) are owned by
|
|
5489
|
+
* `@uipath/core-telemetry` and consumed there — they are not part of the
|
|
5490
|
+
* SDK's public API.
|
|
5491
|
+
*/
|
|
5492
|
+
/** SDK version placeholder — patched by the SDK publish workflow. */
|
|
5493
|
+
const SDK_VERSION = '1.3.10';
|
|
5494
|
+
const CLOUD_ROLE_NAME = 'uipath-ts-sdk';
|
|
5495
|
+
const SDK_SERVICE_NAME = 'UiPath.TypeScript.Sdk';
|
|
5496
|
+
const SDK_LOGGER_NAME = 'uipath-ts-sdk-telemetry';
|
|
5497
|
+
const SDK_RUN_EVENT = 'Sdk.Run';
|
|
5498
|
+
|
|
5499
|
+
/**
|
|
5500
|
+
* UiPath TypeScript SDK Telemetry
|
|
5712
5501
|
*
|
|
5713
|
-
*
|
|
5714
|
-
*
|
|
5715
|
-
*
|
|
5716
|
-
*
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
}
|
|
5736
|
-
}
|
|
5737
|
-
/**
|
|
5738
|
-
* Direct tracking function
|
|
5739
|
-
*/
|
|
5740
|
-
function trackEvent(eventName, name, attributes) {
|
|
5741
|
-
telemetryClient.track(eventName, name, attributes);
|
|
5742
|
-
}
|
|
5502
|
+
* Constructs the SDK's own `TelemetryClient` and binds the SDK-local
|
|
5503
|
+
* `track` / `trackEvent` to it. Each consumer of `@uipath/core-telemetry`
|
|
5504
|
+
* does this independently, so events carry their own consumer's identity
|
|
5505
|
+
* and tenant context.
|
|
5506
|
+
*/
|
|
5507
|
+
// Keyed by `CLOUD_ROLE_NAME` so every SDK subpath bundle resolves to the
|
|
5508
|
+
// same `TelemetryClient` instance at runtime. A single `initialize(...)`
|
|
5509
|
+
// from the `UiPath` constructor therefore wires up `@track` decorators
|
|
5510
|
+
// across every subpath bundle (`assets`, `feedback`, `tasks`, …).
|
|
5511
|
+
const sdkClient = getOrCreateClient(CLOUD_ROLE_NAME);
|
|
5512
|
+
const track = createTrack(sdkClient);
|
|
5513
|
+
const trackEvent = createTrackEvent(sdkClient);
|
|
5514
|
+
const telemetryClient = {
|
|
5515
|
+
initialize(context) {
|
|
5516
|
+
sdkClient.initialize({
|
|
5517
|
+
sdkVersion: SDK_VERSION,
|
|
5518
|
+
serviceName: SDK_SERVICE_NAME,
|
|
5519
|
+
cloudRoleName: CLOUD_ROLE_NAME,
|
|
5520
|
+
loggerName: SDK_LOGGER_NAME,
|
|
5521
|
+
defaultEventName: SDK_RUN_EVENT,
|
|
5522
|
+
context,
|
|
5523
|
+
});
|
|
5524
|
+
},
|
|
5525
|
+
};
|
|
5743
5526
|
|
|
5744
5527
|
/**
|
|
5745
5528
|
* SDK Internals Registry - Internal registry for SDK instances
|
|
@@ -6433,14 +6216,25 @@ class ApiClient {
|
|
|
6433
6216
|
if (!text) {
|
|
6434
6217
|
return undefined;
|
|
6435
6218
|
}
|
|
6436
|
-
|
|
6219
|
+
try {
|
|
6220
|
+
return JSON.parse(text);
|
|
6221
|
+
}
|
|
6222
|
+
catch (error) {
|
|
6223
|
+
if (error instanceof SyntaxError) {
|
|
6224
|
+
throw new ServerError({
|
|
6225
|
+
message: `Server returned non-JSON response (${response.status} ${response.url}): ${error.message}`,
|
|
6226
|
+
statusCode: response.status,
|
|
6227
|
+
});
|
|
6228
|
+
}
|
|
6229
|
+
throw error;
|
|
6230
|
+
}
|
|
6437
6231
|
}
|
|
6438
6232
|
catch (error) {
|
|
6439
6233
|
// If it's already one of our errors, re-throw it
|
|
6440
6234
|
if (error.type && error.type.includes('Error')) {
|
|
6441
6235
|
throw error;
|
|
6442
6236
|
}
|
|
6443
|
-
// Otherwise, it's
|
|
6237
|
+
// Otherwise, it's a genuine network/fetch failure
|
|
6444
6238
|
throw ErrorFactory.createNetworkError(error);
|
|
6445
6239
|
}
|
|
6446
6240
|
}
|
|
@@ -7336,9 +7130,9 @@ class PaginationHelpers {
|
|
|
7336
7130
|
* @returns Promise resolving to a paginated result
|
|
7337
7131
|
*/
|
|
7338
7132
|
static async getAllPaginated(params) {
|
|
7339
|
-
const { serviceAccess, getEndpoint, folderId, paginationParams, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
|
|
7133
|
+
const { serviceAccess, getEndpoint, folderId, headers: providedHeaders, paginationParams, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
|
|
7340
7134
|
const endpoint = getEndpoint(folderId);
|
|
7341
|
-
const headers = folderId ? createHeaders({ [FOLDER_ID]: folderId }) : {};
|
|
7135
|
+
const headers = providedHeaders ?? (folderId ? createHeaders({ [FOLDER_ID]: folderId }) : {});
|
|
7342
7136
|
const paginatedResponse = await serviceAccess.requestWithPagination(method, endpoint, paginationParams, {
|
|
7343
7137
|
headers,
|
|
7344
7138
|
params: additionalParams,
|
|
@@ -7366,13 +7160,13 @@ class PaginationHelpers {
|
|
|
7366
7160
|
* @returns Promise resolving to an object with data and totalCount
|
|
7367
7161
|
*/
|
|
7368
7162
|
static async getAllNonPaginated(params) {
|
|
7369
|
-
const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
|
|
7163
|
+
const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, headers: providedHeaders, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
|
|
7370
7164
|
// Set default field names
|
|
7371
7165
|
const itemsField = options.itemsField || DEFAULT_ITEMS_FIELD;
|
|
7372
7166
|
const totalCountField = options.totalCountField || DEFAULT_TOTAL_COUNT_FIELD;
|
|
7373
7167
|
// Determine endpoint and headers based on folderId
|
|
7374
7168
|
const endpoint = folderId ? getByFolderEndpoint : getAllEndpoint;
|
|
7375
|
-
const headers = folderId ? createHeaders({ [FOLDER_ID]: folderId }) : {};
|
|
7169
|
+
const headers = providedHeaders ?? (folderId ? createHeaders({ [FOLDER_ID]: folderId }) : {});
|
|
7376
7170
|
// Make the API call based on method
|
|
7377
7171
|
let response;
|
|
7378
7172
|
if (method === HTTP_METHODS.POST) {
|
|
@@ -7431,6 +7225,7 @@ class PaginationHelpers {
|
|
|
7431
7225
|
serviceAccess: config.serviceAccess,
|
|
7432
7226
|
getEndpoint: config.getEndpoint,
|
|
7433
7227
|
folderId,
|
|
7228
|
+
headers: config.headers,
|
|
7434
7229
|
paginationParams: cursor ? { cursor, pageSize } : jumpToPage ? { jumpToPage, pageSize } : { pageSize },
|
|
7435
7230
|
additionalParams: prefixedOptions,
|
|
7436
7231
|
transformFn: config.transformFn,
|
|
@@ -7448,6 +7243,7 @@ class PaginationHelpers {
|
|
|
7448
7243
|
getAllEndpoint: config.getEndpoint(),
|
|
7449
7244
|
getByFolderEndpoint: byFolderEndpoint,
|
|
7450
7245
|
folderId,
|
|
7246
|
+
headers: config.headers,
|
|
7451
7247
|
additionalParams: prefixedOptions,
|
|
7452
7248
|
transformFn: config.transformFn,
|
|
7453
7249
|
method: config.method,
|
|
@@ -9235,7 +9031,7 @@ class ChoiceSetService extends BaseService {
|
|
|
9235
9031
|
*
|
|
9236
9032
|
* @example
|
|
9237
9033
|
* ```typescript
|
|
9238
|
-
* import { ChoiceSets } from '@uipath/uipath-typescript/
|
|
9034
|
+
* import { ChoiceSets } from '@uipath/uipath-typescript/entities';
|
|
9239
9035
|
*
|
|
9240
9036
|
* const choiceSets = new ChoiceSets(sdk);
|
|
9241
9037
|
*
|
|
@@ -9284,6 +9080,188 @@ class ChoiceSetService extends BaseService {
|
|
|
9284
9080
|
}
|
|
9285
9081
|
}, options);
|
|
9286
9082
|
}
|
|
9083
|
+
/**
|
|
9084
|
+
* Creates a new Data Fabric choice set
|
|
9085
|
+
*
|
|
9086
|
+
* @param name - Choice set name. Must start with a
|
|
9087
|
+
* letter, may contain only letters, numbers, and underscores, length
|
|
9088
|
+
* 3–100 characters (e.g., `"expenseTypes"`).
|
|
9089
|
+
* @param options - Optional choice-set-level settings ({@link ChoiceSetCreateOptions})
|
|
9090
|
+
* @returns Promise resolving to the UUID of the created choice set
|
|
9091
|
+
*
|
|
9092
|
+
* @example
|
|
9093
|
+
* ```typescript
|
|
9094
|
+
* import { ChoiceSets } from '@uipath/uipath-typescript/entities';
|
|
9095
|
+
*
|
|
9096
|
+
* const choicesets = new ChoiceSets(sdk);
|
|
9097
|
+
*
|
|
9098
|
+
* // Minimal create
|
|
9099
|
+
* const expenseTypesId = await choicesets.create("expense_types");
|
|
9100
|
+
*
|
|
9101
|
+
* // With display name and description
|
|
9102
|
+
* const priorityLevelsId = await choicesets.create("priority_levels", {
|
|
9103
|
+
* displayName: "Priority Levels",
|
|
9104
|
+
* description: "Ticket priority categories",
|
|
9105
|
+
* });
|
|
9106
|
+
* ```
|
|
9107
|
+
* @internal
|
|
9108
|
+
*/
|
|
9109
|
+
async create(name, options) {
|
|
9110
|
+
const opts = options ?? {};
|
|
9111
|
+
const payload = {
|
|
9112
|
+
...(opts.description !== undefined && { description: opts.description }),
|
|
9113
|
+
...(opts.displayName !== undefined && { displayName: opts.displayName }),
|
|
9114
|
+
entityDefinition: {
|
|
9115
|
+
name,
|
|
9116
|
+
fields: [],
|
|
9117
|
+
folderId: opts.folderKey ?? DATA_FABRIC_TENANT_FOLDER_ID,
|
|
9118
|
+
},
|
|
9119
|
+
};
|
|
9120
|
+
const response = await this.post(DATA_FABRIC_ENDPOINTS.CHOICESETS.CREATE, payload);
|
|
9121
|
+
return response.data;
|
|
9122
|
+
}
|
|
9123
|
+
/**
|
|
9124
|
+
* Updates an existing choice set's metadata (display name and/or description).
|
|
9125
|
+
*
|
|
9126
|
+
* **At least one of `displayName` or `description` must be provided** —
|
|
9127
|
+
* the call throws `ValidationError` if both are omitted.
|
|
9128
|
+
*
|
|
9129
|
+
* @param choiceSetId - UUID of the choice set to update
|
|
9130
|
+
* @param options - Metadata fields to change ({@link ChoiceSetUpdateOptions})
|
|
9131
|
+
* @returns Promise resolving when the update is complete
|
|
9132
|
+
*
|
|
9133
|
+
* @example
|
|
9134
|
+
* ```typescript
|
|
9135
|
+
* // First, get the choice set ID using getAll()
|
|
9136
|
+
* const allChoiceSets = await choicesets.getAll();
|
|
9137
|
+
* const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
|
|
9138
|
+
*
|
|
9139
|
+
* await choicesets.updateById(expenseTypes.id, {
|
|
9140
|
+
* displayName: "Expense Categories",
|
|
9141
|
+
* description: "Updated description",
|
|
9142
|
+
* });
|
|
9143
|
+
* ```
|
|
9144
|
+
* @internal
|
|
9145
|
+
*/
|
|
9146
|
+
async updateById(choiceSetId, options) {
|
|
9147
|
+
if (options.displayName === undefined && options.description === undefined) {
|
|
9148
|
+
throw new ValidationError({
|
|
9149
|
+
message: 'updateById requires at least one of displayName or description.',
|
|
9150
|
+
});
|
|
9151
|
+
}
|
|
9152
|
+
await this.patch(DATA_FABRIC_ENDPOINTS.CHOICESETS.UPDATE(choiceSetId), {
|
|
9153
|
+
...(options.displayName !== undefined && { displayName: options.displayName }),
|
|
9154
|
+
...(options.description !== undefined && { description: options.description }),
|
|
9155
|
+
});
|
|
9156
|
+
}
|
|
9157
|
+
/**
|
|
9158
|
+
* Deletes a Data Fabric choice set and all its values.
|
|
9159
|
+
*
|
|
9160
|
+
* @param choiceSetId - UUID of the choice set to delete
|
|
9161
|
+
* @returns Promise resolving when the choice set is deleted
|
|
9162
|
+
*
|
|
9163
|
+
* @example
|
|
9164
|
+
* ```typescript
|
|
9165
|
+
* // First, get the choice set ID using getAll()
|
|
9166
|
+
* const allChoiceSets = await choicesets.getAll();
|
|
9167
|
+
* const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
|
|
9168
|
+
*
|
|
9169
|
+
* await choicesets.deleteById(expenseTypes.id);
|
|
9170
|
+
* ```
|
|
9171
|
+
* @internal
|
|
9172
|
+
*/
|
|
9173
|
+
async deleteById(choiceSetId) {
|
|
9174
|
+
await this.post(DATA_FABRIC_ENDPOINTS.CHOICESETS.DELETE(choiceSetId), {});
|
|
9175
|
+
}
|
|
9176
|
+
/**
|
|
9177
|
+
* Inserts a single value into a choice set.
|
|
9178
|
+
*
|
|
9179
|
+
* @param choiceSetId - UUID of the parent choice set
|
|
9180
|
+
* @param name - Identifier name of the new value (e.g., `"TRAVEL"`)
|
|
9181
|
+
* @param options - Optional fields ({@link ChoiceSetValueInsertOptions})
|
|
9182
|
+
* @returns Promise resolving to the inserted value ({@link ChoiceSetValueInsertResponse})
|
|
9183
|
+
*
|
|
9184
|
+
* @example
|
|
9185
|
+
* ```typescript
|
|
9186
|
+
* // First, get the choice set ID using getAll()
|
|
9187
|
+
* const allChoiceSets = await choicesets.getAll();
|
|
9188
|
+
* const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
|
|
9189
|
+
*
|
|
9190
|
+
* const inserted = await choicesets.insertValueById(expenseTypes.id, 'TRAVEL', {
|
|
9191
|
+
* displayName: 'Travel',
|
|
9192
|
+
* });
|
|
9193
|
+
* console.log(inserted.id);
|
|
9194
|
+
* ```
|
|
9195
|
+
* @internal
|
|
9196
|
+
*/
|
|
9197
|
+
async insertValueById(choiceSetId, name, options) {
|
|
9198
|
+
const choiceSetName = await this.resolveChoiceSetName(choiceSetId);
|
|
9199
|
+
const payload = {
|
|
9200
|
+
Name: name,
|
|
9201
|
+
...(options?.displayName !== undefined && { DisplayName: options.displayName }),
|
|
9202
|
+
};
|
|
9203
|
+
const response = await this.post(DATA_FABRIC_ENDPOINTS.CHOICESETS.INSERT_BY_NAME(choiceSetName), payload);
|
|
9204
|
+
const camelCased = pascalToCamelCaseKeys(response.data);
|
|
9205
|
+
return transformData(camelCased, EntityMap);
|
|
9206
|
+
}
|
|
9207
|
+
/**
|
|
9208
|
+
* Updates an existing choice-set value's display name.
|
|
9209
|
+
*
|
|
9210
|
+
* Only `displayName` is mutable; the value's `name` (identifier) is fixed at
|
|
9211
|
+
* insert time and cannot be changed.
|
|
9212
|
+
*
|
|
9213
|
+
* @param choiceSetId - UUID of the parent choice set
|
|
9214
|
+
* @param valueId - UUID of the value to update
|
|
9215
|
+
* @param displayName - New human-readable display name for the value
|
|
9216
|
+
* @returns Promise resolving to the updated value ({@link ChoiceSetValueUpdateResponse})
|
|
9217
|
+
*
|
|
9218
|
+
* @example
|
|
9219
|
+
* ```typescript
|
|
9220
|
+
* // Get the choice set ID from getAll() and the value ID from getById()
|
|
9221
|
+
* const allChoiceSets = await choicesets.getAll();
|
|
9222
|
+
* const expenseTypes = allChoiceSets.find(cs => cs.name === 'expense_types');
|
|
9223
|
+
* const values = await choicesets.getById(expenseTypes.id);
|
|
9224
|
+
* const travel = values.items.find(v => v.name === 'TRAVEL');
|
|
9225
|
+
*
|
|
9226
|
+
* await choicesets.updateValueById(expenseTypes.id, travel.id, 'Business Travel');
|
|
9227
|
+
* ```
|
|
9228
|
+
* @internal
|
|
9229
|
+
*/
|
|
9230
|
+
async updateValueById(choiceSetId, valueId, displayName) {
|
|
9231
|
+
const choiceSetName = await this.resolveChoiceSetName(choiceSetId);
|
|
9232
|
+
const payload = { DisplayName: displayName };
|
|
9233
|
+
const response = await this.post(DATA_FABRIC_ENDPOINTS.CHOICESETS.UPDATE_BY_NAME(choiceSetName, valueId), payload);
|
|
9234
|
+
const camelCased = pascalToCamelCaseKeys(response.data);
|
|
9235
|
+
return transformData(camelCased, EntityMap);
|
|
9236
|
+
}
|
|
9237
|
+
/**
|
|
9238
|
+
* Deletes one or more values from a choice set.
|
|
9239
|
+
*
|
|
9240
|
+
* @param choiceSetId - UUID of the parent choice set
|
|
9241
|
+
* @param valueIds - Array of value UUIDs to delete
|
|
9242
|
+
* @returns Promise resolving when the values are deleted
|
|
9243
|
+
*
|
|
9244
|
+
* @example
|
|
9245
|
+
* ```typescript
|
|
9246
|
+
* // Get the value IDs from getById()
|
|
9247
|
+
* const values = await choicesets.getById('<choiceSetId>');
|
|
9248
|
+
* const idsToDelete = values.items.slice(0, 2).map(v => v.id);
|
|
9249
|
+
*
|
|
9250
|
+
* await choicesets.deleteValuesById('<choiceSetId>', idsToDelete);
|
|
9251
|
+
* ```
|
|
9252
|
+
* @internal
|
|
9253
|
+
*/
|
|
9254
|
+
async deleteValuesById(choiceSetId, valueIds) {
|
|
9255
|
+
await this.post(DATA_FABRIC_ENDPOINTS.CHOICESETS.DELETE_BY_ID(choiceSetId), valueIds);
|
|
9256
|
+
}
|
|
9257
|
+
async resolveChoiceSetName(choiceSetId) {
|
|
9258
|
+
const all = await this.getAll();
|
|
9259
|
+
const match = all.find(cs => cs.id === choiceSetId);
|
|
9260
|
+
if (!match) {
|
|
9261
|
+
throw new NotFoundError({ message: `Choice set with id '${choiceSetId}' not found.` });
|
|
9262
|
+
}
|
|
9263
|
+
return match.name;
|
|
9264
|
+
}
|
|
9287
9265
|
}
|
|
9288
9266
|
__decorate([
|
|
9289
9267
|
track('Choicesets.GetAll')
|
|
@@ -9291,6 +9269,24 @@ __decorate([
|
|
|
9291
9269
|
__decorate([
|
|
9292
9270
|
track('Choicesets.GetById')
|
|
9293
9271
|
], ChoiceSetService.prototype, "getById", null);
|
|
9272
|
+
__decorate([
|
|
9273
|
+
track('Choicesets.Create')
|
|
9274
|
+
], ChoiceSetService.prototype, "create", null);
|
|
9275
|
+
__decorate([
|
|
9276
|
+
track('Choicesets.UpdateById')
|
|
9277
|
+
], ChoiceSetService.prototype, "updateById", null);
|
|
9278
|
+
__decorate([
|
|
9279
|
+
track('Choicesets.DeleteById')
|
|
9280
|
+
], ChoiceSetService.prototype, "deleteById", null);
|
|
9281
|
+
__decorate([
|
|
9282
|
+
track('Choicesets.InsertValueById')
|
|
9283
|
+
], ChoiceSetService.prototype, "insertValueById", null);
|
|
9284
|
+
__decorate([
|
|
9285
|
+
track('Choicesets.UpdateValueById')
|
|
9286
|
+
], ChoiceSetService.prototype, "updateValueById", null);
|
|
9287
|
+
__decorate([
|
|
9288
|
+
track('Choicesets.DeleteValuesById')
|
|
9289
|
+
], ChoiceSetService.prototype, "deleteValuesById", null);
|
|
9294
9290
|
|
|
9295
9291
|
/**
|
|
9296
9292
|
* Maestro Process Models
|
|
@@ -9326,6 +9322,53 @@ function createProcessWithMethods(processData, service) {
|
|
|
9326
9322
|
return Object.assign({}, processData, methods);
|
|
9327
9323
|
}
|
|
9328
9324
|
|
|
9325
|
+
/**
|
|
9326
|
+
* Builds the request body for Insights RTM "top" endpoints.
|
|
9327
|
+
*
|
|
9328
|
+
* @param startTime - Start of the time range to query
|
|
9329
|
+
* @param endTime - End of the time range to query
|
|
9330
|
+
* @param isCaseManagement - Whether to filter for case management processes
|
|
9331
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
9332
|
+
* @returns Request body for the Insights RTM endpoint
|
|
9333
|
+
* @internal
|
|
9334
|
+
*/
|
|
9335
|
+
function buildInsightsTopBody(startTime, endTime, isCaseManagement, options) {
|
|
9336
|
+
return {
|
|
9337
|
+
commonParams: {
|
|
9338
|
+
startTime: startTime.getTime(),
|
|
9339
|
+
endTime: endTime.getTime(),
|
|
9340
|
+
isCaseManagement,
|
|
9341
|
+
...(options?.packageId ? { packageId: options.packageId } : {}),
|
|
9342
|
+
...(options?.processKey ? { processKey: options.processKey } : {}),
|
|
9343
|
+
...(options?.version ? { version: options.version } : {}),
|
|
9344
|
+
}
|
|
9345
|
+
};
|
|
9346
|
+
}
|
|
9347
|
+
/**
|
|
9348
|
+
* Fetches instance status timeline from the Insights API.
|
|
9349
|
+
* Shared implementation used by both MaestroProcessesService and CasesService.
|
|
9350
|
+
*
|
|
9351
|
+
* @param postFn - Bound post method from a BaseService subclass
|
|
9352
|
+
* @param startTime - Start of the time range to query
|
|
9353
|
+
* @param endTime - End of the time range to query
|
|
9354
|
+
* @param isCaseManagement - Whether to filter for case management processes
|
|
9355
|
+
* @param options - Optional settings for time bucketing granularity
|
|
9356
|
+
* @returns Promise resolving to an array of instance status timeline entries
|
|
9357
|
+
* @internal
|
|
9358
|
+
*/
|
|
9359
|
+
async function fetchInstanceStatusTimeline(postFn, startTime, endTime, isCaseManagement, options) {
|
|
9360
|
+
const response = await postFn(MAESTRO_ENDPOINTS.INSIGHTS.INSTANCE_STATUS_BY_DATE, {
|
|
9361
|
+
commonParams: {
|
|
9362
|
+
startTime: startTime.getTime(),
|
|
9363
|
+
endTime: endTime.getTime(),
|
|
9364
|
+
isCaseManagement,
|
|
9365
|
+
},
|
|
9366
|
+
timeSliceUnit: options?.groupBy,
|
|
9367
|
+
timezoneOffset: new Date().getTimezoneOffset() * -1,
|
|
9368
|
+
});
|
|
9369
|
+
return response.data ?? [];
|
|
9370
|
+
}
|
|
9371
|
+
|
|
9329
9372
|
/**
|
|
9330
9373
|
* Maps fields for Incident entities
|
|
9331
9374
|
*/
|
|
@@ -9702,6 +9745,11 @@ function createCaseInstanceMethods(instanceData, service) {
|
|
|
9702
9745
|
if (!instanceData.instanceId)
|
|
9703
9746
|
throw new Error('Case instance ID is undefined');
|
|
9704
9747
|
return service.getSlaSummary({ ...options, caseInstanceId: instanceData.instanceId });
|
|
9748
|
+
},
|
|
9749
|
+
async getStagesSlaSummary() {
|
|
9750
|
+
if (!instanceData.instanceId)
|
|
9751
|
+
throw new Error('Case instance ID is undefined');
|
|
9752
|
+
return service.getStagesSlaSummary({ caseInstanceId: instanceData.instanceId });
|
|
9705
9753
|
}
|
|
9706
9754
|
};
|
|
9707
9755
|
}
|
|
@@ -9717,6 +9765,40 @@ function createCaseInstanceWithMethods(instanceData, service) {
|
|
|
9717
9765
|
return Object.assign({}, instanceData, methods);
|
|
9718
9766
|
}
|
|
9719
9767
|
|
|
9768
|
+
/**
|
|
9769
|
+
* Insights Types
|
|
9770
|
+
* Shared types for Maestro insights analytics endpoints
|
|
9771
|
+
*/
|
|
9772
|
+
/**
|
|
9773
|
+
* Time bucketing granularity for insights time-series queries.
|
|
9774
|
+
*
|
|
9775
|
+
* Controls how data points are grouped on the time axis.
|
|
9776
|
+
*/
|
|
9777
|
+
var TimeInterval;
|
|
9778
|
+
(function (TimeInterval) {
|
|
9779
|
+
/** Group data points by hour */
|
|
9780
|
+
TimeInterval["Hour"] = "HOUR";
|
|
9781
|
+
/** Group data points by day */
|
|
9782
|
+
TimeInterval["Day"] = "DAY";
|
|
9783
|
+
/** Group data points by week */
|
|
9784
|
+
TimeInterval["Week"] = "WEEK";
|
|
9785
|
+
})(TimeInterval || (TimeInterval = {}));
|
|
9786
|
+
/**
|
|
9787
|
+
* Final instance statuses returned by the instance status timeline endpoint.
|
|
9788
|
+
*
|
|
9789
|
+
* Only includes statuses where the instance has finished execution — Completed, Faulted, or Cancelled.
|
|
9790
|
+
* Active statuses like Running or Paused are not included.
|
|
9791
|
+
*/
|
|
9792
|
+
var InstanceFinalStatus;
|
|
9793
|
+
(function (InstanceFinalStatus) {
|
|
9794
|
+
/** Instance completed successfully */
|
|
9795
|
+
InstanceFinalStatus["Completed"] = "Completed";
|
|
9796
|
+
/** Instance encountered an error */
|
|
9797
|
+
InstanceFinalStatus["Faulted"] = "Faulted";
|
|
9798
|
+
/** Instance was cancelled */
|
|
9799
|
+
InstanceFinalStatus["Cancelled"] = "Cancelled";
|
|
9800
|
+
})(InstanceFinalStatus || (InstanceFinalStatus = {}));
|
|
9801
|
+
|
|
9720
9802
|
/**
|
|
9721
9803
|
* Maps fields for Process Instance entities to ensure consistent naming
|
|
9722
9804
|
*/
|
|
@@ -10092,34 +10174,217 @@ class MaestroProcessesService extends BaseService {
|
|
|
10092
10174
|
// Fetch BPMN XML and add element name/type to each incident
|
|
10093
10175
|
return BpmnHelpers.enrichIncidentsWithBpmnData(rawResponse.data || [], folderKey, this.processInstancesService);
|
|
10094
10176
|
}
|
|
10095
|
-
}
|
|
10096
|
-
__decorate([
|
|
10097
|
-
track('MaestroProcesses.GetAll')
|
|
10098
|
-
], MaestroProcessesService.prototype, "getAll", null);
|
|
10099
|
-
__decorate([
|
|
10100
|
-
track('MaestroProcesses.GetIncidents')
|
|
10101
|
-
], MaestroProcessesService.prototype, "getIncidents", null);
|
|
10102
|
-
|
|
10103
|
-
/**
|
|
10104
|
-
* Service class for Maestro Process Incidents
|
|
10105
|
-
*/
|
|
10106
|
-
class ProcessIncidentsService extends BaseService {
|
|
10107
10177
|
/**
|
|
10108
|
-
* Get
|
|
10178
|
+
* Get the top 5 processes ranked by run count within a time range.
|
|
10109
10179
|
*
|
|
10110
|
-
*
|
|
10111
|
-
*
|
|
10180
|
+
* Returns an array of up to 5 processes sorted by how many times they were executed,
|
|
10181
|
+
* useful for identifying the most active processes in a given period.
|
|
10182
|
+
*
|
|
10183
|
+
* @param startTime - Start of the time range to query
|
|
10184
|
+
* @param endTime - End of the time range to query
|
|
10185
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
10186
|
+
* @returns Promise resolving to an array of {@link ProcessGetTopRunCountResponse}
|
|
10112
10187
|
* @example
|
|
10113
10188
|
* ```typescript
|
|
10114
|
-
* import {
|
|
10189
|
+
* import { MaestroProcesses } from '@uipath/uipath-typescript/maestro-processes';
|
|
10115
10190
|
*
|
|
10116
|
-
* const
|
|
10117
|
-
* const incidents = await processIncidents.getAll();
|
|
10191
|
+
* const maestroProcesses = new MaestroProcesses(sdk);
|
|
10118
10192
|
*
|
|
10119
|
-
* //
|
|
10120
|
-
*
|
|
10121
|
-
*
|
|
10122
|
-
*
|
|
10193
|
+
* // Get top processes by run count for the last 7 days
|
|
10194
|
+
* const topProcesses = await maestroProcesses.getTopRunCount(
|
|
10195
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10196
|
+
* new Date()
|
|
10197
|
+
* );
|
|
10198
|
+
*
|
|
10199
|
+
* for (const process of topProcesses) {
|
|
10200
|
+
* console.log(`${process.packageId}: ${process.runCount} runs`);
|
|
10201
|
+
* }
|
|
10202
|
+
* ```
|
|
10203
|
+
*
|
|
10204
|
+
* @example
|
|
10205
|
+
* ```typescript
|
|
10206
|
+
* // Get top processes by run count for a specific package
|
|
10207
|
+
* const filtered = await maestroProcesses.getTopRunCount(
|
|
10208
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10209
|
+
* new Date(),
|
|
10210
|
+
* { packageId: '<packageId>' }
|
|
10211
|
+
* );
|
|
10212
|
+
* ```
|
|
10213
|
+
*/
|
|
10214
|
+
async getTopRunCount(startTime, endTime, options) {
|
|
10215
|
+
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, false, options));
|
|
10216
|
+
return (data ?? []).map(process => ({ ...process, name: process.packageId }));
|
|
10217
|
+
}
|
|
10218
|
+
/**
|
|
10219
|
+
* Get all instances status counts aggregated by date for maestro processes.
|
|
10220
|
+
*
|
|
10221
|
+
* Returns time-grouped counts of instances grouped by status (Completed, Faulted, Cancelled),
|
|
10222
|
+
* useful for rendering time-series charts. Use `groupBy` to control the time bucket size
|
|
10223
|
+
* (hour, day, or week) — defaults to day if not provided.
|
|
10224
|
+
*
|
|
10225
|
+
* @param startTime - Start of the time range to query
|
|
10226
|
+
* @param endTime - End of the time range to query
|
|
10227
|
+
* @param options - Optional settings for time bucketing granularity
|
|
10228
|
+
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
10229
|
+
*
|
|
10230
|
+
* @example
|
|
10231
|
+
* ```typescript
|
|
10232
|
+
* // Get daily instance status for the last 7 days
|
|
10233
|
+
* const now = new Date();
|
|
10234
|
+
* const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
|
|
10235
|
+
* const statuses = await maestroProcesses.getInstanceStatusTimeline(sevenDaysAgo, now);
|
|
10236
|
+
*
|
|
10237
|
+
* for (const entry of statuses) {
|
|
10238
|
+
* console.log(`${entry.startTime} — ${entry.status}: ${entry.count}`);
|
|
10239
|
+
* }
|
|
10240
|
+
* ```
|
|
10241
|
+
*
|
|
10242
|
+
* @example
|
|
10243
|
+
* ```typescript
|
|
10244
|
+
* import { TimeInterval } from '@uipath/uipath-typescript/maestro-processes';
|
|
10245
|
+
*
|
|
10246
|
+
* // Get hourly breakdown
|
|
10247
|
+
* const statuses = await maestroProcesses.getInstanceStatusTimeline(startTime, endTime, {
|
|
10248
|
+
* groupBy: TimeInterval.Hour,
|
|
10249
|
+
* });
|
|
10250
|
+
* ```
|
|
10251
|
+
*
|
|
10252
|
+
* @example
|
|
10253
|
+
* ```typescript
|
|
10254
|
+
* // Get all-time data (from Unix epoch to now)
|
|
10255
|
+
* const allTime = await maestroProcesses.getInstanceStatusTimeline(new Date(0), new Date());
|
|
10256
|
+
* ```
|
|
10257
|
+
*/
|
|
10258
|
+
async getInstanceStatusTimeline(startTime, endTime, options) {
|
|
10259
|
+
return fetchInstanceStatusTimeline(this.post.bind(this), startTime, endTime, false, options);
|
|
10260
|
+
}
|
|
10261
|
+
/**
|
|
10262
|
+
* Get the top 10 processes ranked by failure count within a time range.
|
|
10263
|
+
*
|
|
10264
|
+
* Returns an array of up to 10 processes sorted by how many instances faulted,
|
|
10265
|
+
* useful for identifying the most error-prone processes in a given period.
|
|
10266
|
+
*
|
|
10267
|
+
* @param startTime - Start of the time range to query
|
|
10268
|
+
* @param endTime - End of the time range to query
|
|
10269
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
10270
|
+
* @returns Promise resolving to an array of {@link ProcessGetTopFaultedCountResponse}
|
|
10271
|
+
* @example
|
|
10272
|
+
* ```typescript
|
|
10273
|
+
* import { MaestroProcesses } from '@uipath/uipath-typescript/maestro-processes';
|
|
10274
|
+
*
|
|
10275
|
+
* const maestroProcesses = new MaestroProcesses(sdk);
|
|
10276
|
+
*
|
|
10277
|
+
* // Get top processes by faulted count for the last 7 days
|
|
10278
|
+
* const topFailing = await maestroProcesses.getTopFaultedCount(
|
|
10279
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10280
|
+
* new Date()
|
|
10281
|
+
* );
|
|
10282
|
+
*
|
|
10283
|
+
* for (const process of topFailing) {
|
|
10284
|
+
* console.log(`${process.packageId}: ${process.faultedCount} failures`);
|
|
10285
|
+
* }
|
|
10286
|
+
* ```
|
|
10287
|
+
*
|
|
10288
|
+
* @example
|
|
10289
|
+
* ```typescript
|
|
10290
|
+
* // Get top processes by faulted count for a specific package
|
|
10291
|
+
* const filtered = await maestroProcesses.getTopFaultedCount(
|
|
10292
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10293
|
+
* new Date(),
|
|
10294
|
+
* { packageId: '<packageId>' }
|
|
10295
|
+
* );
|
|
10296
|
+
* ```
|
|
10297
|
+
*/
|
|
10298
|
+
async getTopFaultedCount(startTime, endTime, options) {
|
|
10299
|
+
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, false, options));
|
|
10300
|
+
return (data ?? []).map(item => ({
|
|
10301
|
+
packageId: item.packageId,
|
|
10302
|
+
processKey: item.processKey,
|
|
10303
|
+
faultedCount: item.runCount,
|
|
10304
|
+
name: item.packageId,
|
|
10305
|
+
}));
|
|
10306
|
+
}
|
|
10307
|
+
/**
|
|
10308
|
+
* Get the top 5 processes ranked by total duration within a time range.
|
|
10309
|
+
*
|
|
10310
|
+
* Returns an array of up to 5 processes sorted by their total execution time,
|
|
10311
|
+
* useful for identifying the longest-running processes in a given period.
|
|
10312
|
+
*
|
|
10313
|
+
* @param startTime - Start of the time range to query
|
|
10314
|
+
* @param endTime - End of the time range to query
|
|
10315
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
10316
|
+
* @returns Promise resolving to an array of {@link ProcessGetTopDurationResponse}
|
|
10317
|
+
* @example
|
|
10318
|
+
* ```typescript
|
|
10319
|
+
* import { MaestroProcesses } from '@uipath/uipath-typescript/maestro-processes';
|
|
10320
|
+
*
|
|
10321
|
+
* const maestroProcesses = new MaestroProcesses(sdk);
|
|
10322
|
+
*
|
|
10323
|
+
* // Get top processes by duration for the last 7 days
|
|
10324
|
+
* const topProcesses = await maestroProcesses.getTopExecutionDuration(
|
|
10325
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10326
|
+
* new Date()
|
|
10327
|
+
* );
|
|
10328
|
+
*
|
|
10329
|
+
* for (const process of topProcesses) {
|
|
10330
|
+
* console.log(`${process.packageId}: ${process.duration}ms total`);
|
|
10331
|
+
* }
|
|
10332
|
+
* ```
|
|
10333
|
+
*
|
|
10334
|
+
* @example
|
|
10335
|
+
* ```typescript
|
|
10336
|
+
* // Get top processes by duration for a specific package
|
|
10337
|
+
* const filtered = await maestroProcesses.getTopExecutionDuration(
|
|
10338
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10339
|
+
* new Date(),
|
|
10340
|
+
* { packageId: '<packageId>' }
|
|
10341
|
+
* );
|
|
10342
|
+
* ```
|
|
10343
|
+
*/
|
|
10344
|
+
async getTopExecutionDuration(startTime, endTime, options) {
|
|
10345
|
+
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, false, options));
|
|
10346
|
+
return (data ?? []).map(process => ({ ...process, name: process.packageId }));
|
|
10347
|
+
}
|
|
10348
|
+
}
|
|
10349
|
+
__decorate([
|
|
10350
|
+
track('MaestroProcesses.GetAll')
|
|
10351
|
+
], MaestroProcessesService.prototype, "getAll", null);
|
|
10352
|
+
__decorate([
|
|
10353
|
+
track('MaestroProcesses.GetIncidents')
|
|
10354
|
+
], MaestroProcessesService.prototype, "getIncidents", null);
|
|
10355
|
+
__decorate([
|
|
10356
|
+
track('MaestroProcesses.GetTopRunCount')
|
|
10357
|
+
], MaestroProcessesService.prototype, "getTopRunCount", null);
|
|
10358
|
+
__decorate([
|
|
10359
|
+
track('MaestroProcesses.GetInstanceStatusTimeline')
|
|
10360
|
+
], MaestroProcessesService.prototype, "getInstanceStatusTimeline", null);
|
|
10361
|
+
__decorate([
|
|
10362
|
+
track('MaestroProcesses.GetTopFaultedCount')
|
|
10363
|
+
], MaestroProcessesService.prototype, "getTopFaultedCount", null);
|
|
10364
|
+
__decorate([
|
|
10365
|
+
track('MaestroProcesses.GetTopExecutionDuration')
|
|
10366
|
+
], MaestroProcessesService.prototype, "getTopExecutionDuration", null);
|
|
10367
|
+
|
|
10368
|
+
/**
|
|
10369
|
+
* Service class for Maestro Process Incidents
|
|
10370
|
+
*/
|
|
10371
|
+
class ProcessIncidentsService extends BaseService {
|
|
10372
|
+
/**
|
|
10373
|
+
* Get all process incidents across all folders
|
|
10374
|
+
*
|
|
10375
|
+
* @returns Promise resolving to array of process incident
|
|
10376
|
+
* {@link ProcessIncidentGetAllResponse}
|
|
10377
|
+
* @example
|
|
10378
|
+
* ```typescript
|
|
10379
|
+
* import { ProcessIncidents } from '@uipath/uipath-typescript/maestro-processes';
|
|
10380
|
+
*
|
|
10381
|
+
* const processIncidents = new ProcessIncidents(sdk);
|
|
10382
|
+
* const incidents = await processIncidents.getAll();
|
|
10383
|
+
*
|
|
10384
|
+
* // Access process incident information
|
|
10385
|
+
* for (const incident of incidents) {
|
|
10386
|
+
* console.log(`Process: ${incident.processKey}`);
|
|
10387
|
+
* console.log(`Error: ${incident.errorMessage}`);
|
|
10123
10388
|
* console.log(`Count: ${incident.count}`);
|
|
10124
10389
|
* console.log(`First occurrence: ${incident.firstOccuranceTime}`);
|
|
10125
10390
|
* }
|
|
@@ -10183,6 +10448,177 @@ class CasesService extends BaseService {
|
|
|
10183
10448
|
name: this.extractCaseName(caseItem.packageId)
|
|
10184
10449
|
}));
|
|
10185
10450
|
}
|
|
10451
|
+
/**
|
|
10452
|
+
* Get the top 5 case processes ranked by run count within a time range.
|
|
10453
|
+
*
|
|
10454
|
+
* Returns an array of up to 5 case processes sorted by how many times they were executed,
|
|
10455
|
+
* useful for identifying the most active case processes in a given period.
|
|
10456
|
+
*
|
|
10457
|
+
* @param startTime - Start of the time range to query
|
|
10458
|
+
* @param endTime - End of the time range to query
|
|
10459
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
10460
|
+
* @returns Promise resolving to an array of {@link CaseGetTopRunCountResponse}
|
|
10461
|
+
* @example
|
|
10462
|
+
* ```typescript
|
|
10463
|
+
* import { Cases } from '@uipath/uipath-typescript/cases';
|
|
10464
|
+
*
|
|
10465
|
+
* const cases = new Cases(sdk);
|
|
10466
|
+
*
|
|
10467
|
+
* // Get top case processes by run count for the last 7 days
|
|
10468
|
+
* const topProcesses = await cases.getTopRunCount(
|
|
10469
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10470
|
+
* new Date()
|
|
10471
|
+
* );
|
|
10472
|
+
*
|
|
10473
|
+
* for (const process of topProcesses) {
|
|
10474
|
+
* console.log(`${process.packageId}: ${process.runCount} runs`);
|
|
10475
|
+
* }
|
|
10476
|
+
* ```
|
|
10477
|
+
*
|
|
10478
|
+
* @example
|
|
10479
|
+
* ```typescript
|
|
10480
|
+
* // Get top case processes by run count for a specific package
|
|
10481
|
+
* const filtered = await cases.getTopRunCount(
|
|
10482
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10483
|
+
* new Date(),
|
|
10484
|
+
* { packageId: '<packageId>' }
|
|
10485
|
+
* );
|
|
10486
|
+
* ```
|
|
10487
|
+
*/
|
|
10488
|
+
async getTopRunCount(startTime, endTime, options) {
|
|
10489
|
+
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, true, options));
|
|
10490
|
+
return (data ?? []).map(process => ({ ...process, name: this.extractCaseName(process.packageId) }));
|
|
10491
|
+
}
|
|
10492
|
+
/**
|
|
10493
|
+
* Get all instances status counts aggregated by date for case management processes.
|
|
10494
|
+
*
|
|
10495
|
+
* Returns time-grouped counts of case instances grouped by status (Completed, Faulted, Cancelled),
|
|
10496
|
+
* useful for rendering time-series charts. Use `groupBy` to control the time bucket size
|
|
10497
|
+
* (hour, day, or week) — defaults to day if not provided.
|
|
10498
|
+
*
|
|
10499
|
+
* @param startTime - Start of the time range to query
|
|
10500
|
+
* @param endTime - End of the time range to query
|
|
10501
|
+
* @param options - Optional settings for time bucketing granularity
|
|
10502
|
+
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
10503
|
+
*
|
|
10504
|
+
* @example
|
|
10505
|
+
* ```typescript
|
|
10506
|
+
* // Get daily instance status for the last 7 days
|
|
10507
|
+
* const now = new Date();
|
|
10508
|
+
* const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
|
|
10509
|
+
* const statuses = await cases.getInstanceStatusTimeline(sevenDaysAgo, now);
|
|
10510
|
+
*
|
|
10511
|
+
* for (const entry of statuses) {
|
|
10512
|
+
* console.log(`${entry.startTime} — ${entry.status}: ${entry.count}`);
|
|
10513
|
+
* }
|
|
10514
|
+
* ```
|
|
10515
|
+
*
|
|
10516
|
+
* @example
|
|
10517
|
+
* ```typescript
|
|
10518
|
+
* import { TimeInterval } from '@uipath/uipath-typescript/cases';
|
|
10519
|
+
*
|
|
10520
|
+
* // Get weekly breakdown
|
|
10521
|
+
* const statuses = await cases.getInstanceStatusTimeline(startTime, endTime, {
|
|
10522
|
+
* groupBy: TimeInterval.Week,
|
|
10523
|
+
* });
|
|
10524
|
+
* ```
|
|
10525
|
+
*
|
|
10526
|
+
* @example
|
|
10527
|
+
* ```typescript
|
|
10528
|
+
* // Get all-time data (from Unix epoch to now)
|
|
10529
|
+
* const allTime = await cases.getInstanceStatusTimeline(new Date(0), new Date());
|
|
10530
|
+
* ```
|
|
10531
|
+
*/
|
|
10532
|
+
async getInstanceStatusTimeline(startTime, endTime, options) {
|
|
10533
|
+
return fetchInstanceStatusTimeline(this.post.bind(this), startTime, endTime, true, options);
|
|
10534
|
+
}
|
|
10535
|
+
/**
|
|
10536
|
+
* Get the top 10 case processes ranked by failure count within a time range.
|
|
10537
|
+
*
|
|
10538
|
+
* Returns an array of up to 10 case processes sorted by how many instances faulted,
|
|
10539
|
+
* useful for identifying the most error-prone case processes in a given period.
|
|
10540
|
+
*
|
|
10541
|
+
* @param startTime - Start of the time range to query
|
|
10542
|
+
* @param endTime - End of the time range to query
|
|
10543
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
10544
|
+
* @returns Promise resolving to an array of {@link CaseGetTopFaultedCountResponse}
|
|
10545
|
+
* @example
|
|
10546
|
+
* ```typescript
|
|
10547
|
+
* import { Cases } from '@uipath/uipath-typescript/cases';
|
|
10548
|
+
*
|
|
10549
|
+
* const cases = new Cases(sdk);
|
|
10550
|
+
*
|
|
10551
|
+
* // Get top case processes by faulted count for the last 7 days
|
|
10552
|
+
* const topFailing = await cases.getTopFaultedCount(
|
|
10553
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10554
|
+
* new Date()
|
|
10555
|
+
* );
|
|
10556
|
+
*
|
|
10557
|
+
* for (const process of topFailing) {
|
|
10558
|
+
* console.log(`${process.packageId}: ${process.faultedCount} failures`);
|
|
10559
|
+
* }
|
|
10560
|
+
* ```
|
|
10561
|
+
*
|
|
10562
|
+
* @example
|
|
10563
|
+
* ```typescript
|
|
10564
|
+
* // Get top case processes by faulted count for a specific package
|
|
10565
|
+
* const filtered = await cases.getTopFaultedCount(
|
|
10566
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10567
|
+
* new Date(),
|
|
10568
|
+
* { packageId: '<packageId>' }
|
|
10569
|
+
* );
|
|
10570
|
+
* ```
|
|
10571
|
+
*/
|
|
10572
|
+
async getTopFaultedCount(startTime, endTime, options) {
|
|
10573
|
+
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, true, options));
|
|
10574
|
+
return (data ?? []).map(item => ({
|
|
10575
|
+
packageId: item.packageId,
|
|
10576
|
+
processKey: item.processKey,
|
|
10577
|
+
faultedCount: item.runCount,
|
|
10578
|
+
name: this.extractCaseName(item.packageId),
|
|
10579
|
+
}));
|
|
10580
|
+
}
|
|
10581
|
+
/**
|
|
10582
|
+
* Get the top 5 case processes ranked by total duration within a time range.
|
|
10583
|
+
*
|
|
10584
|
+
* Returns an array of up to 5 case processes sorted by their total execution time,
|
|
10585
|
+
* useful for identifying the longest-running case processes in a given period.
|
|
10586
|
+
*
|
|
10587
|
+
* @param startTime - Start of the time range to query
|
|
10588
|
+
* @param endTime - End of the time range to query
|
|
10589
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
10590
|
+
* @returns Promise resolving to an array of {@link CaseGetTopDurationResponse}
|
|
10591
|
+
* @example
|
|
10592
|
+
* ```typescript
|
|
10593
|
+
* import { Cases } from '@uipath/uipath-typescript/cases';
|
|
10594
|
+
*
|
|
10595
|
+
* const cases = new Cases(sdk);
|
|
10596
|
+
*
|
|
10597
|
+
* // Get top case processes by duration for the last 7 days
|
|
10598
|
+
* const topProcesses = await cases.getTopExecutionDuration(
|
|
10599
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10600
|
+
* new Date()
|
|
10601
|
+
* );
|
|
10602
|
+
*
|
|
10603
|
+
* for (const process of topProcesses) {
|
|
10604
|
+
* console.log(`${process.packageId}: ${process.duration}ms total`);
|
|
10605
|
+
* }
|
|
10606
|
+
* ```
|
|
10607
|
+
*
|
|
10608
|
+
* @example
|
|
10609
|
+
* ```typescript
|
|
10610
|
+
* // Get top case processes by duration for a specific package
|
|
10611
|
+
* const filtered = await cases.getTopExecutionDuration(
|
|
10612
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
10613
|
+
* new Date(),
|
|
10614
|
+
* { packageId: '<packageId>' }
|
|
10615
|
+
* );
|
|
10616
|
+
* ```
|
|
10617
|
+
*/
|
|
10618
|
+
async getTopExecutionDuration(startTime, endTime, options) {
|
|
10619
|
+
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, true, options));
|
|
10620
|
+
return (data ?? []).map(process => ({ ...process, name: this.extractCaseName(process.packageId) }));
|
|
10621
|
+
}
|
|
10186
10622
|
/**
|
|
10187
10623
|
* Extract a readable case name from the packageId
|
|
10188
10624
|
* @param packageId - The full package identifier
|
|
@@ -10205,6 +10641,18 @@ class CasesService extends BaseService {
|
|
|
10205
10641
|
__decorate([
|
|
10206
10642
|
track('Cases.GetAll')
|
|
10207
10643
|
], CasesService.prototype, "getAll", null);
|
|
10644
|
+
__decorate([
|
|
10645
|
+
track('Cases.GetTopRunCount')
|
|
10646
|
+
], CasesService.prototype, "getTopRunCount", null);
|
|
10647
|
+
__decorate([
|
|
10648
|
+
track('Cases.GetInstanceStatusTimeline')
|
|
10649
|
+
], CasesService.prototype, "getInstanceStatusTimeline", null);
|
|
10650
|
+
__decorate([
|
|
10651
|
+
track('Cases.GetTopFaultedCount')
|
|
10652
|
+
], CasesService.prototype, "getTopFaultedCount", null);
|
|
10653
|
+
__decorate([
|
|
10654
|
+
track('Cases.GetTopExecutionDuration')
|
|
10655
|
+
], CasesService.prototype, "getTopExecutionDuration", null);
|
|
10208
10656
|
|
|
10209
10657
|
/**
|
|
10210
10658
|
* Maps fields for Case Instance entities to ensure consistent naming
|
|
@@ -11320,6 +11768,40 @@ class CaseInstancesService extends BaseService {
|
|
|
11320
11768
|
}
|
|
11321
11769
|
}, apiOptions);
|
|
11322
11770
|
}
|
|
11771
|
+
/**
|
|
11772
|
+
* Get stages SLA summary for case instances across folders.
|
|
11773
|
+
*
|
|
11774
|
+
* Returns stage-level SLA status and escalation information for each case instance, aggregated from Insights Real-Time Monitoring.
|
|
11775
|
+
*
|
|
11776
|
+
* @param options - Optional filtering options
|
|
11777
|
+
* @returns Promise resolving to an array of {@link CaseInstanceStageSLAResponse}
|
|
11778
|
+
* @example
|
|
11779
|
+
* ```typescript
|
|
11780
|
+
* // Get stages SLA summary for all case instances
|
|
11781
|
+
* const stagesSla = await caseInstances.getStagesSlaSummary();
|
|
11782
|
+
* for (const item of stagesSla) {
|
|
11783
|
+
* console.log(`Instance: ${item.caseInstanceId}`);
|
|
11784
|
+
* for (const stage of item.stages) {
|
|
11785
|
+
* console.log(` Stage: ${stage.name} - SLA Status: ${stage.slaStatus}, Due: ${stage.slaDueTime}`);
|
|
11786
|
+
* }
|
|
11787
|
+
* }
|
|
11788
|
+
*
|
|
11789
|
+
* // Filter by case instance ID
|
|
11790
|
+
* const filtered = await caseInstances.getStagesSlaSummary({
|
|
11791
|
+
* caseInstanceId: '<caseInstanceId>'
|
|
11792
|
+
* });
|
|
11793
|
+
*
|
|
11794
|
+
* // Using bound method on a case instance
|
|
11795
|
+
* const instance = await caseInstances.getById('<instanceId>', '<folderKey>');
|
|
11796
|
+
* const stagesSla = await instance.getStagesSlaSummary();
|
|
11797
|
+
* ```
|
|
11798
|
+
*/
|
|
11799
|
+
async getStagesSlaSummary(options) {
|
|
11800
|
+
const response = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.STAGES_SUMMARY, {
|
|
11801
|
+
caseInstanceId: options?.caseInstanceId,
|
|
11802
|
+
});
|
|
11803
|
+
return response.data ?? [];
|
|
11804
|
+
}
|
|
11323
11805
|
}
|
|
11324
11806
|
__decorate([
|
|
11325
11807
|
track('CaseInstances.GetAll')
|
|
@@ -11351,6 +11833,9 @@ __decorate([
|
|
|
11351
11833
|
__decorate([
|
|
11352
11834
|
track('CaseInstances.GetSlaSummary')
|
|
11353
11835
|
], CaseInstancesService.prototype, "getSlaSummary", null);
|
|
11836
|
+
__decorate([
|
|
11837
|
+
track('CaseInstances.GetStagesSlaSummary')
|
|
11838
|
+
], CaseInstancesService.prototype, "getStagesSlaSummary", null);
|
|
11354
11839
|
|
|
11355
11840
|
/**
|
|
11356
11841
|
* Validates the `name` argument passed to a `getByName(name, ...)` method.
|
|
@@ -11758,6 +12243,32 @@ class BucketService extends FolderScopedService {
|
|
|
11758
12243
|
// Transform response from PascalCase to camelCase
|
|
11759
12244
|
return pascalToCamelCaseKeys(response.data);
|
|
11760
12245
|
}
|
|
12246
|
+
/**
|
|
12247
|
+
* Retrieves a single orchestrator storage bucket by name.
|
|
12248
|
+
*
|
|
12249
|
+
* @param name - Bucket name to search for
|
|
12250
|
+
* @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional query parameters (`expand`, `select`)
|
|
12251
|
+
* @returns Promise resolving to a single bucket
|
|
12252
|
+
* {@link BucketGetResponse}
|
|
12253
|
+
* @example
|
|
12254
|
+
* ```typescript
|
|
12255
|
+
* import { Buckets } from '@uipath/uipath-typescript/buckets';
|
|
12256
|
+
*
|
|
12257
|
+
* const buckets = new Buckets(sdk);
|
|
12258
|
+
*
|
|
12259
|
+
* // By folder ID
|
|
12260
|
+
* await buckets.getByName('MyBucket', { folderId: <folderId> });
|
|
12261
|
+
*
|
|
12262
|
+
* // By folder key (GUID)
|
|
12263
|
+
* await buckets.getByName('MyBucket', { folderKey: '<folderKey>' });
|
|
12264
|
+
*
|
|
12265
|
+
* // By folder path
|
|
12266
|
+
* await buckets.getByName('MyBucket', { folderPath: '<folderPath>' });
|
|
12267
|
+
* ```
|
|
12268
|
+
*/
|
|
12269
|
+
async getByName(name, options = {}) {
|
|
12270
|
+
return this.getByNameLookup('Bucket', BUCKET_ENDPOINTS.GET_BY_FOLDER, name, options, (raw) => pascalToCamelCaseKeys(raw));
|
|
12271
|
+
}
|
|
11761
12272
|
/**
|
|
11762
12273
|
* Gets all buckets across folders with optional filtering and folder scoping
|
|
11763
12274
|
*
|
|
@@ -12029,6 +12540,120 @@ class BucketService extends FolderScopedService {
|
|
|
12029
12540
|
}
|
|
12030
12541
|
return transformedData;
|
|
12031
12542
|
}
|
|
12543
|
+
/**
|
|
12544
|
+
* Lists all files in a bucket.
|
|
12545
|
+
*
|
|
12546
|
+
* Returns a flat, recursive listing of all files in the bucket. Supports regex filtering
|
|
12547
|
+
* and filter / orderby / select / expand. {@link BucketFile} entries include
|
|
12548
|
+
* `isDirectory` so callers can distinguish folders from files.
|
|
12549
|
+
*
|
|
12550
|
+
* The method returns either:
|
|
12551
|
+
* - A NonPaginatedResponse with items array (when no pagination parameters are provided)
|
|
12552
|
+
* - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
|
|
12553
|
+
*
|
|
12554
|
+
* @param bucketId - The ID of the bucket
|
|
12555
|
+
* @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`) and optional parameters for regex filtering, query options, and pagination
|
|
12556
|
+
* @returns Promise resolving to either an array of files NonPaginatedResponse<BucketFile> or a PaginatedResponse<BucketFile> when pagination options are used.
|
|
12557
|
+
*
|
|
12558
|
+
* @example
|
|
12559
|
+
* ```typescript
|
|
12560
|
+
* import { Buckets } from '@uipath/uipath-typescript/buckets';
|
|
12561
|
+
*
|
|
12562
|
+
* const buckets = new Buckets(sdk);
|
|
12563
|
+
*
|
|
12564
|
+
* // List all files in the bucket
|
|
12565
|
+
* const files = await buckets.getFiles(<bucketId>, { folderId: <folderId> });
|
|
12566
|
+
*
|
|
12567
|
+
* // Filter by regex pattern
|
|
12568
|
+
* const pdfs = await buckets.getFiles(<bucketId>, {
|
|
12569
|
+
* folderId: <folderId>,
|
|
12570
|
+
* fileNameRegex: '.*\\.pdf$'
|
|
12571
|
+
* });
|
|
12572
|
+
*
|
|
12573
|
+
* // First page with pagination
|
|
12574
|
+
* const page1 = await buckets.getFiles(<bucketId>, { folderId: <folderId>, pageSize: 10 });
|
|
12575
|
+
*
|
|
12576
|
+
* // Navigate using cursor
|
|
12577
|
+
* if (page1.hasNextPage) {
|
|
12578
|
+
* const page2 = await buckets.getFiles(<bucketId>, { folderId: <folderId>, cursor: page1.nextCursor });
|
|
12579
|
+
* }
|
|
12580
|
+
*
|
|
12581
|
+
* // Jump to specific page
|
|
12582
|
+
* const page5 = await buckets.getFiles(<bucketId>, {
|
|
12583
|
+
* folderId: <folderId>,
|
|
12584
|
+
* jumpToPage: 5,
|
|
12585
|
+
* pageSize: 10
|
|
12586
|
+
* });
|
|
12587
|
+
* ```
|
|
12588
|
+
*/
|
|
12589
|
+
async getFiles(bucketId, options) {
|
|
12590
|
+
if (!bucketId) {
|
|
12591
|
+
throw new ValidationError({ message: 'bucketId is required for getFiles' });
|
|
12592
|
+
}
|
|
12593
|
+
const { folderId, folderKey, folderPath, ...restOptions } = options ?? {};
|
|
12594
|
+
const headers = resolveFolderHeaders({
|
|
12595
|
+
folderId,
|
|
12596
|
+
folderKey,
|
|
12597
|
+
folderPath,
|
|
12598
|
+
resourceType: 'Buckets.getFiles',
|
|
12599
|
+
fallbackFolderKey: this.config.folderKey,
|
|
12600
|
+
});
|
|
12601
|
+
const transformBucketFile = (file) => transformData(pascalToCamelCaseKeys(file), BucketMap);
|
|
12602
|
+
return PaginationHelpers.getAll({
|
|
12603
|
+
serviceAccess: this.createPaginationServiceAccess(),
|
|
12604
|
+
getEndpoint: () => BUCKET_ENDPOINTS.GET_FILES(bucketId),
|
|
12605
|
+
transformFn: transformBucketFile,
|
|
12606
|
+
pagination: {
|
|
12607
|
+
paginationType: PaginationType.OFFSET,
|
|
12608
|
+
itemsField: ODATA_PAGINATION.ITEMS_FIELD,
|
|
12609
|
+
totalCountField: ODATA_PAGINATION.TOTAL_COUNT_FIELD,
|
|
12610
|
+
paginationParams: {
|
|
12611
|
+
pageSizeParam: ODATA_OFFSET_PARAMS.PAGE_SIZE_PARAM,
|
|
12612
|
+
offsetParam: ODATA_OFFSET_PARAMS.OFFSET_PARAM,
|
|
12613
|
+
countParam: ODATA_OFFSET_PARAMS.COUNT_PARAM,
|
|
12614
|
+
},
|
|
12615
|
+
},
|
|
12616
|
+
excludeFromPrefix: ['directory', 'recursive', 'fileNameRegex'],
|
|
12617
|
+
headers,
|
|
12618
|
+
}, { ...restOptions, directory: '/', recursive: true });
|
|
12619
|
+
}
|
|
12620
|
+
/**
|
|
12621
|
+
* Deletes a file from a bucket
|
|
12622
|
+
*
|
|
12623
|
+
* @param bucketId - The ID of the bucket
|
|
12624
|
+
* @param path - The full path to the file to delete
|
|
12625
|
+
* @param options - Folder scoping (`folderId` / `folderKey` / `folderPath`)
|
|
12626
|
+
* @returns Promise resolving when the file is deleted
|
|
12627
|
+
*
|
|
12628
|
+
* @example
|
|
12629
|
+
* ```typescript
|
|
12630
|
+
* import { Buckets } from '@uipath/uipath-typescript/buckets';
|
|
12631
|
+
*
|
|
12632
|
+
* const buckets = new Buckets(sdk);
|
|
12633
|
+
*
|
|
12634
|
+
* // Delete a file from a bucket
|
|
12635
|
+
* await buckets.deleteFile(<bucketId>, '/folder/file.pdf', { folderId: <folderId> });
|
|
12636
|
+
* ```
|
|
12637
|
+
*/
|
|
12638
|
+
async deleteFile(bucketId, path, options) {
|
|
12639
|
+
if (!bucketId) {
|
|
12640
|
+
throw new ValidationError({ message: 'bucketId is required for deleteFile' });
|
|
12641
|
+
}
|
|
12642
|
+
if (!path) {
|
|
12643
|
+
throw new ValidationError({ message: 'path is required for deleteFile' });
|
|
12644
|
+
}
|
|
12645
|
+
const headers = resolveFolderHeaders({
|
|
12646
|
+
folderId: options?.folderId,
|
|
12647
|
+
folderKey: options?.folderKey,
|
|
12648
|
+
folderPath: options?.folderPath,
|
|
12649
|
+
resourceType: 'Buckets.deleteFile',
|
|
12650
|
+
fallbackFolderKey: this.config.folderKey,
|
|
12651
|
+
});
|
|
12652
|
+
await this.delete(BUCKET_ENDPOINTS.DELETE_FILE(bucketId), {
|
|
12653
|
+
params: { path },
|
|
12654
|
+
headers,
|
|
12655
|
+
});
|
|
12656
|
+
}
|
|
12032
12657
|
/**
|
|
12033
12658
|
* Gets a direct upload URL for a file in the bucket
|
|
12034
12659
|
*
|
|
@@ -12047,6 +12672,9 @@ class BucketService extends FolderScopedService {
|
|
|
12047
12672
|
__decorate([
|
|
12048
12673
|
track('Buckets.GetById')
|
|
12049
12674
|
], BucketService.prototype, "getById", null);
|
|
12675
|
+
__decorate([
|
|
12676
|
+
track('Buckets.GetByName')
|
|
12677
|
+
], BucketService.prototype, "getByName", null);
|
|
12050
12678
|
__decorate([
|
|
12051
12679
|
track('Buckets.GetAll')
|
|
12052
12680
|
], BucketService.prototype, "getAll", null);
|
|
@@ -12059,6 +12687,12 @@ __decorate([
|
|
|
12059
12687
|
__decorate([
|
|
12060
12688
|
track('Buckets.GetReadUri')
|
|
12061
12689
|
], BucketService.prototype, "getReadUri", null);
|
|
12690
|
+
__decorate([
|
|
12691
|
+
track('Buckets.GetFiles')
|
|
12692
|
+
], BucketService.prototype, "getFiles", null);
|
|
12693
|
+
__decorate([
|
|
12694
|
+
track('Buckets.DeleteFile')
|
|
12695
|
+
], BucketService.prototype, "deleteFile", null);
|
|
12062
12696
|
|
|
12063
12697
|
var BucketOptions;
|
|
12064
12698
|
(function (BucketOptions) {
|
|
@@ -12856,33 +13490,32 @@ class ProcessService extends FolderScopedService {
|
|
|
12856
13490
|
}
|
|
12857
13491
|
}, options);
|
|
12858
13492
|
}
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
13493
|
+
async start(request, optionsOrFolderId, legacyOptions) {
|
|
13494
|
+
// Normalize the two overload forms into a single internal shape.
|
|
13495
|
+
let folderId;
|
|
13496
|
+
let folderKey;
|
|
13497
|
+
let folderPath;
|
|
13498
|
+
let queryOptions;
|
|
13499
|
+
if (typeof optionsOrFolderId === 'number') {
|
|
13500
|
+
// Deprecated positional form: start(request, folderId, options?)
|
|
13501
|
+
folderId = optionsOrFolderId;
|
|
13502
|
+
queryOptions = legacyOptions ?? {};
|
|
13503
|
+
}
|
|
13504
|
+
else {
|
|
13505
|
+
// Preferred form: start(request, options?)
|
|
13506
|
+
const { folderId: fid, folderKey: fkey, folderPath: fpath, ...rest } = optionsOrFolderId ?? {};
|
|
13507
|
+
folderId = fid;
|
|
13508
|
+
folderKey = fkey;
|
|
13509
|
+
folderPath = fpath;
|
|
13510
|
+
queryOptions = rest;
|
|
13511
|
+
}
|
|
13512
|
+
const headers = resolveFolderHeaders({
|
|
13513
|
+
folderId,
|
|
13514
|
+
folderKey,
|
|
13515
|
+
folderPath,
|
|
13516
|
+
resourceType: 'processes.start',
|
|
13517
|
+
fallbackFolderKey: this.config.folderKey,
|
|
13518
|
+
});
|
|
12886
13519
|
// Transform SDK field names to API field names (e.g., processKey → releaseKey)
|
|
12887
13520
|
const apiRequest = transformRequest(request, ProcessMap);
|
|
12888
13521
|
// Create the request object according to API spec
|
|
@@ -12890,8 +13523,8 @@ class ProcessService extends FolderScopedService {
|
|
|
12890
13523
|
startInfo: apiRequest
|
|
12891
13524
|
};
|
|
12892
13525
|
// Prefix all query parameter keys with '$' for OData
|
|
12893
|
-
const keysToPrefix = Object.keys(
|
|
12894
|
-
const apiOptions = addPrefixToKeys(
|
|
13526
|
+
const keysToPrefix = Object.keys(queryOptions);
|
|
13527
|
+
const apiOptions = addPrefixToKeys(queryOptions, ODATA_PREFIX, keysToPrefix);
|
|
12895
13528
|
const response = await this.post(PROCESS_ENDPOINTS.START_PROCESS, requestBody, {
|
|
12896
13529
|
params: apiOptions,
|
|
12897
13530
|
headers
|
|
@@ -13224,6 +13857,17 @@ const ConversationMap = {
|
|
|
13224
13857
|
lastActivityAt: 'lastActivityTime',
|
|
13225
13858
|
agentReleaseId: 'agentId'
|
|
13226
13859
|
};
|
|
13860
|
+
/**
|
|
13861
|
+
* Maps API filter param names (left) to SDK-facing names (right) for the conversation list endpoint.
|
|
13862
|
+
* Used by `getAll` to translate SDK filters to the field names the backend expects. Kept separate
|
|
13863
|
+
* from `ConversationMap` because `label`/`search` would otherwise collide with the `label` field
|
|
13864
|
+
* on create/update payloads.
|
|
13865
|
+
*/
|
|
13866
|
+
const ConversationGetAllFilterMap = {
|
|
13867
|
+
agentReleaseKey: 'agentKey',
|
|
13868
|
+
agentReleaseId: 'agentId',
|
|
13869
|
+
search: 'label'
|
|
13870
|
+
};
|
|
13227
13871
|
/**
|
|
13228
13872
|
* Maps fields for Exchange entity to ensure consistent SDK naming
|
|
13229
13873
|
*/
|
|
@@ -13583,8 +14227,8 @@ var WordGroupType;
|
|
|
13583
14227
|
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13584
14228
|
var ModelKind;
|
|
13585
14229
|
(function (ModelKind) {
|
|
13586
|
-
ModelKind["Classifier"] = "Classifier";
|
|
13587
14230
|
ModelKind["Extractor"] = "Extractor";
|
|
14231
|
+
ModelKind["Classifier"] = "Classifier";
|
|
13588
14232
|
})(ModelKind || (ModelKind = {}));
|
|
13589
14233
|
var ModelType;
|
|
13590
14234
|
(function (ModelType) {
|
|
@@ -13593,6 +14237,14 @@ var ModelType;
|
|
|
13593
14237
|
ModelType["Predefined"] = "Predefined";
|
|
13594
14238
|
})(ModelType || (ModelType = {}));
|
|
13595
14239
|
|
|
14240
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
14241
|
+
var ErrorSeverity;
|
|
14242
|
+
(function (ErrorSeverity) {
|
|
14243
|
+
ErrorSeverity["Info"] = "Info";
|
|
14244
|
+
ErrorSeverity["Warning"] = "Warning";
|
|
14245
|
+
ErrorSeverity["Error"] = "Error";
|
|
14246
|
+
})(ErrorSeverity || (ErrorSeverity = {}));
|
|
14247
|
+
|
|
13596
14248
|
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13597
14249
|
var ClassifierDocumentTypeType;
|
|
13598
14250
|
(function (ClassifierDocumentTypeType) {
|
|
@@ -13617,6 +14269,13 @@ var GptFieldType;
|
|
|
13617
14269
|
GptFieldType["Number"] = "Number";
|
|
13618
14270
|
GptFieldType["Text"] = "Text";
|
|
13619
14271
|
})(GptFieldType || (GptFieldType = {}));
|
|
14272
|
+
var JobStatus;
|
|
14273
|
+
(function (JobStatus) {
|
|
14274
|
+
JobStatus["Succeeded"] = "Succeeded";
|
|
14275
|
+
JobStatus["Failed"] = "Failed";
|
|
14276
|
+
JobStatus["Running"] = "Running";
|
|
14277
|
+
JobStatus["NotStarted"] = "NotStarted";
|
|
14278
|
+
})(JobStatus || (JobStatus = {}));
|
|
13620
14279
|
var ValidationDisplayMode;
|
|
13621
14280
|
(function (ValidationDisplayMode) {
|
|
13622
14281
|
ValidationDisplayMode["Classic"] = "Classic";
|
|
@@ -13703,8 +14362,10 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
13703
14362
|
get DocumentActionPriority () { return DocumentActionPriority; },
|
|
13704
14363
|
get DocumentActionStatus () { return DocumentActionStatus; },
|
|
13705
14364
|
get DocumentActionType () { return DocumentActionType; },
|
|
14365
|
+
get ErrorSeverity () { return ErrorSeverity; },
|
|
13706
14366
|
get FieldType () { return FieldType; },
|
|
13707
14367
|
get GptFieldType () { return GptFieldType; },
|
|
14368
|
+
get JobStatus () { return JobStatus; },
|
|
13708
14369
|
get LogicalOperator () { return LogicalOperator; },
|
|
13709
14370
|
get MarkupType () { return MarkupType; },
|
|
13710
14371
|
get ModelKind () { return ModelKind; },
|
|
@@ -13798,4 +14459,4 @@ function getAppBase() {
|
|
|
13798
14459
|
return getMetaTagContent(UiPathMetaTags.APP_BASE) || '/';
|
|
13799
14460
|
}
|
|
13800
14461
|
|
|
13801
|
-
export {
|
|
14462
|
+
export { AgentMap, AssetValueScope, AssetValueType, AuthenticationError, AuthorizationError, BucketOptions, CitationErrorType, ConversationGetAllFilterMap, ConversationMap, DEFAULT_ITEMS_FIELD, DEFAULT_PAGE_SIZE, DEFAULT_TOTAL_COUNT_FIELD, DataDirectionType, DebugMode, index as DuFramework, EntityAggregateFunction, EntityFieldDataType, EntityType, ErrorType, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, ExchangeMap, FeedbackRating, FeedbackStatus, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InstanceFinalStatus, InstanceStatus, InterruptType, JobPriority, JobSourceType, JobState, JobSubState, JobType, JoinType, LogicalOperator$1 as LogicalOperator, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, QueryFilterOperator, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, RuntimeType, SLADurationUnit, ServerError, ServerlessJobType, SlaSummaryStatus, SortOrder, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, TaskUserType, TimeInterval, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createConversationWithMethods, createEntityWithMethods, createJobWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|