@uipath/uipath-typescript 1.3.7 → 1.3.9
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 +64 -274
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.mjs +64 -274
- package/dist/attachments/index.cjs +62 -271
- package/dist/attachments/index.d.ts +1 -0
- package/dist/attachments/index.mjs +62 -271
- package/dist/buckets/index.cjs +93 -274
- package/dist/buckets/index.d.ts +51 -1
- package/dist/buckets/index.mjs +93 -274
- package/dist/cases/index.cjs +580 -336
- package/dist/cases/index.d.ts +690 -3
- package/dist/cases/index.mjs +581 -337
- package/dist/conversational-agent/index.cjs +110 -285
- package/dist/conversational-agent/index.d.ts +63 -12
- package/dist/conversational-agent/index.mjs +110 -286
- 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 +64 -274
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/index.mjs +64 -274
- package/dist/feedback/index.cjs +313 -276
- package/dist/feedback/index.d.ts +418 -12
- package/dist/feedback/index.mjs +313 -276
- package/dist/index.cjs +777 -297
- package/dist/index.d.ts +2005 -721
- package/dist/index.mjs +777 -283
- package/dist/index.umd.js +966 -162
- package/dist/jobs/index.cjs +64 -274
- package/dist/jobs/index.d.ts +1 -0
- package/dist/jobs/index.mjs +64 -274
- package/dist/maestro-processes/index.cjs +1789 -1686
- package/dist/maestro-processes/index.d.ts +431 -2
- package/dist/maestro-processes/index.mjs +1790 -1687
- package/dist/processes/index.cjs +64 -274
- package/dist/processes/index.d.ts +1 -0
- package/dist/processes/index.mjs +64 -274
- package/dist/queues/index.cjs +64 -274
- package/dist/queues/index.d.ts +1 -0
- package/dist/queues/index.mjs +64 -274
- package/dist/tasks/index.cjs +64 -274
- package/dist/tasks/index.d.ts +1 -0
- package/dist/tasks/index.mjs +64 -274
- package/package.json +8 -10
|
@@ -1,9 +1,106 @@
|
|
|
1
1
|
import { IUiPath } from '../core/index';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Insights Types
|
|
5
|
+
* Shared types for Maestro insights analytics endpoints
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Optional filters for Insights "top" endpoint queries.
|
|
9
|
+
* All fields are optional — pass any combination to narrow results.
|
|
10
|
+
*/
|
|
11
|
+
interface TopQueryOptions {
|
|
12
|
+
/** Filter by package identifier */
|
|
13
|
+
packageId?: string;
|
|
14
|
+
/** Filter by process key */
|
|
15
|
+
processKey?: string;
|
|
16
|
+
/** Filter by package version */
|
|
17
|
+
version?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Common fields returned by all Insights "top" endpoints
|
|
21
|
+
*/
|
|
22
|
+
interface GetTopBaseResponse {
|
|
23
|
+
/** The package identifier */
|
|
24
|
+
packageId: string;
|
|
25
|
+
/** The unique process key */
|
|
26
|
+
processKey: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Response for the top run count Insights endpoint
|
|
30
|
+
*/
|
|
31
|
+
interface GetTopRunCountResponse extends GetTopBaseResponse {
|
|
32
|
+
/** Number of times the process was run in the given time range */
|
|
33
|
+
runCount: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Response for the top failure count Insights endpoint
|
|
37
|
+
*/
|
|
38
|
+
interface GetTopFaultedCountResponse extends GetTopBaseResponse {
|
|
39
|
+
/** Number of faulted instances in the given time range */
|
|
40
|
+
faultedCount: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Time bucketing granularity for insights time-series queries.
|
|
44
|
+
*
|
|
45
|
+
* Controls how data points are grouped on the time axis.
|
|
46
|
+
*/
|
|
47
|
+
declare enum TimeInterval {
|
|
48
|
+
/** Group data points by hour */
|
|
49
|
+
Hour = "HOUR",
|
|
50
|
+
/** Group data points by day */
|
|
51
|
+
Day = "DAY",
|
|
52
|
+
/** Group data points by week */
|
|
53
|
+
Week = "WEEK"
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Options for insights time-series queries.
|
|
57
|
+
*/
|
|
58
|
+
interface TimelineOptions {
|
|
59
|
+
/**
|
|
60
|
+
* How to group data points on the time axis.
|
|
61
|
+
* @default TimeInterval.Day
|
|
62
|
+
*/
|
|
63
|
+
groupBy?: TimeInterval;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Final instance statuses returned by the instance status timeline endpoint.
|
|
67
|
+
*
|
|
68
|
+
* Only includes statuses where the instance has finished execution — Completed, Faulted, or Cancelled.
|
|
69
|
+
* Active statuses like Running or Paused are not included.
|
|
70
|
+
*/
|
|
71
|
+
declare enum InstanceFinalStatus {
|
|
72
|
+
/** Instance completed successfully */
|
|
73
|
+
Completed = "Completed",
|
|
74
|
+
/** Instance encountered an error */
|
|
75
|
+
Faulted = "Faulted",
|
|
76
|
+
/** Instance was cancelled */
|
|
77
|
+
Cancelled = "Cancelled"
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Instance count for a process with a given status
|
|
81
|
+
* within a specific time bucket.
|
|
82
|
+
*/
|
|
83
|
+
interface InstanceStatusTimelineResponse {
|
|
84
|
+
/** Start of the time bucket in local timezone (e.g. `"5/8/2026 12:00:00 AM"`) */
|
|
85
|
+
startTime: string;
|
|
86
|
+
/** Instance status */
|
|
87
|
+
status: InstanceFinalStatus;
|
|
88
|
+
/** Number of instances with this status in the time bucket */
|
|
89
|
+
count: number;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Response for the top duration Insights endpoint
|
|
93
|
+
*/
|
|
94
|
+
interface GetTopDurationResponse extends GetTopBaseResponse {
|
|
95
|
+
/** Total execution duration in milliseconds */
|
|
96
|
+
duration: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
3
99
|
/**
|
|
4
100
|
* Maestro Process Types
|
|
5
101
|
* Types and interfaces for Maestro process management
|
|
6
102
|
*/
|
|
103
|
+
|
|
7
104
|
/**
|
|
8
105
|
* Process information with instance statistics
|
|
9
106
|
*/
|
|
@@ -43,6 +140,27 @@ interface RawMaestroProcessGetAllResponse {
|
|
|
43
140
|
/** Process instance count - canceling */
|
|
44
141
|
cancelingCount: number;
|
|
45
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Response for a single entry in top processes by run count
|
|
145
|
+
*/
|
|
146
|
+
interface ProcessGetTopRunCountResponse extends GetTopRunCountResponse {
|
|
147
|
+
/** Human-readable process name */
|
|
148
|
+
name: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Response for a single entry in top processes by failure count
|
|
152
|
+
*/
|
|
153
|
+
interface ProcessGetTopFaultedCountResponse extends GetTopFaultedCountResponse {
|
|
154
|
+
/** Human-readable process name */
|
|
155
|
+
name: string;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Response for a single entry in top processes by duration
|
|
159
|
+
*/
|
|
160
|
+
interface ProcessGetTopDurationResponse extends GetTopDurationResponse {
|
|
161
|
+
/** Human-readable process name */
|
|
162
|
+
name: string;
|
|
163
|
+
}
|
|
46
164
|
|
|
47
165
|
/**
|
|
48
166
|
* Process Incident Status
|
|
@@ -170,6 +288,161 @@ interface MaestroProcessesServiceModel {
|
|
|
170
288
|
* ```
|
|
171
289
|
*/
|
|
172
290
|
getIncidents(processKey: string, folderKey: string): Promise<ProcessIncidentGetResponse[]>;
|
|
291
|
+
/**
|
|
292
|
+
* Get the top 5 processes ranked by run count within a time range.
|
|
293
|
+
*
|
|
294
|
+
* Returns an array of up to 5 processes sorted by how many times they were executed,
|
|
295
|
+
* useful for identifying the most active processes in a given period.
|
|
296
|
+
*
|
|
297
|
+
* @param startTime - Start of the time range to query
|
|
298
|
+
* @param endTime - End of the time range to query
|
|
299
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
300
|
+
* @returns Promise resolving to an array of {@link ProcessGetTopRunCountResponse}
|
|
301
|
+
* @example
|
|
302
|
+
* ```typescript
|
|
303
|
+
* import { MaestroProcesses } from '@uipath/uipath-typescript/maestro-processes';
|
|
304
|
+
*
|
|
305
|
+
* const maestroProcesses = new MaestroProcesses(sdk);
|
|
306
|
+
*
|
|
307
|
+
* // Get top processes by run count for the last 7 days
|
|
308
|
+
* const topProcesses = await maestroProcesses.getTopRunCount(
|
|
309
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
310
|
+
* new Date()
|
|
311
|
+
* );
|
|
312
|
+
*
|
|
313
|
+
* for (const process of topProcesses) {
|
|
314
|
+
* console.log(`${process.packageId}: ${process.runCount} runs`);
|
|
315
|
+
* }
|
|
316
|
+
* ```
|
|
317
|
+
*
|
|
318
|
+
* @example
|
|
319
|
+
* ```typescript
|
|
320
|
+
* // Get top processes by run count for a specific package
|
|
321
|
+
* const filtered = await maestroProcesses.getTopRunCount(
|
|
322
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
323
|
+
* new Date(),
|
|
324
|
+
* { packageId: '<packageId>' }
|
|
325
|
+
* );
|
|
326
|
+
* ```
|
|
327
|
+
*/
|
|
328
|
+
getTopRunCount(startTime: Date, endTime: Date, options?: TopQueryOptions): Promise<ProcessGetTopRunCountResponse[]>;
|
|
329
|
+
/**
|
|
330
|
+
* Get the top 10 processes ranked by failure count within a time range.
|
|
331
|
+
*
|
|
332
|
+
* Returns an array of up to 10 processes sorted by how many instances faulted,
|
|
333
|
+
* useful for identifying the most error-prone processes in a given period.
|
|
334
|
+
*
|
|
335
|
+
* @param startTime - Start of the time range to query
|
|
336
|
+
* @param endTime - End of the time range to query
|
|
337
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
338
|
+
* @returns Promise resolving to an array of {@link ProcessGetTopFaultedCountResponse}
|
|
339
|
+
* @example
|
|
340
|
+
* ```typescript
|
|
341
|
+
* import { MaestroProcesses } from '@uipath/uipath-typescript/maestro-processes';
|
|
342
|
+
*
|
|
343
|
+
* const maestroProcesses = new MaestroProcesses(sdk);
|
|
344
|
+
*
|
|
345
|
+
* // Get top processes by faulted count for the last 7 days
|
|
346
|
+
* const topFailing = await maestroProcesses.getTopFaultedCount(
|
|
347
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
348
|
+
* new Date()
|
|
349
|
+
* );
|
|
350
|
+
*
|
|
351
|
+
* for (const process of topFailing) {
|
|
352
|
+
* console.log(`${process.packageId}: ${process.faultedCount} failures`);
|
|
353
|
+
* }
|
|
354
|
+
* ```
|
|
355
|
+
*
|
|
356
|
+
* @example
|
|
357
|
+
* ```typescript
|
|
358
|
+
* // Get top processes by faulted count for a specific package
|
|
359
|
+
* const filtered = await maestroProcesses.getTopFaultedCount(
|
|
360
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
361
|
+
* new Date(),
|
|
362
|
+
* { packageId: '<packageId>' }
|
|
363
|
+
* );
|
|
364
|
+
* ```
|
|
365
|
+
*/
|
|
366
|
+
getTopFaultedCount(startTime: Date, endTime: Date, options?: TopQueryOptions): Promise<ProcessGetTopFaultedCountResponse[]>;
|
|
367
|
+
/**
|
|
368
|
+
* Get all instances status counts aggregated by date for maestro processes.
|
|
369
|
+
*
|
|
370
|
+
* Returns time-grouped counts of instances grouped by status (Completed, Faulted, Cancelled),
|
|
371
|
+
* useful for rendering time-series charts. Use `groupBy` to control the time bucket size
|
|
372
|
+
* (hour, day, or week) — defaults to day if not provided.
|
|
373
|
+
*
|
|
374
|
+
* @param startTime - Start of the time range to query
|
|
375
|
+
* @param endTime - End of the time range to query
|
|
376
|
+
* @param options - Optional settings for time bucketing granularity
|
|
377
|
+
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
378
|
+
*
|
|
379
|
+
* @example
|
|
380
|
+
* ```typescript
|
|
381
|
+
* // Get daily instance status for the last 7 days
|
|
382
|
+
* const now = new Date();
|
|
383
|
+
* const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
|
|
384
|
+
* const statuses = await maestroProcesses.getInstanceStatusTimeline(sevenDaysAgo, now);
|
|
385
|
+
*
|
|
386
|
+
* for (const entry of statuses) {
|
|
387
|
+
* console.log(`${entry.startTime} — ${entry.status}: ${entry.count}`);
|
|
388
|
+
* }
|
|
389
|
+
* ```
|
|
390
|
+
*
|
|
391
|
+
* @example
|
|
392
|
+
* ```typescript
|
|
393
|
+
* import { TimeInterval } from '@uipath/uipath-typescript/maestro-processes';
|
|
394
|
+
*
|
|
395
|
+
* // Get hourly breakdown
|
|
396
|
+
* const statuses = await maestroProcesses.getInstanceStatusTimeline(startTime, endTime, {
|
|
397
|
+
* groupBy: TimeInterval.Hour,
|
|
398
|
+
* });
|
|
399
|
+
* ```
|
|
400
|
+
*
|
|
401
|
+
* @example
|
|
402
|
+
* ```typescript
|
|
403
|
+
* // Get all-time data (from Unix epoch to now)
|
|
404
|
+
* const allTime = await maestroProcesses.getInstanceStatusTimeline(new Date(0), new Date());
|
|
405
|
+
* ```
|
|
406
|
+
*/
|
|
407
|
+
getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<InstanceStatusTimelineResponse[]>;
|
|
408
|
+
/**
|
|
409
|
+
* Get the top 5 processes ranked by total duration within a time range.
|
|
410
|
+
*
|
|
411
|
+
* Returns an array of up to 5 processes sorted by their total execution time,
|
|
412
|
+
* useful for identifying the longest-running processes in a given period.
|
|
413
|
+
*
|
|
414
|
+
* @param startTime - Start of the time range to query
|
|
415
|
+
* @param endTime - End of the time range to query
|
|
416
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
417
|
+
* @returns Promise resolving to an array of {@link ProcessGetTopDurationResponse}
|
|
418
|
+
* @example
|
|
419
|
+
* ```typescript
|
|
420
|
+
* import { MaestroProcesses } from '@uipath/uipath-typescript/maestro-processes';
|
|
421
|
+
*
|
|
422
|
+
* const maestroProcesses = new MaestroProcesses(sdk);
|
|
423
|
+
*
|
|
424
|
+
* // Get top processes by duration for the last 7 days
|
|
425
|
+
* const topProcesses = await maestroProcesses.getTopExecutionDuration(
|
|
426
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
427
|
+
* new Date()
|
|
428
|
+
* );
|
|
429
|
+
*
|
|
430
|
+
* for (const process of topProcesses) {
|
|
431
|
+
* console.log(`${process.packageId}: ${process.duration}ms total`);
|
|
432
|
+
* }
|
|
433
|
+
* ```
|
|
434
|
+
*
|
|
435
|
+
* @example
|
|
436
|
+
* ```typescript
|
|
437
|
+
* // Get top processes by duration for a specific package
|
|
438
|
+
* const filtered = await maestroProcesses.getTopExecutionDuration(
|
|
439
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
440
|
+
* new Date(),
|
|
441
|
+
* { packageId: '<packageId>' }
|
|
442
|
+
* );
|
|
443
|
+
* ```
|
|
444
|
+
*/
|
|
445
|
+
getTopExecutionDuration(startTime: Date, endTime: Date, options?: TopQueryOptions): Promise<ProcessGetTopDurationResponse[]>;
|
|
173
446
|
}
|
|
174
447
|
interface ProcessMethods {
|
|
175
448
|
/**
|
|
@@ -750,6 +1023,7 @@ interface RequestWithPaginationOptions extends RequestSpec {
|
|
|
750
1023
|
offsetParam?: string;
|
|
751
1024
|
tokenParam?: string;
|
|
752
1025
|
countParam?: string;
|
|
1026
|
+
convertToSkip?: boolean;
|
|
753
1027
|
};
|
|
754
1028
|
};
|
|
755
1029
|
}
|
|
@@ -977,6 +1251,161 @@ declare class MaestroProcessesService extends BaseService implements MaestroProc
|
|
|
977
1251
|
* Get incidents for a specific process
|
|
978
1252
|
*/
|
|
979
1253
|
getIncidents(processKey: string, folderKey: string): Promise<ProcessIncidentGetResponse[]>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Get the top 5 processes ranked by run count within a time range.
|
|
1256
|
+
*
|
|
1257
|
+
* Returns an array of up to 5 processes sorted by how many times they were executed,
|
|
1258
|
+
* useful for identifying the most active processes in a given period.
|
|
1259
|
+
*
|
|
1260
|
+
* @param startTime - Start of the time range to query
|
|
1261
|
+
* @param endTime - End of the time range to query
|
|
1262
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
1263
|
+
* @returns Promise resolving to an array of {@link ProcessGetTopRunCountResponse}
|
|
1264
|
+
* @example
|
|
1265
|
+
* ```typescript
|
|
1266
|
+
* import { MaestroProcesses } from '@uipath/uipath-typescript/maestro-processes';
|
|
1267
|
+
*
|
|
1268
|
+
* const maestroProcesses = new MaestroProcesses(sdk);
|
|
1269
|
+
*
|
|
1270
|
+
* // Get top processes by run count for the last 7 days
|
|
1271
|
+
* const topProcesses = await maestroProcesses.getTopRunCount(
|
|
1272
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
1273
|
+
* new Date()
|
|
1274
|
+
* );
|
|
1275
|
+
*
|
|
1276
|
+
* for (const process of topProcesses) {
|
|
1277
|
+
* console.log(`${process.packageId}: ${process.runCount} runs`);
|
|
1278
|
+
* }
|
|
1279
|
+
* ```
|
|
1280
|
+
*
|
|
1281
|
+
* @example
|
|
1282
|
+
* ```typescript
|
|
1283
|
+
* // Get top processes by run count for a specific package
|
|
1284
|
+
* const filtered = await maestroProcesses.getTopRunCount(
|
|
1285
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
1286
|
+
* new Date(),
|
|
1287
|
+
* { packageId: '<packageId>' }
|
|
1288
|
+
* );
|
|
1289
|
+
* ```
|
|
1290
|
+
*/
|
|
1291
|
+
getTopRunCount(startTime: Date, endTime: Date, options?: TopQueryOptions): Promise<ProcessGetTopRunCountResponse[]>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Get all instances status counts aggregated by date for maestro processes.
|
|
1294
|
+
*
|
|
1295
|
+
* Returns time-grouped counts of instances grouped by status (Completed, Faulted, Cancelled),
|
|
1296
|
+
* useful for rendering time-series charts. Use `groupBy` to control the time bucket size
|
|
1297
|
+
* (hour, day, or week) — defaults to day if not provided.
|
|
1298
|
+
*
|
|
1299
|
+
* @param startTime - Start of the time range to query
|
|
1300
|
+
* @param endTime - End of the time range to query
|
|
1301
|
+
* @param options - Optional settings for time bucketing granularity
|
|
1302
|
+
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
1303
|
+
*
|
|
1304
|
+
* @example
|
|
1305
|
+
* ```typescript
|
|
1306
|
+
* // Get daily instance status for the last 7 days
|
|
1307
|
+
* const now = new Date();
|
|
1308
|
+
* const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
|
|
1309
|
+
* const statuses = await maestroProcesses.getInstanceStatusTimeline(sevenDaysAgo, now);
|
|
1310
|
+
*
|
|
1311
|
+
* for (const entry of statuses) {
|
|
1312
|
+
* console.log(`${entry.startTime} — ${entry.status}: ${entry.count}`);
|
|
1313
|
+
* }
|
|
1314
|
+
* ```
|
|
1315
|
+
*
|
|
1316
|
+
* @example
|
|
1317
|
+
* ```typescript
|
|
1318
|
+
* import { TimeInterval } from '@uipath/uipath-typescript/maestro-processes';
|
|
1319
|
+
*
|
|
1320
|
+
* // Get hourly breakdown
|
|
1321
|
+
* const statuses = await maestroProcesses.getInstanceStatusTimeline(startTime, endTime, {
|
|
1322
|
+
* groupBy: TimeInterval.Hour,
|
|
1323
|
+
* });
|
|
1324
|
+
* ```
|
|
1325
|
+
*
|
|
1326
|
+
* @example
|
|
1327
|
+
* ```typescript
|
|
1328
|
+
* // Get all-time data (from Unix epoch to now)
|
|
1329
|
+
* const allTime = await maestroProcesses.getInstanceStatusTimeline(new Date(0), new Date());
|
|
1330
|
+
* ```
|
|
1331
|
+
*/
|
|
1332
|
+
getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<InstanceStatusTimelineResponse[]>;
|
|
1333
|
+
/**
|
|
1334
|
+
* Get the top 10 processes ranked by failure count within a time range.
|
|
1335
|
+
*
|
|
1336
|
+
* Returns an array of up to 10 processes sorted by how many instances faulted,
|
|
1337
|
+
* useful for identifying the most error-prone processes in a given period.
|
|
1338
|
+
*
|
|
1339
|
+
* @param startTime - Start of the time range to query
|
|
1340
|
+
* @param endTime - End of the time range to query
|
|
1341
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
1342
|
+
* @returns Promise resolving to an array of {@link ProcessGetTopFaultedCountResponse}
|
|
1343
|
+
* @example
|
|
1344
|
+
* ```typescript
|
|
1345
|
+
* import { MaestroProcesses } from '@uipath/uipath-typescript/maestro-processes';
|
|
1346
|
+
*
|
|
1347
|
+
* const maestroProcesses = new MaestroProcesses(sdk);
|
|
1348
|
+
*
|
|
1349
|
+
* // Get top processes by faulted count for the last 7 days
|
|
1350
|
+
* const topFailing = await maestroProcesses.getTopFaultedCount(
|
|
1351
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
1352
|
+
* new Date()
|
|
1353
|
+
* );
|
|
1354
|
+
*
|
|
1355
|
+
* for (const process of topFailing) {
|
|
1356
|
+
* console.log(`${process.packageId}: ${process.faultedCount} failures`);
|
|
1357
|
+
* }
|
|
1358
|
+
* ```
|
|
1359
|
+
*
|
|
1360
|
+
* @example
|
|
1361
|
+
* ```typescript
|
|
1362
|
+
* // Get top processes by faulted count for a specific package
|
|
1363
|
+
* const filtered = await maestroProcesses.getTopFaultedCount(
|
|
1364
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
1365
|
+
* new Date(),
|
|
1366
|
+
* { packageId: '<packageId>' }
|
|
1367
|
+
* );
|
|
1368
|
+
* ```
|
|
1369
|
+
*/
|
|
1370
|
+
getTopFaultedCount(startTime: Date, endTime: Date, options?: TopQueryOptions): Promise<ProcessGetTopFaultedCountResponse[]>;
|
|
1371
|
+
/**
|
|
1372
|
+
* Get the top 5 processes ranked by total duration within a time range.
|
|
1373
|
+
*
|
|
1374
|
+
* Returns an array of up to 5 processes sorted by their total execution time,
|
|
1375
|
+
* useful for identifying the longest-running processes in a given period.
|
|
1376
|
+
*
|
|
1377
|
+
* @param startTime - Start of the time range to query
|
|
1378
|
+
* @param endTime - End of the time range to query
|
|
1379
|
+
* @param options - Optional filters (packageId, processKey, version)
|
|
1380
|
+
* @returns Promise resolving to an array of {@link ProcessGetTopDurationResponse}
|
|
1381
|
+
* @example
|
|
1382
|
+
* ```typescript
|
|
1383
|
+
* import { MaestroProcesses } from '@uipath/uipath-typescript/maestro-processes';
|
|
1384
|
+
*
|
|
1385
|
+
* const maestroProcesses = new MaestroProcesses(sdk);
|
|
1386
|
+
*
|
|
1387
|
+
* // Get top processes by duration for the last 7 days
|
|
1388
|
+
* const topProcesses = await maestroProcesses.getTopExecutionDuration(
|
|
1389
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
1390
|
+
* new Date()
|
|
1391
|
+
* );
|
|
1392
|
+
*
|
|
1393
|
+
* for (const process of topProcesses) {
|
|
1394
|
+
* console.log(`${process.packageId}: ${process.duration}ms total`);
|
|
1395
|
+
* }
|
|
1396
|
+
* ```
|
|
1397
|
+
*
|
|
1398
|
+
* @example
|
|
1399
|
+
* ```typescript
|
|
1400
|
+
* // Get top processes by duration for a specific package
|
|
1401
|
+
* const filtered = await maestroProcesses.getTopExecutionDuration(
|
|
1402
|
+
* new Date(Date.now() - 7 * 24 * 60 * 60 * 1000),
|
|
1403
|
+
* new Date(),
|
|
1404
|
+
* { packageId: '<packageId>' }
|
|
1405
|
+
* );
|
|
1406
|
+
* ```
|
|
1407
|
+
*/
|
|
1408
|
+
getTopExecutionDuration(startTime: Date, endTime: Date, options?: TopQueryOptions): Promise<ProcessGetTopDurationResponse[]>;
|
|
980
1409
|
}
|
|
981
1410
|
|
|
982
1411
|
declare class ProcessInstancesService extends BaseService implements ProcessInstancesServiceModel {
|
|
@@ -1132,5 +1561,5 @@ declare class ProcessIncidentsService extends BaseService implements ProcessInci
|
|
|
1132
1561
|
getAll(): Promise<ProcessIncidentGetAllResponse[]>;
|
|
1133
1562
|
}
|
|
1134
1563
|
|
|
1135
|
-
export { DebugMode, MaestroProcessesService as MaestroProcesses, MaestroProcessesService, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, ProcessIncidentsService as ProcessIncidents, ProcessIncidentsService, ProcessInstancesService as ProcessInstances, ProcessInstancesService, createProcessInstanceWithMethods, createProcessWithMethods };
|
|
1136
|
-
export type { BpmnXmlString, ElementMetaData, GlobalVariableMetaData, MaestroProcessGetAllResponse, MaestroProcessesServiceModel, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessIncidentsServiceModel, ProcessInstanceExecutionHistoryResponse, ProcessInstanceGetAllOptions, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceGetResponse, ProcessInstanceGetVariablesOptions, ProcessInstanceGetVariablesResponse, ProcessInstanceMethods, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessInstancesServiceModel, ProcessMethods, RawMaestroProcessGetAllResponse, RawProcessInstanceGetResponse };
|
|
1564
|
+
export { DebugMode, InstanceFinalStatus, MaestroProcessesService as MaestroProcesses, MaestroProcessesService, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, ProcessIncidentsService as ProcessIncidents, ProcessIncidentsService, ProcessInstancesService as ProcessInstances, ProcessInstancesService, TimeInterval, createProcessInstanceWithMethods, createProcessWithMethods };
|
|
1565
|
+
export type { BpmnXmlString, ElementMetaData, GetTopBaseResponse, GetTopDurationResponse, GetTopFaultedCountResponse, GetTopRunCountResponse, GlobalVariableMetaData, InstanceStatusTimelineResponse, MaestroProcessGetAllResponse, MaestroProcessesServiceModel, ProcessGetTopDurationResponse, ProcessGetTopFaultedCountResponse, ProcessGetTopRunCountResponse, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessIncidentsServiceModel, ProcessInstanceExecutionHistoryResponse, ProcessInstanceGetAllOptions, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceGetResponse, ProcessInstanceGetVariablesOptions, ProcessInstanceGetVariablesResponse, ProcessInstanceMethods, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessInstancesServiceModel, ProcessMethods, RawMaestroProcessGetAllResponse, RawProcessInstanceGetResponse, TimelineOptions, TopQueryOptions };
|